gekro
GitHub LinkedIn
AI

Fine-tune Dataset Auditor

Check a JSONL fine-tuning file before you spend money on it - structure, token distribution, duplicates, and training cost

As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.

© 2026 Rohit Burani · MIT · Built at gekro.com · View source ↗

Guide

What It Does

Fine-tuning fails on dumb, avoidable things: an example with no assistant message to learn from, a content field that is an object instead of a string, exact duplicates padding your token bill, or examples so long they blow the context window. Providers validate after you upload and, in some cases, after you pay.

This tool runs that validation locally. Drop a .jsonl file (up to 50 MB) or paste a few lines, and it parses every example, checks its structure, measures its token count, and totals the training cost - all in your browser, with nothing uploaded.

What It Checks

It recognizes both dataset shapes:

  • Chat format - {"messages": [{"role": "...", "content": "..."}]}
  • Legacy format - {"prompt": "...", "completion": "..."}

And flags, with the exact line numbers:

  • Errors (the example is unusable): invalid JSON, not an object, empty messages, unknown roles, no assistant message to train on, missing prompt or completion, unrecognized shape.
  • Warnings (trainable but suspect): empty assistant content, non-string content, first non-system message not from the user, mixed formats across the file, and exact duplicate examples.

Token Distribution and Cost

For every example it estimates the token count (a GPT-style ~4-chars-per-token approximation, plus per-message overhead for chat format) and reports the full distribution: minimum, mean, median, p95, and maximum, with a histogram so you can spot a long tail of oversized examples. The cost estimator multiplies your billable tokens by an editable price and epoch count. Model presets pre-fill representative training prices, but every field is editable so you can plug in your provider’s current rate.

Pair it with the Prompt Token Counter for single prompts and the LLM JSON Repair tool if some lines need fixing first.

Limitations

  • Token counts are approximate. It uses a fast heuristic, not the provider’s exact tokenizer, so treat the totals as within a few percent, not to the token.
  • Exact-duplicate detection only. It catches byte-identical examples, not near-duplicates or paraphrases.
  • Structural, not semantic. It verifies the file is well-formed and trainable; it cannot tell you whether the examples teach the behaviour you want.
  • 50 MB cap. Larger files are audited on their first 50 MB, which is thousands of examples - enough to catch systemic problems.

For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.