๐Ÿงน ModelBrew Dataset Cleaner

90+ quality checks for fine-tuning datasets: PII with real checksum validation, exact/near duplicates, prompt-injection & jailbreak patterns, label errors, truncated responses, and more. Free and open source.

Clean your dataset in the browser โ†’ GitHub

Or in your pipeline

pip install modelbrew-cleaner

from modelbrew_cleaner import clean_file, issue_summary, export_clean
rows = clean_file("train.jsonl")     # .jsonl, .json, or .csv
print(issue_summary(rows))           # {'critical': 4, 'warning': 7, 'suggestion': 6}
cleaned = export_clean(rows)         # critical rows dropped

Real output โ€” the bundled dirty sample (12 rows)

This report is generated by actually running the cleaner on sample.jsonl at build time โ€” 4 critical / 7 warnings / 6 suggestions; 4 rows dropped from the cleaned export.

rowseveritycheckmessageauto-fix
3criticalpii_ssnSSN detectedโœ”
4criticalincomplete_pairOutput row has no instruction
5criticalincomplete_pairInstruction row has no output
7criticalprompt_injectionRow contains prompt injection patterns โ€” dangerous for training
0warningduplicate_boilerplateResponse shares a common opening with >30% of rows
1warningduplicate_exactExact duplicate rowโœ”
1warningduplicate_boilerplateResponse shares a common opening with >30% of rows
2warningduplicate_nearNear-duplicate of row 0 (93.06930693069306% similar on both prompt and response)โœ”
3warningpii_emailEmail detectedโœ”
7warningjailbreak_patternJailbreak / red-team pattern detected (instruction_override) โ€” training on this teaches the model to comply with bypass promptsโœ”
10warningunfinished_responseResponse appears to end mid-sentenceโœ”
0suggestionmodelbrew_too_few_rowsOnly 12 rows โ€” ModelBrew works best with 20+ training examples
3suggestionpii_name_heuristicPossible personal name (1) โ€” heuristic, not NER-grade
4suggestiontiny_rowRow has very few tokens (15) โ€” may be low signal
5suggestiontiny_rowRow has very few tokens (10) โ€” may be low signal
7suggestiontiny_rowRow has very few tokens (16) โ€” may be low signal
8suggestionpii_name_heuristicPossible personal name (1) โ€” heuristic, not NER-grade

Why we built it

We work on fine-tuning without catastrophic forgetting (patent-pending CRMA adapters). Measuring forgetting honestly forced us to fix our data first โ€” in our measurements, dataset confounds alone accounted for a 96.9-percentage-point swing in measured forgetting. Read: Your forgetting benchmark is lying to you ยท Browse the forgetting leaderboard.