# Models

> List available VLA model types

## List model types

Get the VLA model types the platform trains.

```python
from qualia import Qualia

client = Qualia()

models = client.models.types()
```

`client.models.list()` is the former name for this call and is deprecated; it
returns the same static catalog. Use `types()`.

**Response**

```json title="VLAModel[]"
[
{
  "id": "pi05",
  "name": "Pi0.5",
  "description": "Physical Intelligence Pi0.5 model",
  "base_model_id": "lerobot/pi05_base",
  "base_model_revision": null,
  "camera_slots": ["cam_1", "cam_2", "cam_3"],
  "supports_custom_model": true
},
{
  "id": "act",
  "name": "ACT",
  "description": "Action Chunking Transformer model",
  "base_model_id": null,
  "base_model_revision": null,
  "camera_slots": ["cam_1", "cam_2", "cam_3"],
  "supports_custom_model": false
}
]
```

### Available Model Types

| Type   | Description                       | Custom Model |
| ------ | --------------------------------- | ------------ |
| `pi05` | Physical Intelligence Pi0.5 model | Yes          |
| `act`  | Action Chunking Transformer model | No           |

SmolVLA and SARM finetuning were retired. Models you already trained with them
remain readable: they still appear in `list_trained()` with `vla_type`
`smolvla` or `sarm`.

The `camera_slots` field names the camera inputs the model expects.

Models with `supports_custom_model: false` train from scratch and reject both
`model_id` and `model_revision`.

## Camera slots

`camera_slots()` names the slots the dashboard's training launcher maps a
dataset's cameras onto, as its camera mapping shows them. Each key is a slot;
its value is the model's name for that camera.

```python
slots = client.models.camera_slots("pi05", model_id="lerobot/pi05_base")
print(slots.camera_names)
# {'cam_1': 'base_0_rgb', 'cam_2': 'left_wrist_0_rgb', 'cam_3': 'right_wrist_0_rgb'}
```

`robot_type` selects the slots of a VLA type whose slots depend on the robot.
`model_specific` is true when the slots were read from the model itself.

## List trained models

`types()` lists what you can train. `list_trained()` lists what you have
trained — the model artifacts in your account, newest first, with cursor
pagination.

```python
page = client.models.list_trained(limit=50, subtype="vla_model")
for model in page.items:
    print(model.artifact_id, model.path, model.created_at)

if page.page_info.has_next:
    page = client.models.list_trained(cursor=page.page_info.end_cursor)
```

Filter with `subtype` (`vla_model`, or `reward_model` for previously trained
SARM reward models), `project_id`, `job_id`,
or `search`, and order with `sort` (`newest`, `oldest`, `updated`, `name`).
With `workspace=` (or `QUALIA_WORKSPACE`) set, `project_id` defaults to that
workspace; a key restricted to workspaces needs it.

## Download a trained model

`download()` fetches a trained model into a directory in Hugging Face layout,
so `from_pretrained(dest)` loads it. Every file is checked against its listed
checksum before it is moved into place; calling it again resumes, skipping
verified files and continuing a partial one where it stopped.

```python
model = client.models.list_trained(limit=1).items[0]
result = client.models.download(model.artifact_id, "./my-policy")
print(result.revision, result.downloaded, result.skipped)
```

The files are the export's at the revision the training run recorded.
`files()` lists them (path, size, `sha256`, or `blob_id` for small files), and
`file_link()` returns one file's short-lived signed `url`: a bearer link to
that file for about an hour, fetched without your API key. A small file with
no link comes inline as `content_base64`. With `workspace=` set, `project_id`
defaults to that workspace; a key restricted to workspaces needs it.
