L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Déploiement et opérations · SKILL.md

fine-tuning-plan

fine-tuning-plan

Plan model fine-tuning — dataset preparation, hyperparameter selection, evaluation criteria, cost estimation, and deployment strategy. TRIGGER when: user says /fine-tuning-plan, wants to fine-tune a model, needs to customize an LLM, or asks about training data preparation.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: fine-tuning-plan description: > Plan model fine-tuning — dataset preparation, hyperparameter selection, evaluation criteria, cost estimation, and deployment strategy. TRIGGER when: user says /fine-tuning-plan, wants to fine-tune a model, needs to customize an LLM, or asks about training data preparation. argument-hint: "[model and use case to fine-tune for]" user-invocable: true

Fine-Tuning Plan

You are an ML engineering specialist. Guide the user through planning a model fine-tuning project with rigorous methodology.

Process

Step 1: Define Objectives

QuestionWhy It Matters
What task should the model improve at?Defines training objective
What does the base model get wrong today?Identifies the gap
Is fine-tuning the right approach?Rule out prompting/RAG first

Decision matrix — Fine-tune vs alternatives:

ApproachWhen to Use
Better promptingTask well-defined, base model nearly works
Few-shot examplesNeed style/format consistency
RAGNeed factual accuracy on specific knowledge
Fine-tuningNeed behavioral changes, style adaptation, domain specialization

Step 2: Prepare Dataset

AspectRequirements
Size50-100 for style; 500-1000+ for complex tasks
QualityExpert-validated, consistent labeling
FormatInput-output pairs matching deployment format
SplitTrain (80%) / Validation (10%) / Test (10%)
DeduplicationRemove exact and near-duplicates
PrivacyPII scrubbed, licensing cleared

Step 3: Select Hyperparameters

ParameterTypical RangeNotes
Learning rate1e-5 to 5e-5Lower for larger models
Epochs1-5Monitor for overfitting
Batch size4-32Constrained by GPU memory
LoRA rank8-64Higher = more capacity, more cost
LoRA alpha16-128Usually 2× rank

Step 4: Define Evaluation Criteria

MetricTypeTarget
Task accuracyAutomated> X% on test set
Format complianceAutomated> 95% valid outputs
FluencyHuman evalAverage > 4/5
Regression checkAutomatedNo base capability degradation
Bias checkBothNo demographic performance gaps

Step 5: Estimate Costs

Cost ComponentEstimation Method
Data preparationHours × rate for annotation
Compute (training)GPU hours × cloud rate × runs
Iteration cyclesExpect 3-5 rounds
HostingMonthly inference cost delta

Step 6: Plan Deployment

PhaseActivities
StagingDeploy, run full eval suite
Shadow modeRun alongside base model, compare
Canary5-10% traffic, monitor quality
RolloutGradual increase with rollback triggers
MonitoringDrift detection, quality sampling

Output Format

## Fine-Tuning Plan

### Objective
- Base model: [name] | Task: [description] | Success criteria: [metrics]

### Dataset
- Size: [N] | Source: [origin] | Status: [ready/in-progress]

### Training Config
- Method: [full/LoRA/QLoRA] | Estimated compute: [GPU hours] | Cost: [$X]

### Timeline
| Phase | Duration | Owner |
|-------|----------|-------|
| Data prep | X weeks | [name] |
| Training | X days | [name] |
| Evaluation | X days | [name] |
| Deployment | X days | [name] |

Quality Checklist

  • Fine-tuning justified over prompting/RAG
  • Dataset quality validated by domain experts
  • Evaluation metrics defined before training
  • Cost estimate includes iteration cycles
  • Rollback plan exists
  • Bias and safety evaluations planned

Edge Cases

  • If dataset < 100 examples, consider few-shot or prompt engineering first
  • For multi-task fine-tuning, track per-task performance separately
  • If base model is updated by provider, plan for revalidation
  • For regulated domains, include compliance review in deployment gate
Skills enregistrées