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

# Manage models

> Wait for a model to come up, read its testing runs, change serving settings, and delete it.

## Check a model's status

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model list          # all models in the project
rivvr model get hello     # one model in detail
```

`list` shows every model in the project. Add `--cluster development` to see only the models on that cluster. `get` shows the model's status and settings, and if something went wrong, the reason.

A new model moves through these statuses, left to right:

```text theme={"theme":{"light":"github-light","dark":"vesper"}}
TESTING_RUN_QUEUED → TESTING_RUN_RUNNING → DEPLOYING → DEPLOY_READY
```

| Status | Meaning |
| - | - |
| `TESTING_RUN_QUEUED` | Waiting for Rivvr to start testing it |
| `TESTING_RUN_RUNNING` | Rivvr is testing it |
| `DEPLOYING` | Tests passed; Rivvr is starting it |
| `DEPLOY_READY` | Running. You can send prompts |
| `TESTING_RUN_FAILED` | Testing failed. The model won't start |
| `DEPLOY_FAILED` | Starting failed |
| `DELETING`, `DELETED` | Someone deleted the model |

## Wait until it's running

If you created the model without `--wait`, or you stopped waiting, run:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model wait hello --timeout 30m
```

The command ends successfully (exit code `0`) when the model reaches `DEPLOY_READY`. It ends with an error if the model reaches `TESTING_RUN_FAILED`, `DEPLOY_FAILED`, `DELETING`, or `DELETED`. Pressing Ctrl-C only stops the waiting. The model keeps starting up on Rivvr's side.

## Find out why it failed

Before a model takes real requests, Rivvr load-tests it. To see those tests:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model testing-runs hello --wide
```

For each test you'll see its status, how far it got, and why it failed. This command only shows past tests; it doesn't start a new one.

Speed and errors from real requests are on a different page: [performance](https://docs.rivvr.ai/guides/performance.md).

## Change a model

You can only change a model whose status is `DEPLOY_READY`. Settings you don't mention stay the same:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model update hello --slo-mode ECONOMY          # favor lower cost
rivvr model update hello --max-cost-per-hour 4       # raise the spending limit
rivvr model update hello --scale-to-zero --max-cost-per-hour 0
```

When scale to zero is on, the lowest allowed spending limit is `0`. If you turn it off with `--scale-to-zero=false`, the lowest allowed limit goes back to `0.01`, so `--max-cost-per-hour` must be at least that.

To remove a target you set earlier, use `--clear`:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model update hello --clear min-qps --clear ttft-p50-ms
```

You can clear `min-qps`, `max-qps`, `ttft-p50-ms`, `ttft-p90-ms`, `tps-p50`, and `tps-p90`.

Automatic optimization has to be changed in its own command. Rivvr refuses it if you change anything else at the same time:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model update hello --automatic-optimization=false
```

If two people change the same model at the same time, the second change wins and the first is lost. Agree with your team on who changes what.

## Delete a model

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model delete hello
```

Type `y` to confirm. The command ends once Rivvr accepts the request. Rivvr then shuts the model down in the background. The model can disappear from `list` before that's finished.

The model's files stay in storage. [Delete them separately](https://docs.rivvr.ai/guides/storage.md#delete) if you don't need them anymore.


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