Skip to content
Back to skills

Fine Tuning Dataset Curation

ASecurity

Enforce professional standards for curating high-fidelity datasets and executing model fine-tuning (SFT/RLHF) pipelines. This skill ensures that AI models are specialized for unique domain knowledge (e.g., UAE Legal, Medical, or Sovereign Factory Specs) without catastrophic forgetting.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgonode

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill fine-tuning-dataset-curation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fine Tuning Dataset Curation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fine Tuning Dataset Curation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-fine-tuning-dataset-curation/badge)](https://www.skillsdirectory.com/skills/idorgham-fine-tuning-dataset-curation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# 🧪 Fine-Tuning & Dataset Curation (Omega-tier)


## Purpose
Enforce professional standards for curating high-fidelity datasets and executing model fine-tuning (SFT/RLHF) pipelines. This skill ensures that AI models are specialized for unique domain knowledge (e.g., UAE Legal, Medical, or Sovereign Factory Specs) without catastrophic forgetting.

---

## Technique 1 — Dataset Purity & Formatting

### The JSONL Pipeline
- **Rule**: All training data must be stored in `.jsonl` format with specific `System`, `User`, and `Assistant` roles.
- **Deduplication**: Run a **Cosine Similarity** check on the dataset before training to remove redundant examples that dilute the model's focus.
- **Anonymization**: PII (Personally Identifiable Information) must be scrubbed using automated RegEx and LLM-validation nodes before training.

---

## Technique 2 — Fine-Tuning Protocols (SFT/DPO)

### SFT (Supervised Fine-Tuning)
- **Goal**: Teach the model a new "Style" or "Instruction Format."
- **Batch Size**: 4-8 for smaller datasets; 16-32 for large scale.
- **Learning Rate**: Use `2e-5` for stable feature absorption.

### DPO (Direct Preference Optimization)
- **Goal**: Align the model with "Human-Preferred" outputs without a heavy reward model.
- **Protocol**: Provide "Chosen" vs. "Rejected" response pairs to refine the model's value alignment.

---

## 🛡️ Critical Failure Modes (Anti-Patterns)

| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **Over-Fitting** | Hallucinations on non-training data | Use a diverse "Hold-out" test set and monitor loss curves. |
| **Low-Quality Context** | "Garbage In, Garbage Out" | Manually verify a 10% random sample of the dataset for accuracy. |
| **Catastrophic Forgetting** | Loss of general logic | Use a "Low-Rank Adaptation" (LoRA) or QLoRA approach for efficiency. |

---

## Success Criteria (Fine-Tuning QA)
- [ ] Training loss curve shows smooth convergence.
- [ ] Validation accuracy > 85% on out-of-sample data.
- [ ] Model adherence to "Sovereign Formatting Rules" is 100%.
- [ ] Dataset includes regional edge-cases (e.g., Bilingual code-switching).

Files in this skill

  • SKILL.md2.2 KB
  • core.py1.1 KB
  • manifest.yaml479 B
  • tests/test_core.py670 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.