> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abstract.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Fine-tuning CLI

> The abstract datasets and abstract finetune commands: upload, create, follow, cancel and download.

> [!NOTE]
>
> Fine-tuning is in private preview, and only invited accounts can use these commands.

Install the `abstract` command and sign in as the [CLI reference](https://docs.abstract.inc/cli.md) says.
These are its fine-tuning commands.

| Command | What it does |
| - | - |
| `abstract datasets upload <folder> [--name <name>] [--part-size <MiB>]` | Packs a LeRobot v2.1 or v3.0 folder, uploads it with its `meta/` files and prints its `ds_` id. |
| `abstract datasets list` | Lists your datasets. |
| `abstract finetune create --dataset <ds_id\|hf:owner/name[@revision]>` | Shows the quote, asks, then starts a job at it. |
| `abstract finetune list [--limit <n>] [--after <job>]` | Lists your jobs, newest first. |
| `abstract finetune get <job>` | Shows a job: its status, step, loss and billing. |
| `abstract finetune events <job>` | Prints the job's last 200 events. |
| `abstract finetune cancel <job>` | Stops a job. The steps it finished are charged. |
| `abstract finetune models` | Lists your fine-tuned models. |
| `abstract finetune download <ft/model> [--out <folder>]` | Downloads a model's files and checks each one's SHA-256. |

`--json` prints the API's answer as it came, on every one of them; progress then goes to standard error.
Reading or deleting one dataset is one API call: see [Manage datasets](https://docs.abstract.inc/fine-tuning/datasets#manage-datasets).

### abstract finetune create

| Option | Default | Effect |
| - | - | - |
| `--dataset` | – | A `ds_` id, or `hf:owner/name[@revision]` for a public Hugging Face dataset. Required. |
| `--model` | `allenai/molmoact2` | The base model: `allenai/molmoact2` or `physical-intelligence/pi0.5` (download only). New DreamZero jobs are unavailable. |
| `--suffix` | The dataset's name | Names the model `ft/molmoact2-<suffix>-<8 characters>`, or `ft/pi05-...`, `ft/dreamzero-...`. |
| `--steps <n>` | – | Trains exactly that many steps. Without `--steps` or `--max-usd`, the length is `auto`: see [Length](https://docs.abstract.inc/fine-tuning/jobs#length). |
| `--max-usd <dollars>` | – | Trains as many steps as that buys at the quote's rate. |
| `--no-clean` | – | Turns [auto-clean](https://docs.abstract.inc/fine-tuning/datasets#auto-clean) off. |
| `--mapping <file.json>` | The proposal | Your own [mapping](https://docs.abstract.inc/fine-tuning/datasets#mapping), as a JSON file. |
| `--rtc` | Off | Real-time chunking, π0.5 only: `rtc_max_delay` 10. Refused for other models. |
| `--lora-rank`, `--learning-rate` | The base's defaults | The [hyperparameters](https://docs.abstract.inc/fine-tuning/jobs#hyperparameters). The quote refuses a value outside the base's range, or a knob the base does not have, before anything is held. |
| `--yes` | – | Starts the job without asking. Without a terminal, the command needs it. |

Before it asks, the command prints the quote: the robot, the steps and length, the most it costs, the price per 1,000 steps, the time, auto-clean, and whether the fine-tune is download only.
It then creates the job with that quote as `quoted_usd`, so a job that now quotes more is refused, not started.
The command sends an `Idempotency-Key`, and sends the request again under the same key when no answer came, so it never starts a second job.

### Uploads and downloads

`datasets upload` sends 8 MiB parts (`--part-size` takes 5 to 64 MiB), each with a 5-minute deadline, sent again for about two minutes when the network drops.
An upload that fails is deleted from your account; run the same command again to start it over, with `--part-size 5` if your connection cuts long transfers.
`finetune download` fetches each file whole, with a deadline that allows about 200 kB/s and retries, keeps a file already there with the right SHA-256, and deletes one that fails its check.
See [Datasets](https://docs.abstract.inc/fine-tuning/datasets) and [Fine-tuned models](https://docs.abstract.inc/fine-tuning/models).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.