bailian-train-deploy
БесплатноЗапускает вложенные скриптыНе проверенUse the Bailian CLI (`bl`) to run the full closed loop of "data → fine-tuning → export → deployment → invocation", or skip training and deploy a base model…
от modelstudioai★ 61 звезда на GitHubОб этом скилле
Bailian Model Training → Deployment Closed Loop (bl)
Use the Bailian CLI bl to turn a model into a callable dedicated inference service — you can fine-tune first and then deploy, or skip training and deploy a base model directly. Four modalities are supported: text, audio TTS, image generation, and video generation. The two "wait" points use asynchronous Monitor polling and never block the main flow.
Link A (train first, then deploy):
dataset → finetune <modality> create → wait for SUCCEEDED → export model (usually automatic) → deploy <modality> create → wait for RUNNING → invoke
Link B (deploy a base model directly, skipping training):
choose a base model → deploy <modality> create → wait for RUNNING → invoke
Link B fits "I just want to run some base model as my own deployment service" — in terms of inference it is essentially the same as calling the API directly, but you get a dedicated deployment instance with configurable rate/billing that is under your own operations. Take this route only when the user explicitly says no training / skip training / deploy the base model directly; when the user simply has not mentioned training details, default to guiding them through Link A and never skip training on your own initiative.
Modality dispatch: The generic flow in this skill applies to all modalities, but data format, hyperparameters, and inference commands differ by modality. Once the user's intent is clear, consult the matching reference file:
- Text models (chat/reasoning) →
references/text.md - Audio TTS models (speech synthesis/CosyVoice) →
references/audio.md - Image generation models (text-to-image/image-to-image/Wan2.7) →
references/image.md - Video generation models (image-to-video/first-and-last-frame/Wan i2v/kf2v) →
references/video.md - Future modalities = add a matching reference file; this flow skeleton stays unchanged
This skill assumes
bl(bailian-cli) is already installed. Command/flag details are governed bybl <cmd> --help; this skill focuses on flow orchestration and pitfall avoidance.
Write-operation guardrails (read before creating anything)
bl finetune <modality> create and bl deploy <modality> create are real write operations that create billable resources (fine-tuning + inference deployment). Both accept --dry-run: preview the request with --dry-run before every real run, run the pre-check commands below, and gate reserved resources with billing confirmation. Any write operation must pass these three gates first:
- Pre-checks, then a dry run (must run before creation; write only once feasibility is confirmed). These pre-check commands themselves require authentication via the pre-flight checks below — if not authenticated, run
bl auth loginfirst, then pre-check:- Before training:
bl finetune capability --base-model <base>— confirm the base model supports your chosen training-type (unsupported combos fail fast without consuming quota;createre-validates at submission). - Before deployment:
bl deploy models --source custom(Link A fine-tuned output) or--source base(Link B base model) — confirm the target model is deployable, see the available plans, then decide--plan. - Reuse detection:
bl deploy list --status RUNNING— if a RUNNING deployment already references the samefinetuned_output, reuse itsdeployed_modeland do not create a second billable instance. - Dry run right before the real run: re-run the same
createcommand with--dry-run. It prints the request that would be sent and creates nothing (no job, no deployment, no charge). Check the resolved model name, datasets /--model-nameand--planin that output, then drop--dry-run.--dry-runneeds no--yes.
- Before training:
- Hard billing-confirmation gate (mu/ptu):
lora(default; token-billed; idle usually not billed) — the safe default, can be created directly.mu/ptuare reserved/exclusive resources that bill even when idle — before creating them you must explain the billing model to the user and get their confirmation. In non-interactive environments (agent / CI) you must not auto-provision reserved resources. When mu/ptu applies, hand "this will incur idle billing" together with the command back to a real human for terminal confirmation.bl deploy <modality> createis a high-risk command: run without--yes, it stops with a confirmation-required error (exit 7) and creates nothing. Never add--yeson your own; re-run the same command with--yesonly after the user has confirmed (formu/ptu, only after the billing explanation above).bl finetune <modality> createhas no--yesand runs directly.
- Account readiness check:
bl auth status— ifauthenticated: false, stop and provide `bl auth login --api-key
Установить bailian-train-deploy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bailian-train-deploy?
Use the Bailian CLI (`bl`) to run the full closed loop of "data → fine-tuning → export → deployment → invocation", or skip training and deploy a base model directly. Supports fine-tuning text models (SFT/DPO/CPT), audio TTS models (CosyVoice), image generation models (Wan2.7), and video generation models (Wan i2v/kf2v). Covers dataset validation/upload, creating fine-tuning jobs, waiting for training, exporting the best checkpoint, creating inference deployments, waiting until ready, and providing call examples. Activate this skill whenever the user mentions "train a model" / 训练模型, "fine-tune" / "fine-tune" / "finetune" / 微调, "deploy a model" / 部署模型, "put the model online" / 模型上线, "run/call my fine-tuned model" / 把微调模型跑起来, "train a reasoning model" / 训练一个推理模型, "continued pretraining" / 继续预训练, "LoRA/SFT/DPO training" / LoRA/SFT/DPO 训练, "speech synthesis model" / 语音合成模型, "TTS fine-tuning" / TTS 微调, "CosyVoice", "voice cloning" / 声音克隆, "image generation fine-tuning" / 图像生成微调, "text-to-image" / 文生图, "image-to-image" / 图生图, "Wan2.7", "image model training" / 图像模型训练, "video generation fine-tuning" / 视频生成微调, "image-to-video" / 图生视频, "first-frame-to-video" / 首帧生视频, "first-and-last-frame" / 首尾帧, "kf2v", "i2v", "Wan video" / Wan视频, or "video effect training" / 视频特效训练 on Bailian / DashScope / Alibaba Cloud Model Studio. Even if the user does not explicitly say "use bl", as long as the intent is training or deployment on the Bailian platform, use this skill instead of assembling commands yourself.
Как установить скилл bailian-train-deploy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bailian-train-deploy запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic