CtrlK
BlogDocsLog inGet started
Tessl Logo

minicpm5-finetune-trl

Fine-tune MiniCPM5-1B or MiniCPM5-2B with bare-metal TRL + PEFT, including assistant-only loss via a chat-template patch. Use when the user wants minimal Python, no YAML, full control, or asks for "TRL", "SFTTrainer", "PEFT", "LoraConfig", "assistant_only_loss".

79

Quality

100%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

100%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An efficient, fully executable bare-metal fine-tuning recipe with a clear sequenced workflow, an explicit validation checkpoint, and error-recovery pitfalls. It assumes Claude's intelligence, avoids padding, and structures its single external reference cleanly.

DimensionReasoningScore

Conciseness

Lean recipe that assumes Claude's competence: no explanations of what TRL/PEFT/LoRA are, straight to executable code and a tight input table; inline comments are sparse and load-bearing (the 'do NOT save back to disk' / 'only assistant tokens contribute' keys), not padded.

5 / 5

Actionability

Fully copy-paste ready: complete train_lora.py with imports/config/trainer, pinned install commands, concrete train invocation with env vars, plus inference and merge snippets covering the common end-to-end case.

5 / 5

Workflow Clarity

Clear numbered sequence (Install → Patch → Train → Validate → Merge → Pitfalls) with an explicit validation checkpoint (expected loss/accuracy output) and a pitfalls feedback loop that diagnoses and recovers from the fragile chat-template and trl-version failure modes.

5 / 5

Progressive Disclosure

No bundle files present; the body is a cohesive self-contained recipe organized into clearly headed sections with a single one-level-deep, well-signaled external reference ([docs/finetune/trl.md]) and no nested reference chains.

5 / 5

Total

20

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, specific, third-person description that clearly states both capability and trigger conditions without fluff or verbosity. It names concrete techniques and surfaces the exact terms a user would say when they need this skill.

DimensionReasoningScore

Specificity

Names a concrete niche (fine-tuning MiniCPM5-1B/2B) and multiple specific actions — bare-metal TRL + PEFT and assistant-only loss via a chat-template patch — giving comprehensive coverage of the recipe rather than minimal or generic actions.

5 / 5

Completeness

Explicitly answers both 'what' (fine-tune MiniCPM5 with TRL+PEFT + assistant-only-loss patch) and 'when' ('Use when the user wants... or asks for...') with concrete trigger phrases.

5 / 5

Trigger Term Quality

Comprehensive natural + technical triggers: intent phrases ('minimal Python', 'no YAML', 'full control') plus exact library/API terms users say ('TRL', 'SFTTrainer', 'PEFT', 'LoraConfig', 'assistant_only_loss').

5 / 5

Distinctiveness Conflict Risk

Clear niche — MiniCPM5-specific fine-tuning with assistant-only-loss — with distinct triggers that are unlikely to fire for unrelated skills; minimal conflict risk.

5 / 5

Total

20

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

relative_links

Relative link issues: 1 suspicious

Warning

Total

15

/

16

Passed

Repository
OpenBMB/MiniCPM
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.