bailian-finetune
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBailian fine-tuning pipeline (bl dataset
/ bl finetune
/ bl deploy
)
bl datasetbl finetunebl deploy百炼模型精调流程(bl dataset
/ bl finetune
/ bl deploy
)
bl datasetbl finetunebl deployCRITICAL — Before executing, MUST read the shared protocol in : Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. Command details are authoritative in (dataset / finetune / deploy) and — do not guess flags. The whole pipeline requires an API key. If that protocol file is missing, stop and run ; do not guess auth/consent.
../bailian-protocol/SKILL.mdreference/bl <command> --helpnpx skills add modelstudioai/cli --all -g重要提示 — 执行前必须阅读 中的共享协议:版本与更新(预检清单)、设置与认证,以及CLI错误上报方式。命令详情以 (dataset / finetune / deploy)和 为准,请勿猜测参数。整个流程需要 API key。若缺少该协议文件,请停止操作并执行 ,请勿自行尝试认证/授权。
../bailian-protocol/SKILL.mdreference/bl <command> --helpnpx skills add modelstudioai/cli --all -gEnd-to-end workflow (follow in order)
端到端工作流(按顺序执行)
1. Validate data bl dataset validate --file train.jsonl [--schema chatml|dpo|cpt|tts|image]
2. Upload data bl dataset upload --file train.jsonl # returns a file-id
3. Create job bl finetune text|audio|image create --model <base> --datasets <file-id|path>
4. Watch progress bl finetune watch --job-id ft-xxx # or get / logs
5. Pick artifact bl finetune checkpoints --job-id ft-xxx
6. Export model bl finetune export --job-id ft-xxx --checkpoint ckpt-N --model-name my-model
7. Deploy service bl deploy text|audio|image create --model my-model --name my-svc- Unsure which training methods a base model supports → or
bl finetune capability --model <base>.--training-type sft|sft-lora|dpo|cpt - Text values:
--training-type/sft/sft-lora/dpo/dpo-lora. Audio bases includecpt; image bases includecosyvoice-v3-flash.wan2.7-image-pro - Deployment plans: audio defaults to ; text/image default to
--plan mu.lora - Preview write operations (create / delete / cancel / scale) with first, and confirm with the user before deleting a job or dataset.
--dry-run
1. 校验数据 bl dataset validate --file train.jsonl [--schema chatml|dpo|cpt|tts|image]
2. 上传数据 bl dataset upload --file train.jsonl # 返回 file-id
3. 创建任务 bl finetune text|audio|image create --model <base> --datasets <file-id|path>
4. 查看进度 bl finetune watch --job-id ft-xxx # 或使用 get / logs 命令
5. 选择产物 bl finetune checkpoints --job-id ft-xxx
6. 导出模型 bl finetune export --job-id ft-xxx --checkpoint ckpt-N --model-name my-model
7. 部署服务 bl deploy text|audio|image create --model my-model --name my-svc- 不确定基础模型支持哪种训练方式 → 执行 或
bl finetune capability --model <base>。--training-type sft|sft-lora|dpo|cpt - 文本类 参数值:
--training-type/sft/sft-lora/dpo/dpo-lora。音频类基础模型包含cpt;图像类基础模型包含cosyvoice-v3-flash。wan2.7-image-pro - 部署方案:音频默认使用 ;文本/图像默认使用
--plan mu。lora - 写操作(创建 / 删除 / 取消 / 扩容)请先使用 预览,删除任务或数据集前需与用户确认。
--dry-run
When to use which command
命令适用场景
| Intent | Command |
|---|---|
| Validate / upload training data | |
| Dataset list / detail / delete | |
| Create a fine-tuning job | |
| Job list / detail / follow | |
| Artifacts and export | |
| Cancel / delete a job | |
| Trainable capability lookup | |
| Deploy / lifecycle | |
Flags, usage, and examples: see or — do not guess flags.
reference/bl <command> --help| 需求 | 命令 |
|---|---|
| 校验/上传训练数据 | |
| 数据集列表/详情/删除 | |
| 创建精调任务 | |
| 任务列表/详情/跟踪 | |
| 产物与导出 | |
| 取消/删除任务 | |
| 可训练能力查询 | |
| 部署/生命周期管理 | |
参数、用法及示例请查看 或 ,请勿猜测参数。
reference/bl <command> --helpQuick examples
快速示例
bash
bl dataset validate --file train.jsonl
bl dataset upload --file train.jsonl
bl finetune text create --model qwen3-8b --training-type sft-lora --datasets file-xxx
bl finetune watch --job-id ft-xxx
bl finetune export --job-id ft-xxx --checkpoint ckpt-3 --model-name my-qwen-sft
bl deploy text create --model my-qwen-sft --name my-svcbash
bl dataset validate --file train.jsonl
bl dataset upload --file train.jsonl
bl finetune text create --model qwen3-8b --training-type sft-lora --datasets file-xxx
bl finetune watch --job-id ft-xxx
bl finetune export --job-id ft-xxx --checkpoint ckpt-3 --model-name my-qwen-sft
bl deploy text create --model my-qwen-sft --name my-svcCommon hand-offs
常见转接场景
软 hand-off(按 skill 名;已安装则 Read,否则 / 提示 ):
--helpnpx skills add modelstudioai/cli --all -g- After deployment, try the model or generate content → skill (media) or
bailian-gen(fallback:bl text chat).bl image\|video\|text --help - Unsure which base model to pick → /
bailian-model-recommend.bl advisor recommend - Training quota / usage questions → skill (fallback:
bailian-cli/bl quota).bl usage --help
软转接(按 skill 名称;已安装则查看文档,否则使用 / 提示执行 ):
--helpnpx skills add modelstudioai/cli --all -g- 部署完成后,测试模型或生成内容 → 使用 skill (多媒体)或
bailian-gen(备选:bl text chat)。bl image\|video\|text --help - 不确定选择哪个基础模型 → 使用 /
bailian-model-recommend。bl advisor recommend - 训练配额/使用量相关问题 → 使用 skill (备选:
bailian-cli/bl quota)。bl usage --help
references
参考资料
- bailian-protocol — shared protocol (install via )
--all -g - reference/ — command details
- bailian-protocol — 共享协议(通过 安装)
--all -g - reference/ — 命令详情