bailian-opd
БесплатноЗапускает вложенные скриптыНе проверенGuided end-to-end pure Model OPD distillation (pg_opd) on Alibaba Cloud Bailian: authorize → dataset validate → parameter probes → dry-run consent gate →…
от modelstudioai★ 376 звёзд на GitHubОб этом скилле
Bailian OPD Distillation Workflow
Create a pure Model OPD training job (training_type=pg_opd, top-level
teacher_model, no rollout/reward functions, no Function Compute) with the
highest possible first-run success rate. Gate logic lives in deterministic
scripts under scripts/; the agent orchestrates, presents findings, and obtains
consent — it does not re-implement gates or guess flags.
CRITICAL — shared protocol first. Before executing anything, Read
../bailian-protocol/SKILL.mdand follow it: mandatory version pre-flight before the firstblcall, consent classes, attribution, error reporting, output conventions. If the protocol skill is missing, stop and promptbl skill init. Business context for OPD flags lives in skillbailian-finetune(itsreference/finetune.md) orbl finetune opd --help— never guess flags.
Attribution
Bundled scripts already carry the protocol script attribution
(BAILIAN_CALLER_TYPE=script, BAILIAN_CALLER_NAME from --caller-name).
For inline bl commands the agent runs itself, use the protocol agent
template, e.g.:
BAILIAN_CALLER_TYPE=agent BAILIAN_CALLER_NAME=codex BAILIAN_SKILL_NAME=bailian-opd BAILIAN_SKILL_VERSION=2.10.2 bl finetune opd authorize --authorize --yes
Prerequisites
blinstalled and up to date (protocol version pre-flight);node>= 18 on PATH.- Two logins: API key (
bl auth login --api-key) for data/params/create, and Console (bl auth login --console) for the OPD feature authorize probe. - OPD is invite-only (邀测): the account whitelist must be enabled. Published student/teacher pairs and sizing: the official OPD docs "模型与训练单元" section (the CLI warns on unpublished pairs).
Workflow (steps 0–7)
0. Protocol pre-flight
Run the protocol version pre-flight; check node --version (>= 18) and
bl auth status. Missing Console login blocks only the authorize stage — the
preflight report still surfaces everything else.
1. Chain-start authorization
Disclose before any probe: OPD training is MTU postpaid billing
(mtu_spec_code × mtu_capacity, charged while the job runs). Obtain the user's
consent to start the read-only preflight. This consent covers the authorize
probe's --yes (the runtime risk gate requires it even for the read-only
probe; the probe never enables anything).
2. Choose a baseline (do not improvise hyper-parameters)
Default to the all-explicit 9B←397B baseline for a first run — every teacher resource field is explicit, so nothing depends on server defaults and capacity is fully computable:
node scripts/opd-preflight.mjs \
--base-model qwen3.5-9b --teacher-model qwen3.5-397b-a17b \
--datasets <train.jsonl> --validations <valid.jsonl> \
--hyper-parameters-file assets/baseline-9b-from-397b.hyper_parameters.json \
--resource-config-file assets/baseline-9b-from-397b.resource_config.json \
--caller-name <host>
Second choice: assets/baseline-9b-from-flash.* (9B←qwen3.8-flash, teacher
fields omitted → server fills Flash defaults). Capacity guide:
| Layout | mtu_capacity |
|---|---|
| Default student layout (layout fields omitted), 9B + Flash teacher | 24 (official recommendation; observed default = 16 student + 8 teacher GPUs) |
| Flash baseline custom layout (4/2 GPUs) | 16 |
| 397B baseline all-explicit (8/8 GPUs + 8 teacher) | 24 |
Baselines are dated snapshots of historically successful requests — never
"improve" them; apply overrides only when the user explicitly asks. Data format:
JSONL, messages with system (task) + user (input); prompt-only is valid for
pure distillation; rollout_extra.solution passes through untouched. Data size:
batch_size is the samples-per-step, so the training set needs at least
ceil(batch_size / n_epochs) effective samples for one step — the preflight
batch-fit stage computes the step count and blocks zero-step configurations
(they fail at execution time, after billing starts).
3. Preflight report and remediation
Run opd-preflight.mjs (read-only; aggregates all stages in one pass). Present
the report. Blocked stages → follow their remediation:
- Console login missing →
bl auth login --console. - Service roles
REQUIRES_USER_ACTION→ surface the manual authorization links verbatim; the CLI never creates roles. business-enabled: MISSING→ only after explicit user confirmation, run inline:bl finetune opd authorize --authorize --yes. The scripts never enable.- Empty parameter schema → the student is not reg
Установить bailian-opd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bailian-opd?
Guided end-to-end pure Model OPD distillation (pg_opd) on Alibaba Cloud Bailian: authorize → dataset validate → parameter probes → dry-run consent gate → confirmed submit → verified terminal state, driven by deterministic scripts. Use when the user wants to distill a student model from a teacher model (teacher_model / OPD / 蒸馏 / 在线蒸馏) and run the whole creation chain safely. Not for RL / agentic rollout training, SFT/DPO/CPT fine-tuning, or deployment (those go to bailian-finetune); not for model selection advice (bailian-model-recommend).
Как установить скилл bailian-opd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bailian-opd запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic