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:
1. Install
On the machine you want to add:
curl -fsSL https://get.shardio.ai/install.sh | sh
Then check that it can serve:
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.
2. Start it
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 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 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.
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 has the details.
Day to day
shardio pausestops new requests and keeps the models loaded;shardio resumetakes requests again.shardio downstops serving and shuts down the node on this machine. The machine stays in its node;shardio node removetakes it off your account's nodes.shardio modelsshows the node's models.shardio models addandshardio models removeadd or remove the ones you name and keep the rest, andshardio models setchooses them all again.shardio upkeeps what the node has, including changes made in the console.shardio statusshows the node's status and its last 24 hours, andshardio status --detailsadds each model's requests and the node's recent events.shardio requestslists the node's requests one by one, figures only.- A node started without
--detachstops with Ctrl-C, but closing its terminal is not a reliable way to stop it: runshardio down. - Each machine serves as its own node. Nodes made of several machines cannot serve yet, so run
shardio upon each machine and give each its own node.
Every command is in the shardio CLI reference. The console side is covered in Nodes, Node setup and Node page.