| name | llm-finetuning-stack |
| description | Plan, debug, and evaluate LLM adaptation pipelines including continued pretraining, SFT, LoRA or QLoRA, preference optimization, reward modeling, and post-training evaluation. Use when building a finetuning stack, diagnosing collapse, choosing data mixtures, or deciding whether a method improved capability or only benchmark fit. |
LLM Finetuning Stack
Use this skill when an LLM training run needs to be treated as a research program rather than a recipe.
Core Workflow
- Lock the adaptation objective:
- domain adaptation,
- instruction following,
- preference alignment,
- tool use,
- reasoning.
- Separate data curation, tokenizer effects, optimization, and evaluation.
- Use
references/failure-modes.md when loss curves, style drift, or capability regressions look suspicious.
- Compare full finetuning, parameter-efficient finetuning, and prompting against the same task definition.
- Evaluate on both target tasks and capability retention tasks.
Execution Rules
- Never judge a finetune by training loss alone.
- Track base model, tokenizer, template, and chat format exactly.
- Distinguish behavior change from memorization or formatting overfit.
- Keep safety regressions and hallucination rates visible even when task metrics improve.
Output Contract
Return:
- Objective and stack summary.
- Data and optimization risks.
- Evaluation plan.
- Likely failure modes.
- Recommended next experiment.