> Agents: start at https://frontierintelligencelab.com/llms.txt — API: https://frontierintelligencelab.com/v1/openapi.json

# Train a model on your own GPU in an afternoon

With an NVIDIA GPU and a few hundred reviewed examples, you can link the machine to Valcairn with one command, train a LoRA adapter on a small open model, and load the tuned model into Ollama on the same machine. The weights stay there unless you switch on backups. Training can take minutes; setup takes the afternoon.

## What you need

- **A machine with an NVIDIA GPU** and a driver from the 580 series or newer. By our estimate a 24–32 GB card should handle LoRA on models up to about 8B (we have measured only a 0.6B run so far); see [what GPU you need](/guides/gpu-for-fine-tuning-8b-70b).
- **Docker** with GPU support: the NVIDIA Container Toolkit on Linux, or Docker Desktop with the WSL 2 backend on Windows.
- **Python 3.11 or later** for the runner itself.
- **Ollama** on the same machine, if you want to load and test the tuned model locally.
- **Training examples** as chat-format JSONL, the same shape OpenAI fine-tuning uses. Check your file first with the free [training file check](/tools/training-file-check); it runs in your browser and uploads nothing.
- **A Valcairn workspace.** Access is by invitation today; request it from [the quickstart](/quickstart).

## The steps

1. **Link the machine.** In your workspace, an owner or admin links a runner and copies its key. The key is shown once.
2. **Install the runner with one command.** The site shows the exact line with its address filled in. On macOS and Linux it is a `curl … | sh` line; on Windows, a PowerShell line. The script checks Docker, the GPU and GPU support in Docker, and tells you in one sentence what is missing. It asks for the key at the terminal (it never goes into shell history), pulls the training images and starts the runner as a service.
3. **Wait for the first report.** When the runner calls in, Valcairn shows the machine as linked and runs a sandbox check on it: it reads the GPUs from inside a sandbox with no network and checks Ollama.
4. **Add and freeze your data.** Upload the training file to a project. Dataset approval is a staff step today, so allow for that before you can freeze a version.
5. **Train.** Pick a base model and a method from the plan: supervised fine-tuning, preference pairs (DPO) or a reward-checked method (GRPO). The runner trains a LoRA adapter in a locked-down Docker sandbox, holds out part of your examples, and reports the held-out loss of the base model and the tuned model.
6. **Export to Ollama.** An export job merges the adapter, converts the base and tuned models to GGUF, loads both into the Ollama on your machine and load-tests them on held-out conversations. It writes a manifest with hashes and a model card beside the files.
7. **Evaluate and approve.** Run your frozen test cases against the tuned model, compare it with the base, and have a named person approve the release. See [how to approve a model release](/guides/approve-a-model-release).

## What one run looked like

Our one published run: Qwen3-0.6B on an RTX 5090 (32 GB), 252 synthetic support examples, LoRA supervised fine-tuning, 58 steps in 38 seconds. Held-out loss fell from 4.47 to 0.08. This was author-reported on runner 0.2 and not independently reproduced, and the examples were a narrow, templated synthetic task, so treat it as a sign the pipeline works, not as a quality claim for your data.

## Why run it on your own machine

- **The weights stay with you.** The adapter and the merged model are written on your machine. They are copied to Valcairn storage only if a workspace owner or admin switches on trained-model backups. Valcairn never connects to it: the runner calls out over HTTPS, so it needs no open port.
- **You keep the record.** Valcairn records which data version, which settings and the held-out results, so the run can be traced at release time.
- **No GPU bill from us.** You use hardware you already own. Hosted GPUs are planned, not available today.

## Questions

### Does my training data leave my machine?

Your dataset is uploaded to your Valcairn workspace so it can be reviewed and frozen, and the runner receives the frozen version for each training job. The trained adapter and model weights are written on your machine and stay there, unless a workspace owner or admin switches on trained-model backups.

### Can I train without an NVIDIA GPU?

Not with the Valcairn runner today. Training jobs need an NVIDIA GPU with Docker GPU support. Hosted GPUs are planned but not available yet.

### Which models can I fine-tune?

Open-weight models from the plan's catalog, trained with LoRA on a 16-bit base. The model must fit your GPU's memory in 16 bits, because the runner does not use 4-bit QLoRA today.

### Can I use the tuned model outside Valcairn?

Yes. The export writes a GGUF file, a manifest with checksums and a model card on your machine, and loads the model into your local Ollama. You can copy the folder to another machine and load it there.
