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.
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.
| Rule | Applies to | Detail |
|---|---|---|
| File name ends in .jsonl | File | Checked when you choose a file. Upper or lower case is fine. Pasted text has no name to check. |
| UTF-8 encoding | File | Checked 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 empty | File | A larger file is refused without being read. A file with only blank lines counts as empty. |
| Blank lines are ignored | File | They are skipped and do not count as rows. Row numbers count the lines that are left. |
| Each line is one JSON object | Every row | A 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 row | Every row | By 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 values | File | Data is split by group into training, validation and test, and each split gets at least one group. |
| input and expected are not empty | Format 1 | Each 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 list | Format 2 | A row with a messages field is a chat row, and input and expected are not read for it. |
| Roles are system, user, assistant or tool | Format 2 | Every message is an object with one of these four roles, in lower case. |
| The last message is from the assistant | Format 2 | It needs non-empty content, or a tool_calls list. That message is what the model learns to produce. |
| Optional tools is a list of objects | Format 2 | Leave 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.
Where to go next
- Self-Service: How training works in the console, with links to the full dataset documentation.
- Fine-tuning cost estimator: Training tokens for a dataset, and a planning cost for one run at the live rates.
- Synthetic data: how to generate training data for better models: For when you are short of real examples, with the risks to check first.
- Post-training vs fine-tuning: what is the difference?: How the two terms relate and where supervised fine-tuning fits.
- How to fine-tune an open-weight LLM with LoRA and QLoRA: What a training run does with a dataset like this one.
- OpenAI fine-tuning migration: Converts an OpenAI fine-tuning file to this format, with the shutdown dates and the steps to move a model.
- Pricing: Pay as you go for training and inference, with the live rates.
When the file passes, create an account, upload it and start a training run from the console.
Start building