# Training

Fine-tune models on your own data with the training code you already have. A
**training run** executes your program on dedicated GPUs, streams its logs and
keeps its checkpoints and outputs as verified, downloadable files.

Nestor does not impose a training framework. Your program chooses its libraries,
model, data format and output. Nothing in it needs to import Nestor: it reads
inputs from `/data/` and writes results to two directories.

```sh
nestor training runs create . --command 'python train.py' --wait
```

## What you get

- **Your code, unchanged.** Upload a directory or use a digest-pinned image.
  Dependencies install from `uv.lock`, `pyproject.toml` or `requirements.txt`.
- **Durable results.** Checkpoints are saved while the run is active; outputs
  are saved when it stops, including after failure or cancellation. Each file
  has a SHA-256 digest you can verify.
- **Explicit resume.** Start a new run from any saved checkpoint.
- **Traceable to your product.** A run can record the [Application](/applications)
  it was made for.

## Lifecycle

| State | Meaning |
| --- | --- |
| `QUEUED` | Accepted; waiting for its GPU. |
| `PREPARING` | Allocating hardware, unpacking source and building the environment. |
| `RUNNING` | Your program is running. |
| `SUCCEEDED` | Your program exited 0 and every file is saved. |
| `FAILED` | Your program exited non-zero, or the run could not complete. `failure.reason` says which. |
| `CANCELING`, `CANCELED` | You cancelled it; files written before the stop are kept. |

A run reports a final state only after its GPU is released and its files are
reconciled, so the outputs you list on a `SUCCEEDED` run are the outputs you get.

## In this section

- [Run your training code](/training/runs): source, environment, GPUs, inputs and logs.
- [Checkpoints and outputs](/training/checkpoints): saving, downloading and resuming.
- [Run a small LoRA experiment](/guides/fine-tune): a complete example.

Training and [Runs](/runs) share the same execution engine. Use Training when
you are producing a model; use Runs for evaluations and other jobs. In the
Console, both appear under **Training**.
