Skip to main content
In this guide you’ll start a small model called SmolLM2-135M-Instruct and ask it a question. It’s tiny (135 million parameters), so it starts quickly and costs little. That makes it a good first test.

Before you start

You need:
  • rivvr installed.
  • A connection to your company network, or the company VPN turned on.
  • These from your platform team:
    • the Rivvr URL,
    • your username and password,
    • the name of your project,
    • the name of a cluster in that project with the status ACTIVE,
    • how much your model may cost per hour,
    • an inference key: an ID and a secret.
  • Hugging Face access turned on for your project. Without it, step 3 fails. Your platform team can check this.
The examples below use the project research, the cluster development, a limit of 3 USD per hour, and KEY_ID for the key ID. Replace them with your own.

1. Sign in

Use your Rivvr URL and username. Type your password when asked; it won’t show on screen. rivvr remembers your login, so you won’t need to do this again for a while.

2. Pick your project and cluster

From now on, commands use this project and cluster unless you say otherwise. If you don’t know the names, rivvr project list shows your projects and rivvr cluster list shows the clusters in the project you picked. Now check that everything is set up:
It checks your settings, your saved login, that your computer can reach the Rivvr URL, that the login works, and that you can use the project and cluster you picked. If a check fails, see common issues.

3. Deploy the model

This one command does three things:
  1. Rivvr copies the model files from Hugging Face into a new storage entry.
  2. It creates a model called hello from those files.
  3. Rivvr tests the model and starts it. Because of --wait, the command waits until that’s finished.
While it runs you’ll see messages like these. The capital-letter words are IDs, which will be long random strings in your output:
When the model’s status reaches DEPLOY_READY, it’s running and the command ends. If you press Ctrl-C, or the command gives up after 30 minutes, the work keeps going on Rivvr’s side. To keep waiting, copy the rivvr model wait ... command from the last message and run it. Don’t run deploy again: it would copy the files a second time. More in deployment recovery. --max-cost-per-hour 3 means this model may spend at most 3 USD per hour on serving. It limits this model only, not the whole cluster.

4. Send a prompt

To send prompts you need an inference key. Your login can’t do it. Save the key on your computer once:
Paste the key’s secret when asked; it won’t show on screen. Then ask the model something:
The model’s answer is printed in your terminal.

Look around

A model that has only just started won’t have speed numbers yet. It needs to answer some requests first.

Clean up

When you’re done, delete the model and type y to confirm:
The copied model files stay in storage, so you can use them again later.

Next