Fine-Tuning
Fine-tune LLMs with data preparation, provider selection, cost estimation, evaluation, and compliance checks.
от clawic★ 23 звезды на GitHub
Установить Fine-Tuning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to Use
User wants to fine-tune a language model, evaluate if fine-tuning is worth it, or debug training issues.
Quick Reference
| Topic | File |
|---|---|
| Provider comparison & pricing | providers.md |
| Data preparation & validation | data-prep.md |
| Training configuration | training.md |
| Evaluation & debugging | evaluation.md |
| Cost estimation & ROI | costs.md |
| Compliance & security | compliance.md |
Core Capabilities
- Decide fit — Analyze if fine-tuning beats prompting for the use case
- Prepare data — Convert raw data to JSONL, deduplicate, validate format
- Select provider — Compare OpenAI, Anthropic (Bedrock), Google, open source based on constraints
- Estimate costs — Calculate training cost, inference savings, break-even point
- Configure training — Set hyperparameters (learning rate, epochs, LoRA rank)
- Run evaluation — Compare fine-tuned vs base model on task-specific metrics
- Debug failures — Diagnose loss curves, overfitting, catastrophic forgetting
- Handle compliance — Scan for PII, configure on-premise training, generate audit logs
Decision Checklist
Before recommending fine-tuning, ask:
- What's the failure mode with prompting? (format, style, knowledge, cost)
- How many training examples available? (minimum 50-100)
- Expected inference volume? (affects ROI calculation)
- Privacy constraints? (determines provider options)
- Budget for training + ongoing inference?
Fine-Tune vs Prompt Decision
| Signal | Recommendation |
|---|---|
| Format/style inconsistency | Fine-tune ✓ |
| Missing domain knowledge | RAG first, then fine-tune if needed |
| High inference volume (>100K/mo) | Fine-tune for cost savings |
| Requirements change frequently | Stick with prompting |
| <50 quality examples | Prompting + few-shot |
Critical Rules
- Data quality > quantity — 100 great examples beat 1000 noisy ones
- LoRA first — Never jump to full fine-tuning; LoRA is 10-100x cheaper
- Hold out eval set — Always 80/10/10 split; never peek at test data
- Same precision — Train and serve at identical precision (4-bit, 16-bit)
- Baseline first — Run eval on base model before training to measure actual improvement
- Expect iteration — First attempt rarely optimal; plan for 2-3 cycles
Common Pitfalls
| Mistake | Fix |
|---|---|
| Training on inconsistent data | Manual review of 100+ samples before training |
| Learning rate too high | Start with 2e-4 for SFT, 5e-6 for RLHF |
| Expecting new knowledge | Fine-tuning adjusts behavior, not knowledge — use RAG |
| No baseline comparison | Always test base model on same eval set |
| Ignoring forgetting | Mix 20% general data to preserve capabilities |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- compliance.md
- costs.md
- data-prep.md
- evaluation.md
- providers.md
- training.md
FAQ
Что делает скилл Fine-Tuning?
Fine-tune LLMs with data preparation, provider selection, cost estimation, evaluation, and compliance checks.
Как установить скилл Fine-Tuning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Fine-Tuning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…