Peft Fine Tuning
Orchestra-Research/AI-Research-SKILLs
Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.
Drives fine-tuning on Alibaba Cloud Model Studio with the bl CLI: validate and upload data, create a job, watch it, export results and deploy the model.
$ npx skills add modelstudioai/cli --skill bailian-finetune -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install modelstudioai/cli bailian-finetune --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bailian-finetune .claude/skills/bailian-finetune && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "bailian-finetune" agent skill from https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetune into .claude/skills/bailian-finetune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-finetune", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetuneType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add modelstudioai/cli --skill bailian-finetune -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install modelstudioai/cli bailian-finetune --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/bailian-finetune .agents/skills/bailian-finetune && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bailian-finetune" agent skill from https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetune into .agents/skills/bailian-finetune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-finetune", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modelstudioai/cli --skill bailian-finetune -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install modelstudioai/cli bailian-finetune --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/bailian-finetune .cursor/skills/bailian-finetune && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "bailian-finetune" agent skill from https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetune into .cursor/skills/bailian-finetune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-finetune", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/modelstudioai/cli.git --path skills/bailian-finetune--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add modelstudioai/cli --skill bailian-finetune -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install modelstudioai/cli bailian-finetune --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/bailian-finetune .gemini/skills/bailian-finetune && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "bailian-finetune" agent skill from https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetune into .gemini/skills/bailian-finetune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-finetune", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install modelstudioai/cli bailian-finetuneInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add modelstudioai/cli --skill bailian-finetune -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/bailian-finetune .github/skills/bailian-finetune && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "bailian-finetune" agent skill from https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetune into .github/skills/bailian-finetune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-finetune", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modelstudioai/cli --skill bailian-finetune -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install modelstudioai/cli bailian-finetune --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modelstudioai/cli.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/bailian-finetune .opencode/skills/bailian-finetune && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "bailian-finetune" agent skill from https://github.com/modelstudioai/cli/tree/main/skills/bailian-finetune into .opencode/skills/bailian-finetune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bailian-finetune", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
bailian-finetuneDrives fine-tuning on Alibaba Cloud Model Studio with the bl CLI: validate and upload data, create a job, watch it, export results and deploy the model.
The workflow runs in order through `bl dataset` and `bl finetune`: validate a training file against a schema (chatml, dpo, cpt, tts or image), upload it to get a file ID, create a text, audio or image job from a base model, watch progress and logs, pick a checkpoint and export, then deploy with `bl deploy`. Training types include sft, sft-lora, dpo, dpo-lora and cpt, and a capability command shows what a base model supports. Deployment plans default to mu for audio and lora for text and image.
Before anything else the agent must read the shared `bailian-protocol` skill for version checks, setup and authentication, and if it is missing, run `bl skill init`. The whole pipeline needs an API key. Command details come from the `reference` folder and `bl --help` rather than guessed flags, write operations are previewed with `--dry-run` first, and for high-risk commands the agent never adds `--yes` by itself. Fine-tuning on Volcano Ark, model selection and image or video generation belong to other skills.
Read from SKILL.md and the folder at commit 8bbbbc7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Bailian Fine-Tuning Pipeline loads about 1.8k tokens when it runs. Until then it costs about 124 tokens; SKILL.md has 541 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from modelstudioai/cli at commit 8bbbbc7, republished under its Apache-2.0 licence (© modelstudioai). 541 words, ~1,768 tokens.
.claude/skills/bailian-finetune/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.bl dataset / bl finetune / bl deploy)CRITICAL — Before executing, MUST read the shared protocol in ../bailian-protocol/SKILL.md: Version & updates (pre-flight checklist), Setup & auth, and CLI errors: report an issue. Command details are authoritative in reference/ (dataset / finetune / deploy) and bl <command> --help — do not guess flags. The whole pipeline requires an API key. If that protocol file is missing, stop and run bl skill init; do not guess auth/consent.
1. Validate data bl dataset validate --file train.jsonl [--schema chatml|dpo|cpt|tts|image]
2. Upload data bl dataset upload --file train.jsonl # returns a file-id
3. Create job bl finetune text|audio|image create --base-model <base> --datasets <file-id|path>
4. Watch progress bl finetune watch --job-id ft-xxx # or get / logs
5. Pick artifact bl finetune checkpoints --job-id ft-xxx
6. Export model bl finetune export --job-id ft-xxx --checkpoint ckpt-N --model-name my-model
7. Deploy service bl deploy text|audio|image create --model-name my-model --display-name my-svcbl finetune capability --base-model <base> or --training-type sft|sft-lora|dpo|cpt.--training-type values: sft / sft-lora / dpo / dpo-lora / cpt. Audio bases include cosyvoice-v3-flash; image bases include wan2.7-image-pro.--plan mu; text/image default to lora.risk: high or requires_confirmation, follow bailian-protocol; never add --yes automatically.| Intent | Command |
|---|---|
| Validate / upload training data | bl dataset validate / upload (.jsonl or .zip) |
| Dataset list / detail / delete | bl dataset list / get / delete |
| Create a fine-tuning job | bl finetune text|audio|image create |
| Job list / detail / follow | bl finetune list / get / watch / logs |
| Artifacts and export | bl finetune checkpoints / export |
| Cancel / delete a job | bl finetune cancel / delete |
| Trainable capability lookup | bl finetune capability |
| Deploy / lifecycle | bl deploy text|audio|image create, list / get / update / scale / delete / models |
| Query throughput reservations | bl deploy list --plan ptu / bl deploy get |
| Query capacity instances | bl deploy capacity list / get |
| Query / wait for a capacity operation | bl deploy operation get / wait |
| Buy / scale / renew / release capacity | bl deploy capacity create / scale / renew / delete |
| Unsubscribe a prepaid instance | bl deploy capacity unsubscribe (builds the billing console refund link) |
| Configure ModelCode overflow strategy | bl deploy overflow |
The capacity list / get, operation get / wait and deploy list / get queries are read-only. Capacity values are kTPM; effective, configured and target capacities are distinct. deploy list --status filters only the fetched page locally, with the server total left unfiltered. operation get reports status as data; operation wait exits non-zero on failure or timeout and refreshes capacity after success. Use IDs returned by the API; waiting never retries a write.
The capacity create / scale / renew / delete and overflow commands are high-risk writes: preview with --dry-run, then confirm with the runtime-injected --yes. Each write is submitted once and never auto-retried; HTTP 200 is not success, so pass --wait or check operation_status. Scale values are one instance's absolute kTPM, not deltas or ModelCode totals, and zero is not release. capacity delete releases an instance but keeps the ModelCode; active prepaid instances cannot be DELETEd — run capacity unsubscribe --instance-id <id> to get the billing console refund link and finish there (no API exists for refunds). Release is confirmed by deleted=true. overflow applies to the whole ModelCode, not one instance. There is no estimator or standalone auto-renewal endpoint — renewal settings ride along purchase/scale/renew.
Flags, usage, and examples: see reference/ or bl <command> --help — do not guess flags.
bl dataset validate --file train.jsonl
bl dataset upload --file train.jsonl
bl finetune text create --base-model qwen3-8b --training-type sft-lora --datasets file-xxx
bl finetune watch --job-id ft-xxx
bl finetune export --job-id ft-xxx --checkpoint ckpt-3 --model-name my-qwen-sft
bl deploy text create --model-name my-qwen-sft --display-name my-svc软 hand-off(按 skill 名;已安装则 Read,否则 --help / 提示 bl skill init):
bailian-gen (media) or bl text chat (fallback: bl image\|video\|text --help).bailian-model-recommend / bl advisor recommend.bailian-cli (fallback: bl quota / bl usage --help).bl skill init)© modelstudioai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in skills/bailian-finetune of modelstudioai/cli.
Open the folder on GitHubat commit 8bbbbc7
Bailian Fine-Tuning Pipeline next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bailian Fine-Tuning Pipeline this skillmodelstudioai/cli | 541 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Peft Fine TuningOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.1k | Automated safety check: Pass | MIT | |
| Hugging Face LLM Trainerhuggingface/skills | 11k | 3 repos | ~7.2k | Automated safety check: Pass | Apache-2.0 | |
| Sentence-Transformers Training Routerhuggingface/skills | 11k | 1 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Dataset Evaluationawslabs/agent-plugins | 912 | 2 repos | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Train RlOpenPipe/ART | 11k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 |
Orchestra-Research/AI-Research-SKILLs
Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.
huggingface/skills
Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.
huggingface/skills
Routes a sentence-transformers training task to the right model type and required reference docs and example scripts, covering bi-encoders, rerankers, sparse and multi-vector models.
awslabs/agent-plugins
Validates dataset formatting and quality for SageMaker model fine-tuning (SFT, DPO, or RLVR).
OpenPipe/ART
RL training reference for the ART framework. An agent skill from OpenPipe/ART.
R6410418/Jackrong-llm-finetuning-guide
Prepare, validate, launch-plan, monitor, resume, and stop configurable Qwopus 27B reinforcement-learning workflows for GRPO or GSPO.
modelstudioai/cli
Chinese-language entry point into Alibaba Cloud Bailian's image, video and speech generation and understanding, routed through separate image, video, speech and vision commands.
modelstudioai/cli
Shared execution protocol for the Alibaba Cloud Bailian bl skill family, covering consent, version checks, authentication and install, issue reporting and output conventions.
modelstudioai/cli
Hub for the bl CLI of Alibaba Cloud Model Studio (Bailian): app calls, knowledge bases, model catalog, usage and quota, workspaces, MCP market, auth and skill installs.
modelstudioai/cli
Manages Alibaba Cloud Bailian knowledge bases with the bl command line: create bases, upload documents, deploy search services, fix chunks and handle data center files.
modelstudioai/cli
Manages Alibaba Cloud Bailian managed agents as infrastructure as code with the bl managed-agent command, previewing every change before apply or destroy.
modelstudioai/cli
Decides whether a web search in Alibaba Cloud Bailian (Model Studio) workflows uses the model's built-in search or the Bailian MCP, based on the connection type.
Works with
Categories
Drives fine-tuning on Alibaba Cloud Model Studio with the bl CLI: validate and upload data, create a job, watch it, export results and deploy the model. The workflow runs in order through `bl dataset` and `bl finetune`: validate a training file against a schema (chatml, dpo, cpt, tts or image), upload it to get a file ID, create a text, audio or image job from a base model, watch progress and logs, pick a checkpoint and export, then deploy with `bl deploy`. Training types include sft, sft-lora, dpo, dpo-lora and cpt, and a capability command shows what a base model supports.
Bailian Fine-Tuning Pipeline fits situations like: fine-tuning a text, speech or image model on Alibaba Cloud Model Studio; validating and uploading a training dataset before creating a job; following a training job's progress and exporting a checkpoint; deploying a fine-tuned model as a service.
Run `npx skills add modelstudioai/cli --skill bailian-finetune -a claude-code`. Or copy the skill folder (skills/bailian-finetune in modelstudioai/cli) into .claude/skills/bailian-finetune in your project. Claude Code loads it when a task matches its description.
Run `npx skills add modelstudioai/cli --skill bailian-finetune -a codex`. Or copy the skill folder (skills/bailian-finetune in modelstudioai/cli) into .agents/skills/bailian-finetune in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modelstudioai/cli --skill bailian-finetune -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bailian-finetune, .gemini/skills/bailian-finetune, .github/skills/bailian-finetune and .opencode/skills/bailian-finetune in your project.
SKILL.md names no scripts, command-line tools or credentials: Bailian Fine-Tuning Pipeline is instructions for the agent only. Our summary lists: The `bl` CLI installed with `bl skill init`; An API key for Alibaba Cloud Model Studio.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Bailian Fine-Tuning Pipeline is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Bailian Fine-Tuning Pipeline: Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars), Hugging Face LLM Trainer (huggingface/skills, 11k stars), Sentence-Transformers Training Router (huggingface/skills, 11k stars) and Dataset Evaluation (awslabs/agent-plugins, 912 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
modelstudioai (a GitHub organization) maintains it in modelstudioai/cli, which has 541 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 30, 2026.
Source: modelstudioai/cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.