[Free tool]

Fine-tuning dataset checker for JSONL files

Paste a fine-tuning dataset in JSONL, or choose a file, and this checker lists every problem by row with its fix: invalid JSON, missing fields, chat message roles and group keys. It applies the rules Attempts applies to a dataset. Everything runs in your browser; your data is never uploaded.

Your dataset

Field names

Change these only if your rows use other names. Use the same names under Dataset preparation when you set up training.

The check runs in this page, on your device. The text you paste and the file you choose are not uploaded, stored or sent anywhere.

Result

Nothing checked yet. Paste your rows or choose a file, then press Check. To see a result first, use one of the templates below.

This page checks the same rules as an upload to Attempts and the training setup that follows it. The upload itself is the final check.

The checker is also available as an open-source command-line tool and GitHub Action: github.com/attempts-ai/jsonl-dataset-checker.

Upload your dataset to Attempts

Starter templates

Two files that pass every check, one for each format Attempts accepts. The rows are examples: replace them with your own, keep one object per line, and keep at least 3 distinct document_id values. Both formats are described in the documentation linked from Self-Service.

One row in each format Attempts accepts. Both need the group key on every row; a chat row must end with an assistant message.

Format 1: input and expected output

One input and the output you want for it. Use it for extraction, classification, rewriting and other single-step tasks. The two rows from the same invoice share a group value, so they stay in the same split.

{"document_id": "inv-001", "input": "Invoice INV-001. Total due: 120.00 USD by 30 Nov.", "expected": {"total": 120.0, "currency": "USD"}}
{"document_id": "inv-002", "input": "Invoice INV-002. Amount payable 89.50 EUR.", "expected": {"total": 89.5, "currency": "EUR"}}
{"document_id": "inv-003", "input": "Invoice INV-003, page 1 of 2. Total due: 480.00 GBP within 30 days.", "expected": {"total": 480.0, "currency": "GBP"}}
{"document_id": "inv-003", "input": "Invoice INV-003, page 2 of 2. Balance to pay: 480.00 GBP. Thank you.", "expected": {"total": 480.0, "currency": "GBP"}}
{"document_id": "inv-004", "input": "Credit note CN-004. Refund of 45.00 USD issued on 2 Dec.", "expected": {"total": -45.0, "currency": "USD"}}

Format 2: chat messages

A conversation that ends with the assistant reply the model should learn. Use it for conversational tasks. The two rows from the same ticket share a group value.

{"document_id": "ticket-17", "messages": [{"role": "system", "content": "You are a support assistant."}, {"role": "user", "content": "How do I reset my password?"}, {"role": "assistant", "content": "Open Settings, choose Security, then Reset password."}]}
{"document_id": "ticket-18", "messages": [{"role": "system", "content": "You are a support assistant."}, {"role": "user", "content": "Can I change the email on my account?"}, {"role": "assistant", "content": "Yes. Open Settings, choose Profile, edit the email field, then confirm from the link sent to the new address."}]}
{"document_id": "ticket-19", "messages": [{"role": "system", "content": "You are a support assistant."}, {"role": "user", "content": "My export keeps failing."}, {"role": "assistant", "content": "Which file format are you exporting to, and roughly how many rows?"}]}
{"document_id": "ticket-19", "messages": [{"role": "system", "content": "You are a support assistant."}, {"role": "user", "content": "My export keeps failing."}, {"role": "assistant", "content": "Which file format are you exporting to, and roughly how many rows?"}, {"role": "user", "content": "CSV, about 200,000 rows."}, {"role": "assistant", "content": "Exports of that size are sent by email instead of downloading in the page. Start the export again and check your inbox in a few minutes."}]}
{"document_id": "ticket-20", "messages": [{"role": "system", "content": "You are a support assistant."}, {"role": "user", "content": "Is there a phone number I can call?"}, {"role": "assistant", "content": "Support is by email and chat only. Reply here with the details and we will pick it up."}]}

The rules this page checks

This page checks the same rules as an upload to Attempts and the training setup that follows it. The upload itself is the final check. An upload reports the first problem it finds; this page lists them all, up to the first 50. The rules are in the documentation linked from Self-Service.

RuleApplies toDetail
File name ends in .jsonlFileChecked when you choose a file. Upper or lower case is fine. Pasted text has no name to check.
UTF-8 encodingFileChecked when you choose a file. A byte order mark at the start of the file makes the first line invalid: save as UTF-8 without one.
Up to 50 MB, and not emptyFileA larger file is refused without being read. A file with only blank lines counts as empty.
Blank lines are ignoredFileThey are skipped and do not count as rows. Row numbers count the lines that are left.
Each line is one JSON objectEvery rowA complete {…} object on a single line. A JSON array, a bare value, a header line, or an object spread over several lines is refused.
Group key on every rowEvery rowBy default the field document_id. It must not be missing, null or blank. Values are compared as text, so 1 and "1" are the same group.
At least 3 distinct group valuesFileData is split by group into training, validation and test, and each split gets at least one group.
input and expected are not emptyFormat 1Each is text, a JSON object or a list. Text that is only spaces is empty; a number, true, false or null on its own is refused. Applies to rows without messages.
messages is a non-empty listFormat 2A row with a messages field is a chat row, and input and expected are not read for it.
Roles are system, user, assistant or toolFormat 2Every message is an object with one of these four roles, in lower case.
The last message is from the assistantFormat 2It needs non-empty content, or a tool_calls list. That message is what the model learns to produce.
Optional tools is a list of objectsFormat 2Leave the field out when a row has no tools. If it is present it must be a list, and every item an object.

What this page does not check

  • Whether the examples are good. A file can pass every rule and still teach the wrong thing: read a sample of rows, keep the output format consistent, and include the hard cases.
  • Token counts and cost. The console estimates a run from your real file with the selected model's tokenizer; the cost estimator gives a planning figure before that.
  • Whether a given base model can train on your rows. That is decided when you set up training with a model.
  • Your right to use the data. Uploading a dataset to Attempts confirms you have the right to use it for training, evaluation and serving.

FAQ

What format does a fine-tuning dataset need to be in?

JSONL: a text file with one JSON object per line, encoded as UTF-8. On Attempts each object is either an input with the expected output (fields input and expected by default) or a chat with a messages list that ends with an assistant message. Every row also needs a group key, document_id by default, and the file needs at least 3 distinct group values.

What is the difference between JSON and JSONL?

A JSON file holds one value, often an array of objects wrapped in square brackets and spread over many lines. A JSONL file holds one complete JSON object on each line, with no surrounding brackets and no commas between lines. To convert an array, write each item on its own line and save the file with a .jsonl name.

Is my data uploaded when I use this checker?

No. The check is JavaScript that runs in this page on your device. The text you paste and the file you choose are read by your browser only; they are not uploaded, stored or sent anywhere, and the check keeps working if you go offline after the page has loaded.

What is a group key, and why do I need at least 3 groups?

The group key says which rows belong together, for example several rows taken from one document or one conversation. Attempts splits a dataset by group into training, validation and test, never by single row, so related rows cannot end up on both sides of the split. Each of the three splits gets at least one group, which is why a file needs at least 3 distinct group values.

Can I use my own field names?

Yes, for the input, the expected output and the group key. Enter your names under Field names on this page, and enter the same names under Dataset preparation when you set up training in the Attempts console. The chat field is always called messages, and the optional tool definitions are always called tools.

If my file passes here, will the upload accept it?

It should, because this page repeats the rules Attempts applies: the file checks at upload, and the row and group checks when you set up training on the file. The upload itself is the final check. One known difference: this page reads strict JSON, so the non-standard values NaN and Infinity are reported as invalid here.

What happens to the file after it passes

A file that passes is ready to upload. These are the steps it goes through on Attempts, from the upload to a model you can call.

From a dataset to a model you can call. Evaluation runs on a running deployment, with examples from the test split that were never used for training.

Where to go next

When the file passes, create an account, upload it and start a training run from the console.

Start building