Datasets, fine-tuning and trained models
Fine-tuning in AI Studio takes a catalogue model and a dataset of yours and produces a trained model you can deploy on the same virtual machine. Training runs on your own GPUs. This page covers the three pieces: datasets, the fine-tuning job, and the trained model it produces.
Datasets
Section titled “Datasets”A dataset is a JSONL file: one JSON object per line. There are two ways to make one available to a job.
| Upload | Register a file on your virtual machine | |
|---|---|---|
| Where the data is | Chapek’s object storage in the EU, pulled onto your virtual machine when a job starts. | Stays on your virtual machine. Chapek records the path only and never reads the file. |
| Size | Small files only. | Limited only by the storage available on the virtual machine. |
| Checked when | In the browser before upload, and by Chapek’s API when it is stored. | At job start, on the virtual machine. Chapek never reads the file. |
| Bound to | The first virtual machine that uses it. | The virtual machine you registered it on. |
To upload, open AI Studio → Datasets, select the dataset type (batch or fine-tuning) and select the file. Upload through the browser is intended for small files. For a larger dataset, fetch it onto the virtual machine and register it there.
To register a file, place it under /var/lib/chapek/datasets/ on the
virtual machine, select Register a file already on a VM, and enter the
path relative to that folder, for example exports/train.jsonl.
Format for fine-tuning
Section titled “Format for fine-tuning”Each line is an instruction and the answer you want the model to give:
{"instruction": "Summarise the ticket below in one sentence.", "input": "Customer reports ...", "output": "Customer cannot log in after the password reset."}input is optional. The line is checked for valid JSON and the required
fields before the job starts.
Format for batch inference
Section titled “Format for batch inference”Each line is one request:
{"id": "row-1", "prompt": "Reply with the capital of France.", "max_tokens": 16}See Batch inference.
Fine-tune a model
Section titled “Fine-tune a model”- Open AI Studio → Fine-tuning and select the virtual machine to train on.
- Select New fine-tuning job: select a base model from the catalogue, a fine-tuning dataset, and the GPUs the job should use. GPUs held by a deployment or another job cannot be selected.
- Submit. The job downloads the base model if the virtual machine does not have it yet, trains, and uploads the result.
Fine-tuning uses LoRA: instead of changing every weight of the base model, it trains a small adapter that sits on top of it. This allows a job to complete in hours rather than days and keeps the result small enough to store. The job’s status and stage are shown in the list; the list reports the outcome of the job and is not a live training dashboard.
A job holds its GPUs until the virtual machine has confirmed that they have been released. Fine-tuning and batch jobs can run next to a deployment on the GPUs the deployment is not using.
Trained models
Section titled “Trained models”When a job succeeds, the result appears under the Fine-tuned tab of the
Models page with a fixed name starting ft-. You can:
- deploy it as an endpoint on the same virtual machine it was trained on; see Deploy a model endpoint;
- test it in the Playground once deployed;
- download the adapter from Outputs.
A trained model can only be deployed on the exact virtual machine that produced it. A rebuilt virtual machine, or another virtual machine on the same server, cannot use it. A trained model cannot be used as the base for another fine-tuning job.
Storage locations and retention
Section titled “Storage locations and retention”| Item | Where | Kept for |
|---|---|---|
| Uploaded dataset | Chapek’s object storage in the EU. | 30 days from upload, then deleted. |
| Registered file | On your virtual machine. | Yours; Chapek only deletes its record of the path. |
| Training | On your virtual machine’s GPUs. | Nothing is kept once the job ends. |
| Trained model (adapter) | On your virtual machine, with a copy in Chapek’s object storage in the EU. | The copy: 30 days from creation. The files on your virtual machine: until you delete the virtual machine. |
The 30 days count from the moment an item is created. Using it, or re-uploading it, does not extend the time. When the time is up, downloads stop and the object is physically removed.
Deleting a dataset or an output in the portal removes it from Chapek’s storage immediately. Deleting a trained model’s output stops new deployments of it; a deployment that is already serving keeps running until you stop it, and the adapter files on your virtual machine remain until the virtual machine is deleted.
Copy any data you need to retain off the platform before it expires. Chapek does not back these items up.
