Install
$ agentstack add skill-ashutoshsrivastava17-skill-library-fine-tuning-plan ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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
| Question | Why 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:
| Approach | When to Use | |----------|------------| | Better prompting | Task well-defined, base model nearly works | | Few-shot examples | Need style/format consistency | | RAG | Need factual accuracy on specific knowledge | | Fine-tuning | Need behavioral changes, style adaptation, domain specialization |
Step 2: Prepare Dataset
| Aspect | Requirements | |--------|-------------| | Size | 50-100 for style; 500-1000+ for complex tasks | | Quality | Expert-validated, consistent labeling | | Format | Input-output pairs matching deployment format | | Split | Train (80%) / Validation (10%) / Test (10%) | | Deduplication | Remove exact and near-duplicates | | Privacy | PII scrubbed, licensing cleared |
Step 3: Select Hyperparameters
| Parameter | Typical Range | Notes | |-----------|--------------|-------| | Learning rate | 1e-5 to 5e-5 | Lower for larger models | | Epochs | 1-5 | Monitor for overfitting | | Batch size | 4-32 | Constrained by GPU memory | | LoRA rank | 8-64 | Higher = more capacity, more cost | | LoRA alpha | 16-128 | Usually 2× rank |
Step 4: Define Evaluation Criteria
| Metric | Type | Target | |--------|------|--------| | Task accuracy | Automated | > X% on test set | | Format compliance | Automated | > 95% valid outputs | | Fluency | Human eval | Average > 4/5 | | Regression check | Automated | No base capability degradation | | Bias check | Both | No demographic performance gaps |
Step 5: Estimate Costs
| Cost Component | Estimation Method | |---------------|-------------------| | Data preparation | Hours × rate for annotation | | Compute (training) | GPU hours × cloud rate × runs | | Iteration cycles | Expect 3-5 rounds | | Hosting | Monthly inference cost delta |
Step 6: Plan Deployment
| Phase | Activities | |-------|-----------| | Staging | Deploy, run full eval suite | | Shadow mode | Run alongside base model, compare | | Canary | 5-10% traffic, monitor quality | | Rollout | Gradual increase with rollback triggers | | Monitoring | Drift 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
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ashutoshsrivastava17
- Source: ashutoshsrivastava17/skill-library
- License: MIT
- Homepage: https://github.com/ashutoshsrivastava17/skill-library#quick-start
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.