Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 running bl and prompt bl skill init. Command details are authoritative in bl <command> --help and skill bailian-finetune's reference/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 → --yes billing gate still applies on top — intake does not replace it.
  • The deliverable is a submitted bl job, not documentation or code. Never respond to a training request with a hand-written SDK script (submit_job.py etc.), 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)

  1. CLI version: proceed only if bl finetune rl run --help prints normally. The RL command group is recent — older CLIs lack it; upgrade with bl update first. During development you can use the repo entry pnpm -s bl (note its cwd is pinned to packages/cli; see the path rules below).
  2. 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).
  3. Auth: bl auth status; if unauthenticated, bl auth login --api-key sk-... first. The bl path 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. The pip install dashscope instructions in official docs apply only to the hand-written SDK-script path.
  4. 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
Полный SKILL.md на GitHub

Установить bailian-rl-deploy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdREADME.zh.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить bailian-rl-deploy с