ai-fine-tuning
Installation
SKILL.md
Fine-Tune Models on Your Data
Guide the user through deciding whether to fine-tune, preparing data, running fine-tuning with DSPy, distilling to cheaper models, and deploying. Fine-tuning is powerful but expensive — always confirm prerequisites first.
Should you fine-tune?
Before writing any code, walk through these questions with the user:
- Have you optimized prompts first? If not, use
/ai-improving-accuracy— prompt optimization is 10x cheaper and often sufficient. - Do you have 500+ labeled examples? Fine-tuning with less data usually overfits. Collect more data first.
- Is your baseline accuracy above 50%? If your prompt-optimized program is below 50%, your task definition or data has problems. Fix those first.
- What's the goal — quality or cost?
- Quality: You've maxed out prompt optimization and need more accuracy
- Cost: You want a small cheap model to match an expensive one