bailian-rl-deploy
БесплатноБез исполняемых скриптовНе проверенEnd-to-end reinforcement-learning training and deployment on Alibaba Cloud Bailian / DashScope with the `bl` CLI — authorize → sandbox runtime → data &…
от modelstudioai★ 61 звезда на GitHubОб этом скилле
Bailian RL training → deployment loop (bl finetune rl)
Submit, monitor, and deploy your first RL training job with the Bailian CLI bl. RL drives the model to explore optimal policies through a generate (Rollout) → score (Reward) → optimize loop — no ground-truth labels required. Well suited to math reasoning, agent tool calling, and code generation.
0. Intake (mandatory) inputs missing? ask the user first — model / data / functions / billing / deploy
1. Auth & environment bl auth status → bl finetune rl authorize → runtime prepare → runtime doctor
2. Data & code JSONL (messages + rollout_extra) + Rollout/Reward function package (official demo available)
3. Submit bl finetune rl run --dry-run preview → user confirms → --yes submit (optionally --watch)
4. Monitor bl finetune rl watch / logs / get + console Metrics tab (critic/rewards/mean)
5. Publish & deploy last checkpoint auto-published → bl deploy text create → invoke via bl text chat
Read the shared protocol before executing
../bailian-protocol/SKILL.md: version pre-flight, call attribution, auth, error reporting. If the protocol file is missing, stop runningbland promptbl skill init. Command details are authoritative inbl <command> --helpand skillbailian-finetune'sreference/finetune.md— do not guess flags.
Call attribution (wrap every agent-initiated bl command; inline samples below are for one-off runs — when copying into reusable scripts, use the protocol's script template):
BAILIAN_CALLER_TYPE=agent BAILIAN_CALLER_NAME=qoder BAILIAN_SKILL_NAME=bailian-rl-deploy BAILIAN_SKILL_VERSION=1.0.0 bl finetune rl authorize
Step 0: Intake — clarify missing inputs before acting (mandatory)
A submission needs five decisions. When the trigger message does not supply them, stop and ask the user — one compact round of questions with recommended defaults. Do not read official docs, do not generate code samples, and do not run any bl write command before the intake is settled:
| # | Input | Ask | Default to offer |
|---|---|---|---|
| 1 | Base model | Which model to train? | qwen3.5-9b (field-verified) |
| 2 | Training data | Own JSONL path(s), or the official demo data? | demo calc_train_min.jsonl + calc_validation_min.jsonl |
| 3 | Rollout/Reward code | Own function package path, or the official demo? | demo agentic-rl-example (math-calculation agent) |
| 4 | Billing | MTU spec × count; postpaid or prepaid? | MTU4 × 24, mtu_postpaid ≈ CNY 984/hour — disclose the cost |
| 5 | After training | Deploy automatically and hand off a call example? | yes |
- One-shot escape hatch: offer "use the official demo with the verified defaults" — accepting it settles all five inputs at once; the user then only confirms the disclosed cost at the Step 3 gate.
- Only after all five are settled (answered or explicitly defaulted) proceed to the version/platform gates and Step 1. The Step 3 dry-run → confirm →
--yesbilling gate still applies on top — intake does not replace it. - The deliverable is a submitted
bljob, not documentation or code. Never respond to a training request with a hand-written SDK script (submit_job.pyetc.), a doc summary, or generic code examples. If the user explicitly wants learning material / SDK sample code instead of running a job, that is out of scope — point to the official docs and stop. - Inputs already given in the trigger message are not re-asked; only the missing ones are.
Version & platform gates (start of the action flow)
- CLI version: proceed only if
bl finetune rl run --helpprints normally. The RL command group is recent — older CLIs lack it; upgrade withbl updatefirst. During development you can use the repo entrypnpm -s bl(note its cwd is pinned topackages/cli; see the path rules below). - Platform: the RL sandbox supports macOS / Linux only; Windows fails closed with "Not supported on Windows yet." — do not try to bypass it. OPD has no such restriction (but OPD is out of scope for this skill).
- Auth:
bl auth status; if unauthenticated,bl auth login --api-key sk-...first. Theblpath does not require a local Python / dashscope SDK install — the CLI ships a reviewed managed runtime (pinned CPython + dashscope baseline) that is downloaded, verified, and cached automatically. Thepip install dashscopeinstructions in official docs apply only to the hand-written SDK-script path. - Access whitelist: RL training must be enabled by your account manager. If the authorize probe reports
REQUIRES_USER_ACTION/ missing whitelist, hand the enablement guidance back to the user; do not retry in a loop.
Write-operation guardrails (read before submitting)
- RL supports MTU (Model Training Unit) billing only — no per-token billing. These are dedicated training resources; billing starts at creation: | Bill
Установить bailian-rl-deploy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bailian-rl-deploy?
End-to-end reinforcement-learning training and deployment on Alibaba Cloud Bailian / DashScope with the `bl` CLI — authorize → sandbox runtime → data & Rollout/Reward code → submit RL job → monitor → publish checkpoint → deploy & invoke. Covers bl finetune rl authorize / run / watch / logs / get / list / cancel / delete, bl finetune runtime prepare / doctor / clean, and post-training checkpoints / export / deploy. Activate whenever the user wants "reinforcement learning", "RL training", "GRPO/GSPO", "AgenticRL", "reward function", "rollout function", "math-reasoning training", "agent tool-calling training", "MTU training units", "rl run", or "submit an RL job" on Bailian / DashScope — even without saying "use bl"; do not hand-assemble commands or make the user write submit_job.py. Underspecified requests must go through the Step 0 intake (ask the user for model / data / Rollout-Reward code / billing / deploy intent) before any action — never answer a training request with doc summaries or code samples. Not for SFT / DPO / CPT / LoRA supervised fine-tuning or OPD distillation (pg_opd / teacher_model) — those go to bailian-finetune; training on other platforms, plain Q&A / coding / model selection do not trigger this skill.
Как установить скилл bailian-rl-deploy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bailian-rl-deploy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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