# Serve models

> Set up a node on your own machine and start serving requests.

## From install to serving

Serve open models from a GPU you already own, and earn 80% of what every member request it serves is billed.

### Before you start

- An NVIDIA GPU on Linux or Windows (WSL), with Docker or Podman.
- AMD and Apple: we are wrapping up development, and they will be available soon.
- Power and a stable connection: a node earns while it is online and serving.
- A Shardio account you can sign in to, to approve the machine.

From install to Serving:

![From install to Serving. You do three steps: install with curl -fsSL https://get.shardio.ai/install.sh | sh, then run shardio check; start and link with shardio up, then approve the code in the console; choose models, accepting the suggestions or picking your own. Then, while the status reads Starting, the node downloads the model weights, loads them onto the GPU and passes health checks on its own. Shardio also measures how much work the node can take before paid traffic and from time to time afterward: the status reads Calibrating during that measurement, then Serving when it takes requests.](/diagrams/serve-steps.svg)

### 1. Install

On the machine you want to add:

```bash
curl -fsSL https://get.shardio.ai/install.sh | sh
```

Then check that it can serve:

```bash
shardio check
```

It looks at the GPU and its driver, the container runtime and a few system settings, and prints one line per check: ok, warn, FAIL or ????. Fix every FAIL and ???? before going on. See [`shardio check`](/reference/cli/#check).

### 2. Start it

```bash
shardio up
```

On a new machine, `shardio up` asks a few questions, then prints a short code and a link. Open the link on any device where you are signed in to Shardio, or enter the code on the console's **Approve a device** page, and approve it. The code expires after ten minutes. The machine then joins your account, and its earnings go to that account.

Once you approve it, `shardio up` downloads and verifies the node image, showing its progress in the terminal while the console reads **Starting**. Slim releases keep the controller image separate from engine code: packs download only for engines your chosen models need, and later starts reuse verified digests. A failed image download starts nothing and keeps the machine in your account; run `shardio up` again to request it.

Next it suggests the models your hardware fits and the mesh needs most. Accept them or pick your own. Until you answer, the console reads the node as **Ready**, waiting for your choice in the terminal. See [`shardio up`](/reference/cli/#up) for its options, such as `--detach` to keep serving in the background after the terminal closes.

### 3. Wait for the first start

The first start takes a while: required engine packs and model weights download with separate progress totals, then the models load onto the GPU. Shardio checks the machine and measures how much work it can take before sending paid traffic. `shardio status` shows progress locally and the **Nodes** screen shows it in the console. `status` also says how many requests the node served in the last 24 hours. If Shardio cannot be reached, it says the platform status is unknown, retains the last-read local models and reports whether the request link is connected.

By default, `shardio up` waits as long as the weights download makes progress. `--stall 600` is the default limit for a download with no progress, in seconds; use `--wait SECONDS` only if you want an absolute limit on the wait for the models to start. An interrupted download is kept and resumes on the next `shardio up`, with verification still required.

A node's status is one of seven words: **Serving**, **Starting**, **Calibrating**, **Ready**, **Paused**, **Needs attention** or **Offline**. **Starting** covers getting the models ready and checking them. **Calibrating** means Shardio is measuring how much work the node can take; the sentence says how far it has got. [Troubleshooting](/serve/troubleshooting/) says what each word means and what to do.

### What you earn

You earn 80% of what each member request your node serves is billed, counted at Shardio's gateway, never on the node. Earnings collect in your [Wallet](/account/wallet/#earnings).

![For every $1.00 billed on requests you serve, $0.80 goes to you and $0.20 to Shardio.](/diagrams/earnings-split.svg)

![When earnings arrive, in UTC: on Monday your node serves member requests and its earnings show as settling; Monday ends at Tuesday 00:00, the earnings settle for two days, Tuesday and Wednesday, and from Thursday 00:00 they are ready to move. From then you can move them to credits straight away, or withdraw them to your bank through Stripe. Platform checks are not paid.](/diagrams/earnings-timeline.svg)

A day's earnings settle two days after that UTC day ends: what your node earns on a Monday (UTC) is ready to move from Thursday 00:00 UTC.

Shardio also sends its own requests, called platform checks, to keep every node honest. They are not paid. [How trust works](/trust/how-trust-works/) has the details.

### Day to day

- `shardio pause` stops new requests and keeps the models loaded; `shardio resume` takes requests again.
- `shardio down` stops serving and shuts down the node on this machine. The machine stays in its node; `shardio node remove` takes it off your account's nodes.
- `shardio models` shows the node's models. `shardio models add` and `shardio models remove` add or remove the ones you name and keep the rest, and `shardio models set` chooses them all again. `shardio up` keeps what the node has, including changes made in the console.
- `shardio status` shows the node's status and its last 24 hours, and `shardio status --details` adds each model's requests and the node's recent events. `shardio requests` lists the node's requests one by one, figures only.
- A node started without `--detach` stops with Ctrl-C, but closing its terminal is not a reliable way to stop it: run `shardio down`.
- Each machine serves as its own node. Nodes made of several machines cannot serve yet, so run `shardio up` on each machine and give each its own node.

Every command is in the [`shardio` CLI reference](/reference/cli/). The console side is covered in [Nodes](/serve/nodes/), [Node setup](/serve/node-setup/) and [Node page](/serve/node/).
