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

# Uploaded checkpoints

> Upload a model's weights and start jobs from them.

Weights trained somewhere else, or downloaded from a job, can be where a job starts: upload the `.safetensors` files,
then pass the checkpoint's id as `params.from_job`. A job's own checkpoint is downloaded with
[`GET /v1/training/jobs/{id}/checkpoint`](https://docs.physionlabs.ai/nexcloud/api/training-jobs#download-the-checkpoint).

Uploads are opened organisation by organisation: 403 means yours is not open yet. A checkpoint is kept 30 days after
its upload, five at a time, at no charge. What the weights must be is in
[Checkpoints](https://docs.physionlabs.ai/nexcloud/guides/checkpoints.md#upload-a-checkpoint-to-train-from).

## Upload

```python Python theme={null}
checkpoint = client.checkpoints.upload("./my-model", model="qwen3.8-27b")
job = client.jobs.create(model="qwen3.8-27b", dataset_id="ds_...", params={"from_job": checkpoint.id})
```

```bash CLI theme={null}
nextron-cloud checkpoints upload ./my-model --model qwen3.8-27b       # -> ckpt_...
nextron-cloud jobs create --model qwen3.8-27b --dataset ds_... --param from_job=ckpt_... --yes
```

Over HTTP the upload is three calls per file; the SDK makes them for you.

| Call | Does |
| - | - |
| `POST /v1/checkpoints` `{"model", "name", "files": [{"name", "bytes"}]}` | starts the upload: returns the checkpoint's `id` and `part_bytes`, the size of one part |
| `POST /v1/checkpoints/{id}/parts` `{"name", "parts": [1, 2, ...]}` | returns `urls`: one to `PUT` each of those parts of the file to (`part_bytes` each, the last one shorter). A link works for 30 minutes |
| `POST /v1/checkpoints/{id}/complete` | joins the parts and checks every tensor against the model: `state` becomes `ready`, or `invalid` with `errors` |

## List, read and delete

| Call | Does |
| - | - |
| `GET /v1/checkpoints` | your uploaded checkpoints |
| `GET /v1/checkpoints/{id}` | one: `state`, `bytes`, `expires` (30 days after upload) |
| `DELETE /v1/checkpoints/{id}` | deletes it |

```bash curl theme={null}
curl https://nexcloud.physionlabs.ai/v1/checkpoints -H "Authorization: Bearer $NEXTRON_API_KEY"
```

```python Python theme={null}
client.checkpoints.list()
client.checkpoints.get("ckpt_...")
client.checkpoints.delete("ckpt_...")
```

```bash CLI theme={null}
nextron-cloud checkpoints list
nextron-cloud checkpoints delete ckpt_...
```


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