LLM Fine-Tuning Dataset Builder and Validator (JSONL)
Turn a spreadsheet of questions and ideal answers into clean fine-tuning JSONL for OpenAI, Claude on Bedrock, Gemini on Vertex, ShareGPT or Alpaca, with every example checked first.
Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya
…
Cara melakukannya
- 1Import data
Paste or open CSV, JSONL or a JSON array; the message says which formats were found.
- 2Review errors
Open the Checks tab and read the dataset warnings and the count of failing examples.
- 3Fix examples
Filter to flagged examples and edit or delete them, or remove duplicates in one click.
- 4Set the target
Pick the provider format, token limit and a default system prompt.
- 5Split
Choose the validation share and seed, epochs and your training price.
- 6Export
Download train.jsonl and validation.jsonl, or one file with everything.
Tentang alat ini
Supervised fine-tuning teaches a model to answer the way your examples do, which makes the examples the whole product: a duplicated answer gets extra weight, an empty answer teaches silence, a missing system prompt teaches the model to behave differently from production, and a single malformed line can make the upload fail after minutes of waiting. Providers also disagree on the file format. OpenAI wants a messages array per line, Claude on Amazon Bedrock wants a separate system field and alternating user and assistant messages, Gemini on Vertex AI wants contents with parts and the role model, and open-source trainers often use ShareGPT conversations or Alpaca instruction, input and output fields. This tool imports any of those, a JSON array, or a CSV with system, prompt and completion columns, and detects the format line by line. Each example is checked for role order, a final assistant turn, empty turns, length against your token limit, one-word answers, refusal boilerplate and duplicates, and the dataset as a whole is checked for size, missing system prompts and uneven answer lengths. You can edit any example in place, drop or deduplicate in one click, split train and validation with a fixed seed, estimate billed training tokens and cost, and export JSONL in the target format.
The checks
Errors are things a provider will reject or that break training: no turns, a first turn that is not from the user, a last turn that is not from the assistant, empty content, an example over the token limit and, for formats that need it, two turns in a row from the same role. Warnings mark duplicates and multi-turn examples squeezed into single-turn formats. Notices mark one-word answers and phrases such as I'm sorry, but that a model will learn to repeat. At dataset level the tool reports fewer than 10 examples, which OpenAI rejects, fewer than 50, a mix of examples with and without a system prompt, duplicates and very uneven answer lengths.
Formats
OpenAI chat lines hold a messages list with system, user and assistant roles. The Bedrock format for Claude puts the system prompt in its own field and the turns in messages. The Vertex format for Gemini puts the system prompt in systemInstruction and the turns in contents with user and model roles and text parts. ShareGPT uses conversations with from set to system, human or gpt. Alpaca and prompt-completion keep one exchange, so multi-turn examples are merged and flagged. Use the same system prompt in training that you will send in production; the default system field fills it in for examples that lack one.
Split and cost
Shuffling uses a seeded generator, so the same seed always gives the same split and you can rebuild the files later. Billed training tokens are estimated as training-set tokens times epochs; enter your provider's current price per million training tokens to get a cost.
Limits
Token counts are estimates; providers count with their own tokenizers and add formatting tokens. Maximum example lengths, minimum dataset sizes and prices differ by model and change, so check the current limits before you upload. The tool checks structure and obvious quality problems, not whether your answers are correct or safe.
Contoh berselesaian
A support team pastes a CSV of six rows. The checker finds one exact duplicate of the password reset example, one row with an empty answer for Where is my refund, and one row with no system prompt while the other five share You are Acme's support assistant. Answer in two sentences or fewer. The dataset warning says six examples is below OpenAI's minimum of 10. They remove the duplicate, drop the empty row, fill the default system prompt, and add more rows until they have 60. With a 10 percent validation share and seed 42, the export writes train.jsonl and validation.jsonl in OpenAI chat format; at 3 epochs the page shows the billed tokens and cost at the price they enter.
Ringkasnya
- Kategori: Pembangun & data
- Berjalan dalam pelayar, tanpa pendaftaran, tanpa muat naik.
- Maklumat yang anda masukkan kekal pada peranti anda.
- Tersedia dalam bahasa Inggeris.
- Kandungan disemak kali terakhir:
- Sumber rasmi: OpenAI supervised fine-tuning data format, Amazon Bedrock Claude fine-tuning and Vertex AI Gemini tuning dataset docs
Soalan lazim
Which formats can I import?
JSONL or a JSON array in OpenAI chat, Bedrock Claude, Vertex Gemini, ShareGPT, Alpaca or prompt-completion format, and CSV or TSV with columns such as system, prompt or user, and completion or assistant. Formats can be mixed in one file.
How many examples do I need?
OpenAI needs at least 10. Most guides suggest 50 to 100 carefully written examples for a visible change in style or format, and more for new skills. Quality matters more than count.
Should every example have a system prompt?
Use the same one you will use in production on every example, or none on any. A mix teaches the model two behaviours. The default system box fills it in for examples that lack it.
What does the validation file do?
The provider measures loss on it during training without learning from it, which shows whether the model is overfitting. Ten percent of the data is a common share.
Can I edit examples here?
Yes. Edit the system prompt and every turn, switch a turn's role, add or remove turns, or delete the example. The filter shows only examples with errors or warnings.
Is my training data uploaded?
No. Import, checks, split and export all run in your browser. Your working set is kept in local storage on this device; export the JSONL to keep it safe.
