bailian-kb
管理阿里云百炼知识库(建库、上传文档、部署检索服务、Chunk 运维、数据中心文件管理),命令行工具为 bl(bailian-cli)。 当用户要创建/更新/删除知识库、上传或导入文档(本地/OSS)、创建/部署/调参检索或问答服务、 增删改查…
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
Claude Code
$ npx -y skills add modelstudioai/cli --skill bailian-opd --agent claude-code
Codex
$ npx skills add modelstudioai/cli --skill bailian-opd -a codex -y
Cursor
$ npx skills add modelstudioai/cli --skill bailian-opd -a cursor -y
Gemini CLI
$ npx skills add modelstudioai/cli --skill bailian-opd -a gemini-cli -y
GitHub Copilot
$ npx skills add modelstudioai/cli --skill bailian-opd -a github-copilot -y
OpenCode
$ npx skills add modelstudioai/cli --skill bailian-opd -a opencode -y
Windsurf
$ npx skills add modelstudioai/cli --skill bailian-opd -a windsurf -y
name: bailian-opd
metadata:
version: "2.10.5"
requires:
bins: ["bl", "node"]
description: >-
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).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.md` and follow it: mandatory version pre-flight > before the first `bl` call, consent classes, attribution, error reporting, > output conventions. If the protocol skill is missing, stop and prompt > `bl skill init`. Business context for OPD flags lives in skill > `bailian-finetune` (its `reference/finetune.md`) or `bl finetune opd --help` — > never guess flags.
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
Console (`bl auth login --console`) for the OPD feature authorize probe.
student/teacher pairs and sizing: the official OPD docs "模型与训练单元" section (the CLI warns on unpublished pairs).
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.
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).
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).
Run `opd-preflight.mjs` (read-only; aggregates all stages in one pass). Present the report. Blocked stages → follow their `remediation`:
verbatim; the CLI never creates roles.
inline: `bl finetune opd authorize --authorize --yes`. The scripts never enable.
published student.
`--workspace-id` / config.
`ceil(batch_size / n_epochs)` samples with headroom, or lower `batch_size` / raise `n_epochs`; re-run preflight.
R
Official Model Studio CLI(阿里云百炼 CLI)built for AI Agent frameworks, exposing models, search, multimodal, and workflow capabilities as structured tool calls.
管理阿里云百炼知识库(建库、上传文档、部署检索服务、Chunk 运维、数据中心文件管理),命令行工具为 bl(bailian-cli)。 当用户要创建/更新/删除知识库、上传或导入文档(本地/OSS)、创建/部署/调参检索或问答服务、 增删改查…
阿里云百炼 / Aliyun Bailian / DashScope 资源管理与 `bl` CLI hub: 应用调用与管理(bl flow-agent:调用/创建/更新/发布/删除/复制/版本、工作流画布;旧 bl app call/list…
阿里云百炼模型精调训练入口:用户要精调、微调、训练自己的模型(fine-tune,支持 SFT / SFT-LoRA / DPO / DPO-LoRA / CPT, 覆盖文本、语音、图像)、校验或上传训练数据集、看训练进度和日志、挑…
阿里云百炼图片/视频/语音生成与理解入口:用户要生图、画图、生成照片、生成图片、AI 绘画、海报、头像、插画、 文生图(text-to-image)、图生图、改图、修图、多图合成、生成视频、文生视频、图生视频、参考生视频、视频编辑、风格转换、…
个人资料接入与知识库使用。当任务需要参考用户自己的历史文档、客户资料、旧方案、会议记录或学习材料时使用, 如“参考以前的资料准备会议”“照旧方案写一版”“之前为什么这样决定”;不要求用户说“知识库”或点名百炼。…
阿里云百炼托管 Agent 声明式基础设施与 API 命令入口:用户要创建agent、初始化 agents.yaml、校验或预览配置变更、 创建/更新/销毁托管 Agent 或 Deployment、在 Workbench…
Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI…
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a…
Install, configure, or troubleshoot Oh My Posh/ohmyposh: shell init, themes, segments, Nerd Font icons, and prompt setup on…
Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or…