@@ -107,23 +107,23 @@ bl dataset list --output json
107107
108108### ` bl dataset upload `
109109
110- | Field | Value |
111- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
112- | ** Name** | ` dataset upload ` |
113- | ** Description** | Upload a dataset file (.jsonl or .zip) to Bailian |
114- | ** Usage** | ` bl dataset upload --file <path> [--purpose <name>] [--schema <chatml\|dpo\|cpt\|tts\|image>] [--no-validate] [--full-validate] ` |
110+ | Field | Value |
111+ | --------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
112+ | ** Name** | ` dataset upload ` |
113+ | ** Description** | Upload a dataset file (.jsonl or .zip) to Bailian |
114+ | ** Usage** | ` bl dataset upload --file <path> [--purpose <name>] [--schema <chatml\|dpo\|cpt\|tts\|image\|video >] [--no-validate] [--full-validate] ` |
115115
116116#### Flags
117117
118- | Flag | Type | Required | Description |
119- | ------------------ | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
120- | ` --file <path> ` | string | yes | Local dataset file (.jsonl or .zip; ≤300MB text, ≤1GB image) |
121- | ` --purpose <name> ` | string | no | Dataset purpose tag (default: "fine-tune"; e.g. "evaluation") |
122- | ` --schema <s> ` | string | no | Record schema: "chatml" (SFT), "dpo" (chosen/rejected), "cpt" (raw text), "tts" (audio), or "image" (image generation). Default auto-detects per record. |
123- | ` --no-validate ` | switch | no | Skip the local JSONL pre-flight check (not recommended) |
124- | ` --full-validate ` | switch | no | JSON.parse every line instead of sampling (slower) |
125- | ` --api-key <key> ` | string | no | API key |
126- | ` --base-url <url> ` | string | no | API base URL |
118+ | Flag | Type | Required | Description |
119+ | ------------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
120+ | ` --file <path> ` | string | yes | Local dataset file (.jsonl or .zip; ≤300MB text, ≤1GB image) |
121+ | ` --purpose <name> ` | string | no | Dataset purpose tag (default: "fine-tune"; e.g. "evaluation") |
122+ | ` --schema <s> ` | string | no | Record schema: "chatml" (SFT), "dpo" (chosen/rejected), "cpt" (raw text), "tts" (audio), "image" (image generation), or "video" (video generation). Default auto-detects per record. |
123+ | ` --no-validate ` | switch | no | Skip the local JSONL pre-flight check (not recommended) |
124+ | ` --full-validate ` | switch | no | JSON.parse every line instead of sampling (slower) |
125+ | ` --api-key <key> ` | string | no | API key |
126+ | ` --base-url <url> ` | string | no | API base URL |
127127
128128#### Notes
129129
@@ -170,19 +170,19 @@ bl dataset upload --file train.jsonl --no-validate
170170
171171### ` bl dataset validate `
172172
173- | Field | Value |
174- | --------------- | ----------------------------------------------------------------------------------------------- |
175- | ** Name** | ` dataset validate ` |
176- | ** Description** | Locally validate a dataset file (.jsonl or .zip) without uploading |
177- | ** Usage** | ` bl dataset validate --file <path> [--full-validate] [--schema <chatml\|dpo\|cpt\|tts\|image>] ` |
173+ | Field | Value |
174+ | --------------- | ------------------------------------------------------------------------------------------------------ |
175+ | ** Name** | ` dataset validate ` |
176+ | ** Description** | Locally validate a dataset file (.jsonl or .zip) without uploading |
177+ | ** Usage** | ` bl dataset validate --file <path> [--full-validate] [--schema <chatml\|dpo\|cpt\|tts\|image\|video >] ` |
178178
179179#### Flags
180180
181- | Flag | Type | Required | Description |
182- | ----------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
183- | ` --file <path> ` | string | yes | Local dataset file (.jsonl or .zip) |
184- | ` --full-validate ` | switch | no | JSON.parse every line instead of sampling (slower) |
185- | ` --schema <s> ` | string | no | Record schema: "chatml" (SFT), "dpo" (chosen/rejected), "cpt" (raw text), "tts" (audio), or "image" (image generation). Default auto-detects per record. |
181+ | Flag | Type | Required | Description |
182+ | ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
183+ | ` --file <path> ` | string | yes | Local dataset file (.jsonl or .zip) |
184+ | ` --full-validate ` | switch | no | JSON.parse every line instead of sampling (slower) |
185+ | ` --schema <s> ` | string | no | Record schema: "chatml" (SFT), "dpo" (chosen/rejected), "cpt" (raw text), "tts" (audio), "image" (image generation), or "video" (video generation). Default auto-detects per record. |
186186
187187#### Notes
188188
@@ -191,13 +191,15 @@ bl dataset upload --file train.jsonl --no-validate
191191- Schemas: chatml = {messages:[ ...] } (SFT); dpo = {messages:[ ...] , chosen,
192192- rejected}; cpt = {text:"..."} (continual pre-training, raw text);
193193- tts = {wav_fn:"train/xxx.wav", text:"..."} (audio fine-tuning);
194- - image = {img_path:"..."} (image generation). With no --schema, a record
195- - carrying wav_fn is validated as TTS, img_path as image, chosen/rejected
196- - as DPO, text (no messages) as CPT, otherwise ChatML. Pass --schema to
197- - require a specific shape on every record. ZIP archives (.zip) are
198- - validated structurally (data.jsonl present, media references resolve) in
199- - addition to per-record content checks. Use --full-validate to JSON.parse
200- - every line.
194+ - image = {img_path:"..."} (image generation);
195+ - video = {first_frame_path:"...", video_path:"..."} (video generation,
196+ - i2v first-frame or kf2v first+last-frame with last_frame_path). With no
197+ - --schema, a record carrying wav_fn is validated as TTS, img_path as image,
198+ - first_frame_path/video_path as video, chosen/rejected as DPO, text (no
199+ - messages) as CPT, otherwise ChatML. Pass --schema to require a specific
200+ - shape on every record. ZIP archives (.zip) are validated structurally
201+ - (data.jsonl present, media references resolve) in addition to per-record
202+ - content checks. Use --full-validate to JSON.parse every line.
201203
202204#### Examples
203205
@@ -217,6 +219,10 @@ bl dataset validate --file cpt.jsonl --schema cpt
217219bl dataset validate --file audio.zip --schema tts
218220```
219221
222+ ``` bash
223+ bl dataset validate --file wan-i2v-training-dataset.zip --schema video
224+ ```
225+
220226``` bash
221227bl dataset validate --file eval.jsonl --full-validate
222228```
0 commit comments