> ## 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

> Train MolmoAct2 or π0.5 on your own robot's recordings, priced per 1,000 steps, then call the result where served or download it.

> [!NOTE]
>
> Fine-tuning is in private preview. Only invited accounts can use it; any other account gets `403
>   	fine_tuning_unavailable`. The routes, limits and prices on these pages can change before it opens
> to every account.

A fine-tune trains a base model on your robot's recordings.
The result is a private model, `ft/<base>-<suffix>-<8 characters>` (`ft/molmoact2-...` or `ft/pi05-...`), that only your account can use.
Where Abstract serves it, you call it like its base model; otherwise you download its weights.

## What you can fine-tune

The robot comes from your dataset: Abstract reads it from the dataset's robot type, its joint names or its shape. See [Robots](https://docs.abstract.inc/fine-tuning/datasets#robots).

| Model | Robots it trains | Served after training | Downloadable |
| - | - | - | - |
| `allenai/molmoact2` | Bimanual YAM; one SO-100/101 arm (MakerMods) | Bimanual YAM. SO-101: download only, for now | Yes |
| `physical-intelligence/pi0.5` | Bimanual YAM, SO-101 (one or two arms), the MakerMods Maker Arm (one or two), and any other arm whose state and action are at most 32 values | Download only, including bimanual YAM | Yes, under the Gemma Terms of Use |

New DreamZero fine-tunes are unavailable: they cannot be served or downloaded yet.
Quotes and new jobs for `nvidia/dreamzero` answer `503 fine_tuning_unavailable` before a training hold.
Existing jobs, their saved prices and model records are unchanged.
A base also needs to be activated for private-preview training; a supported recipe alone does not mean it is available.

A fine-tune that Abstract does not serve yet is still trained, evaluated and kept: its `served` is `false`, its files are yours to download, and a call to it answers `409 model_not_served`.
Another robot can be added: ask Abstract.

> [!WARNING]
>
> A fine-tune learns from your recordings only. Nothing on Abstract measures it on your robot. Check
> every action against your robot's limits before you execute it.

## Lifecycle

**1. Put the dataset where the API can read it**

Upload a LeRobot v2.1 or v3.0 folder with `abstract datasets upload ./pick_cups`, or name a
public Hugging Face dataset as `hf:owner/name`.

**2. Get a quote and create the job**

`abstract finetune create --dataset ds_...` shows the quote (the robot, the steps, the most the
job can cost, its price per 1,000 steps and its time), then asks before it starts. The API holds
the quote against your credit before anything runs.

**3. Follow it**

`abstract finetune get ftjob_...` prints its status, step, training loss and cost so far.

**4. Use the model**

Send `"model": "ft/molmoact2-..."` to `POST /v1/get_action`, or run `abstract finetune download
    		ft/...`.

### On Platform

Platform's Training page, [platform.abstract.inc/training](https://platform.abstract.inc/training), runs the same lifecycle in the browser, as your signed-in account, through the same API.

1. **Dataset.** Name a Hugging Face dataset, which is [checked](https://docs.abstract.inc/fine-tuning/datasets#check-it-before-a-job) at once (its robot, which models train it and why the others do not, and what [auto-clean](https://docs.abstract.inc/fine-tuning/datasets#auto-clean) would drop), or pick one you uploaded. Auto-clean is on; one switch turns it off.
2. **Model.** Pick a base model that trains the dataset. **Mapping** shows the state and action columns and the camera for each of the model's views, as proposed from the dataset; each is a list to change. π0.5 adds **Real-time chunking**.
3. **Length.** Auto, Steps or Budget. See [Length](https://docs.abstract.inc/fine-tuning/jobs#length).
4. **Review.** The steps, the most it costs, the price per 1,000 steps, the time and your credit, from a quote that follows every change. Start trains at that quote.

Each run's page follows it through its statuses with its steps, loss and cost, and can cancel it.
Once it succeeds, the page shows the evaluation, the model's id with code to call it (or that it is download only), its files and a way to delete it.
Training appears in Platform's sidebar only for invited accounts; for any other account the page does not exist.

A job moves through these statuses, never backwards:

| Status | What happens |
| - | - |
| `queued` | The API has written the job and held its quote. |
| `validating` | The dataset is checked for the model and its robot. A Hugging Face revision is pinned to its commit. |
| `preparing` | The dataset is fetched, converted to LeRobot v3.0 if it is v2.1, mapped to the model's columns and cameras, auto-cleaned, and split into training and held-out episodes. |
| `training` | The model trains. After a restart it resumes from its last checkpoint. |
| `exporting` | The fine-tune's files are written and stored. |
| `evaluating` | The fine-tune, its base and holding still are scored on the held-out episodes. |
| `succeeded` | `fine_tuned_model` names the model. It can be called where it is served, and downloaded where its base allows. |
| `failed` | `error` says why. |
| `cancelled` | You cancelled the job. |

## Price

Fine-tuning is priced per 1,000 steps, at one rate for every model.
A quote turns the compute the job takes at measured speed (start-up, checkpoints and evaluation included) into a price per 1,000 steps, and locks it.
The quote's total is the most the job can cost, wherever it runs and however long it takes.

| Model | From, per 1,000 steps |
| - | - |
| `allenai/molmoact2` | $9.42 (SO-101); $11.40 (bimanual YAM) |
| `physical-intelligence/pi0.5` | \$3.66 |

"From" is the measured step alone. A quote is a little above it, as start-up and evaluation are spread over the steps: 3,000 MolmoAct2 steps on a bimanual YAM dataset quote $12.87 per 1,000 steps, at most $38.61, in about 1 h 38 min.
Ask for a quote with `POST /v1/fine_tuning/quote`, free. See [Get a quote](https://docs.abstract.inc/fine-tuning/jobs#get-a-quote).

When the job ends, it is charged its steps at the locked rate, to the cent, never more than the quote, and the rest of the hold is released:

| Ends as | Charged |
| - | - |
| `succeeded` | The steps it trained: the quote's, or fewer when Auto shortened the run after auto-clean |
| `cancelled` | The steps it finished before it stopped |
| `failed` | Nothing |

The hold needs prepaid credit: a saved card alone does not fund it.
It also counts against the account's monthly spend limit.
Calls to a fine-tuned model are billed at its base model's rates. See [Usage and billing units](https://docs.abstract.inc/robots/usage.md).

## Limits

| Limit | Value |
| - | - |
| Live jobs per account | 1 |
| One uploaded dataset | 20 GiB |
| Uploaded datasets per account, uploading or ready | 50 GiB |
| Steps | 100 to 4,500 (MolmoAct2), 500 to 30,000 (π0.5), 100 to 3,000 (DreamZero) |
| Hugging Face datasets | Public repositories only |

## Next

> [card] [Datasets](https://docs.abstract.inc/fine-tuning/datasets)
>
> Formats, robots, the check, auto-clean, mapping and uploads.

> [card] [Jobs](https://docs.abstract.inc/fine-tuning/jobs)
>
> Quotes, length, hyperparameters, statuses, events, cancel and charges.

> [card] [Fine-tuned models](https://docs.abstract.inc/fine-tuning/models)
>
> Call, warm up, download and delete.

> [card] [Fine-tuning CLI](https://docs.abstract.inc/fine-tuning/cli)
>
> The abstract datasets and abstract finetune commands.


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