fine-tuning

Solid

Use when considering fine-tuning a model. Covers when fine-tuning beats prompting or RAG, dataset construction, LoRA and full fine-tuning, evaluation, and the failure modes that waste the effort.

AI & Automation 26 stars 3 forks Updated 3 weeks ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
48
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Fine-Tuning ## Purpose Decide whether fine-tuning is warranted, and do it properly if it is. Most fine-tuning projects should have been prompt engineering or retrieval, and the ones that should be fine-tuning usually fail on dataset quality rather than on the training. ## When to Use - A task where prompting has plateaued below the required accuracy. - A specific output format, style, or domain vocabulary the model will not adopt reliably. - Reducing cost by making a small model do what currently requires a large one. - Evaluating an existing fine-tuned model that underperforms. ## Capabilities - Deciding between prompting, RAG, and fine-tuning. - Dataset construction, curation, and splitting. - LoRA and QLoRA versus full fine-tuning. - Hyperparameter selection and overfitting detection. - Evaluation against the base model on the same set. ## Inputs - The task, and the accuracy prompting achieves on it. - Available training data — its volume, and honestly, its quality. - Latency and cost constraints. ## Outputs - A justified decision to fine-tune, or not to. - A curated dataset with clean train/validation/test splits. - A model measurably better than the base model on a held-out set. ## Workflow 1. **Exhaust prompting first** — Few-shot examples, a clearer output contract, a better model. Fine-tuning cannot teach knowledge the model lacks; it teaches behavior. If the problem is that the model does not *know* something, use retrieval instead. 2. **Decide what fin...

Details

Author
nimadorostkar
Repository
nimadorostkar/Claude-Skills-collection
Created
1 months ago
Last Updated
3 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category