Versions
Create a numbered version of your approved examples with training, validation and test splits, check it before training and download it.
A version is a fixed, numbered copy of your approved examples, split three ways:
- Training examples teach the adapter.
- Validation examples track its progress while it trains.
- Test examples are held out. Evaluations score the base model and your tuned model on them.
A version never changes. Later edits and approvals only affect later versions, so scores on the same version always compare the same data.
Before you start
- You have approved examples in Review, with their quality checks finished. Pending and rejected examples are left out.
- Your approved examples come from enough different documents: 10 for the first version, unless they include a separate test file. See The first version.
- You are a member or an owner. Anyone can download versions.
Create a version
- Open Versions under Data and choose Create version. Create version is also in the header of Review once something is approved, and in the command menu (⌘K or Ctrl K).
- The version is made in the background, so you can leave the page. While it is made, a message says "Creating version vN", the top row of the table shows Creating, then how many examples it has written, such as "120,000 of 500,000 examples", and Activity shows Create version vN with the same count. A large version takes a while: on a RunPod volume, a version of millions of examples can take hours, since the volume answers a limited number of reads a second.
- The new version appears at the top as vN, with a tag for its kind and its example counts per split. Under a count, a second line shows the pairs or images it holds. A notice says "Version vN created".
The console checks the rules of a new version as your data changes, before anything is queued. When one isn't met, Create version is unavailable and a warning above the table says why, with Open Review or Add sources where they help. For example: "Your first version needs examples from at least 10 different documents, or a separate test file, so test questions never come from training documents. You have 4."
If a version still can't be made, the page says "The last version couldn't be created:" with the reason, and Dismiss hides it. Fix the cause and choose Create version again.
While a version is made, you can keep working in Review. A version holds your approved examples as they were when it started, so editing, approving or rejecting examples while it is made starts it again from the beginning with the examples as they are now. It starts again at most three times: if the examples change a fourth time, it stops with "The examples changed while this version was being made, 4 times." Wait until no one is editing or approving examples, then choose Create version again. Only one version of a project is made at a time.
On your own storage, creating a version saves its progress as it goes, so a restart of Tensorant's services doesn't make it start over: it continues where it stopped. On connections Tensorant provides, versions are small and start over instead. If it stops with "This job stopped without finishing its step three times…", choose Retry in Activity. When the approved examples haven't changed since then, it continues from the progress it saved; otherwise it starts from the beginning. Retry also continues from saved progress when removing what a failed version had written was cut short before it began. After any other failure, or a cancellation, what the version had written is removed first, and Retry starts it from the beginning.
Each version's ... menu has Rename, to name the version, Copy ID, and Copy checksum, which copies the checksum that identifies its exact content. Versions can't be deleted; they go only when you delete the project.
Preference data
Versions preserve both candidates of DPO preference pairs. DPO needs nonempty training and validation splits where every example is paired; test examples may be pairs or ordinary conversations. A version with mixed paired and ordinary training examples can still be used for SFT, which uses each pair's chosen answer. Later review edits never change the frozen pair.
Only training and validation data enter the training bundle. Test pairs stay held out, and evaluation uses their chosen answers as references. The same source, prompt and image grouping rules below apply to pairs.
Decision cases
A version of a decision project holds approved cases instead of examples, and works the same way, with these differences:
- Counts. Each split shows its cases and, below them, their decisions: one for each question of a case.
- Groups. A case stays whole: all its questions are in one split. Cases that share a state, or the same decision, are one group, so no test case shares a state with a training case. Where a chat version counts documents, a decision version counts cases that share no state or decision with each other: 10 for the first version, unless it has a separate test file, and 3 for any version.
- One kind. A version holds chat examples or decision cases, not both.
- Readiness. Readiness for training counts the tokens of every prompt and candidate pair of the cases it checks, with the model's own tokenizer, against a token limit (1,024 unless you change it, and at most the model's limit): Longest pair (tokens), Decisions over the limit, Token limit and Decisions checked. It says "Tokens counted with the model's own tokenizer, as training pairs each question's prompt with each of its candidates; no model weights are downloaded."
- Downloads. A split downloads as one case a line, with its ID, its category and its decision, as the GPU reads it:
{"category":"support","decision":{"gold":{"label":{"probabilities":{"account":0.0,"billing":1.0,"technical":0.0}}},"questions":{"label":{"criteria":{"account":null,"billing":null,"technical":null},"instructions":"Choose the label that fits the text.","type":"choice"}},"state":"I was charged twice this month."},"id":"3f2c1a9e-0000-0000-0000-000000000000"}A decision version's messages say cases where a chat version's say examples or documents, such as "Approve cases in Review before creating a version." See When you create a version in Decision models.
How examples are split
Groups
Examples are linked into one group when they:
- come from the same source document. Every example generated from one document is in its group.
- share a user prompt (ignoring case and spacing). The same question about different images does not count.
- share an image.
Links chain, and a whole group always goes to one split. So no test example shares a source, a prompt or an image with a training example.
The console calls these groups documents, since most come from one document each.
Note
Groups count documents, not examples. Three hundred examples generated from four PDFs make at most four documents.
How groups are assigned
- Groups that already have a split keep it. See Split reservations.
- Groups from sources imported for Test (held out) go to test.
- About a tenth of all groups go to test and a tenth to validation, at least one each. The rest go to training. The same data always splits the same way.
- If nothing ended up in validation (because every row was reserved for training or test at import), about a tenth of the training groups, other than those holding a recipe reference, move to validation and stay there in later versions. The version shows "N training rows held out for validation, because no rows were assigned to Validation."
Split reservations
Once a group has a split, it keeps it in every later version, so adding data never moves a test question into training. The one exception is step 4 above, which can move training groups to validation, never to test. Groups also get a split before any version exists when:
- a Hugging Face import gives them one under Use these rows for;
- a recipe reference uses them, which keeps them in training.
A version is refused if test data shares a document or a question with training data, because the test score would then measure memory, not learning: "Some test data shares a document or a question with training data. Reject the overlapping examples in Review, then create the version."
The first version
The first version needs examples from at least 10 different documents, unless its approved examples include a separate test file: examples imported for Test (held out). After that, or with a test file, 3 documents are enough: 2 for training and validation, 1 for testing. Every version also needs examples in all three splits.
The Generate examples sheet warns before you generate for a first version from fewer than 10 documents.
Download a version's splits
Open the ... menu on the version's row and choose Download training, Download validation or Download test, each with its number of examples. You get vN-train.jsonl, vN-validation.jsonl or vN-test.jsonl, one conversation per line:
{"messages":[{"content":"How long do refunds take?","role":"user"},{"content":"Refunds reach your card within 5 business days.","role":"assistant"}]}Preference rows instead export prompt, chosen and rejected message arrays, preserving both candidates. Categories, evidence and source names are not included. Examples generated with their source passage keep it in the first user message: see Training context. Images appear as {"type": "image", "image": …} parts naming the file in your organization's storage; the image files are not in the download. See Where images are kept.
A split downloads while Tensorant reads it from your storage, a few parts ahead of what it has sent, so even a split of millions of examples starts at once. Its size isn't known until the end, so your browser may not show how much is left. If part of it can't be read once the download has started, for example because your storage stops answering, the download stops with an error rather than ending early: your browser shows it as failed, and the CLI keeps no partial file. A cut download is never a shorter file that looks complete. Download it again; if it keeps failing, check your storage in Connections.
Coverage
When you pick a version for an experiment, Dataset coverage shows each category's examples per split, how many documents each split's examples come from, and notes about gaps, such as a category with no test examples, or "Only 4 test documents (independent sources). A likely range for the change needs at least 10." To fill a gap, add examples of that category from new documents and create a new version.
Dataset readiness
Below the versions, Readiness for training checks a version, or the current review examples, before you train. It starts no GPU and calls no paid model: it reads the examples and the model's tokenizer. Choose what to check under Version in the card's header: a version (the latest, to start with) or Examples not in a version yet. The check runs by itself, and again whenever what it checks changes; the refresh icon (Check again) runs it again.
It says first whether the examples are ready: Ready, or Blocked with what stands in the way underneath, such as "12 examples longer than the 2,048-token training window." Below that:
- Median tokens, Longest 5% from, Longest and Training window: conversation lengths in tokens, and the length it checks against;
- Examples to look at, a section that opens by itself while something blocks training, with the count of each kind: Empty answers, Invalid conversations, Longer than the training window, Don't fit the chat template, Images not counted and Too long to count. Review beside one opens that example in Review. For a version, fix the example there and create a new version: the version stays as it is;
- Splits, documents and categories, a section you open: how many examples were checked in each split, from how many documents, and each category's examples.
The training window is 2,048 tokens unless you change it under Advanced settings, in Training window (tokens). Notes about the check, such as the sample size, are in a notes section. The same check shows beside a training run's settings before launch, with that run's Training window (tokens).
Token counts use the project's model tokenizer at the revision shown in the report, including its chat template without truncation. Only the tokenizer and configuration files are downloaded, never the model's weights. A gated or private model's files are read with your organization's Hugging Face token. When the tokenizer can't be read, the report says "tokens could not be counted" and why, rather than estimating them.
The check reads at most 500 examples of each split of a version, or 1,500 examples not yet in a version, sampled the same way each time. It then says "Checked a random sample of N of M examples, so counts and categories are estimates." The Examples not in a version yet option checks current pending and approved examples, including ones already copied into a version; only approved examples go into a new version. The check also has byte and text budgets, so large rows can reduce the number counted. Read its coverage and issues even when its heading says Ready.
For text-model preference pairs, readiness checks both candidate continuations and reports the longer prompt-plus-answer length. Vision-processor token counts remain incomplete in this free report, even for text-only pairs on a vision model. DPO launch checks refuse invalid or overlong sampled training and validation pairs; the runner then validates every bundled pair, including image expansion, before loading model weights. See DPO readiness and trials.
Tips
- More, smaller documents split better. Generate from one file per article or chapter rather than one large PDF. More documents give a bigger, more varied test split.
- Aim for test examples from at least 10 documents. With fewer, evaluations can't show uncertainty ranges. With automatic splitting that means about 100 documents, or import a test file from 10 or more documents.
- Bring your own test set if you have one. Import it for Test (held out) in Sources; it always stays in test.
Limits
| Limit | Value |
|---|---|
| Approved examples in a version | Up to your organization's examples per project (2,000,000; 5,000,000 on a plan without that limit) on your own connections; 50,000 on connections Tensorant provides |
| Examples plus their documents' text | No limit on your own connections; 64 MB on connections Tensorant provides |
| Documents for the first version | 10, unless approved examples include a separate test file |
| Documents for any version | 3 |
| Validation and test | About a tenth of the documents each, at least one |
| Version name | 160 characters |
When something goes wrong
| Message | What to do |
|---|---|
| "Approve examples in Review before creating a version." | Approve examples in Review first. |
| "Wait for the quality checks of approved examples to finish, then create the version." | Wait for checks in Activity, or recheck examples whose checks failed. |
| "Your first version needs examples from at least 10 different documents, or a separate test file…" | Add more documents and approve examples from them, or import a separate test set for Test (held out) and approve its examples. |
| "A version needs examples from at least 3 different documents: 2 for training and validation, 1 for testing. You have N." | Approve examples from at least three different documents. |
| "A version needs train, validation and test examples, and has none for…" | Every example is reserved for other splits. Import test data, such as a dataset's test split, or approve examples from more documents. |
| "Some test data shares a document or a question with training data…" | Find the overlap with search or Find similar questions in Review, and reject it or delete one of the imports. |
| "An edited example now shares a question with both training and test data…" | A new or edited example shares a source, question or image with examples in two different splits. Find it with search in Review, then change or reject it. |
| "An approved example no longer starts with its unchanged source passage…" | Filter Review by Format issues, then fix or reject that example. |
| "An image of 1 approved example is not in this organization's storage…" or "Images of N approved examples are not in this organization's storage…" | Reject those examples in Review, then create the version. |
| "Tokens could not be counted: the model's tokenizer could not be read from Hugging Face. Check that your organization can read the model (a gated or private one with its Hugging Face token), then check again." | For a gated or private model, an owner adds a Hugging Face token that can read it. Otherwise Hugging Face didn't answer: choose the refresh icon in a minute. |
| "Tokens could not be counted: token analysis is busy. Check again in a moment." | Tensorant counts tokens for a few checks at a time, and one at a time for each organization: another check of your organization, or of others, held the tokenizer for 30 seconds. Choose the refresh icon in a moment. |
| "Tokens could not be counted. Your Hugging Face token was refused. Reconnect it under Settings → Connections; public models work without it." | The token was revoked or expired on Hugging Face. An owner creates a new one and uses Replace token in Connections, then check again. |
| "A version holds at most 50,000 approved examples. Reject some in Review, or use an organization on its own connections for versions of up to N examples." or "Approved examples and their documents are over the 64 MB limit of a version. Reject some in Review, or use an organization on its own connections for larger versions." | Your organization uses connections Tensorant provides. Reject examples you don't need, especially from very large sources, or work in an organization on its own connections. |
| "Your plan (Plan) allows versions of up to N examples…" | Reject examples you don't need. For more, ask about Enterprise. |
| "A version holds at most 5,000,000 approved examples. Reject some in Review, then create the version." | Your organization's plan has no limit of examples per project, and a version holds at most 5,000,000. Reject examples you don't need. |
| "A version holds chat examples or decision cases, not both. Reject the approved examples of the other kind in Review, then create the version." | Reject the approved examples of the other kind. |
| "The examples changed while this version was being made, 4 times. Pause edits and approvals, then create the version again." | Approved examples kept changing while the version was made, and each change started it again. Wait until no one is editing, approving or rejecting examples in Review, then choose Create version again. |
| "A version of this project is being created. Wait for it, then try again." | Another version of the project is being made, or one that was cancelled or failed is still removing what it had written. Wait for it in Activity, then try again. |
| A message about cases, such as "Approve cases in Review before creating a version." or "Some test cases share a state or a decision with training cases…" | The project is a decision project. See When you create a version in Decision models. |
| A split's download stops partway, and your browser or the CLI says it failed | Tensorant couldn't read part of the version from your storage after the download started. Download it again. If it keeps failing, choose Check connection on the Data storage card in Connections. |
Need a hand? Visit troubleshooting