Using a DGX Spark from another computer¶
ragon on a laptop can use the model on a DGX Spark in the same network. The DGX Spark is the node; the
laptop is a client, and only the agent's prompts and answers cross the network: your code, the
commands the agent runs and the code index stay on the laptop.
On the DGX Spark, once:
ragon-admin node enable # asks for your password once; `--no-web` keeps the web UI private
That announces the node on the local network and lets other computers reach its web search and
its web UI. Anyone on your network can then use the model and search through the node, and
nothing is encrypted on the local network, so do this only on a network you trust; the web UI
(ragon web, port 3100) serves another computer or phone only once paired on the node
(ragon web pair). ragon-admin node disable undoes it, and ragon-admin node status shows what is
announced.
On the other computer, type ragon. It finds the node and remembers it:
| Command | What it does |
|---|---|
ragon node list |
Every node on the network, the model each serves, and the address to paste into other tools |
ragon node use <name or address> |
Use that node from now on. An address works on networks that block discovery |
ragon node forget |
Forget the node; the next start looks again |
RAGON_NODE=<name> ragon … |
Another node, for one command |
If there are several nodes and none is remembered, each ragon session uses the least loaded one
(the quickest to answer) and keeps it until the session ends; ragon node use <name> makes one
node the one every session uses. If the node's model server is stopped or still loading, it says so
instead of waiting.
What does not work from a client yet: Gmail in ragon, Night Shift (/night add is refused: tasks
run on the node), and anything ragon-admin does. The desktop app, ragon-app, runs its own
bundled ragon against the node's model. See
specs/DREAMFERENCE_RAGON_NODE.md §18 for what was measured.
A second DGX Spark¶
Every DGX Spark is installed the same way and announces itself the same way; none is "primary". The one
you are sitting at manages the others, with ragon-admin:
| Command | What it does |
|---|---|
ragon-admin node list |
Every node on the network, the model each serves and its load |
ragon-admin node add <node> |
Pair with a node, once. It asks for that node's password one time and sets up a key that can only ask it for Ragon operations |
ragon-admin node status <node> |
That node's ragon-admin status |
ragon-admin node set <node> --model <key> |
Give that node a model and start it there; the node runs its own safety checks |
ragon-admin node start <node> / stop <node> |
Start or stop its model server |
ragon-admin node run <node> -- <command> |
Run a command there, in the current repository at its last commit. Its changes come back as a branch, job/<id> |
ragon-admin node jobs, logs <job>, cancel <job>, fetch <job> |
Follow, stop and collect jobs |
ragon-admin node remove <node> |
Undo the pairing |
Using a node (asking its model, searching) needs no pairing. Changing one, or running something on it, always does. A job runs with a memory cap and a time limit (8 GB and 90 minutes unless you say otherwise), cannot use the GPU, and sees nothing of the other node's home folder. Uncommitted changes are not sent. All of this was built and tested on a single DGX Spark playing both sides; it has not yet run between two machines.
Setting up a node from far away¶
A new DGX Spark can be set up from the one you sit at, over the network or over the overlay when it is at another site:
ragon-admin node provision <name> --user <the account on that machine>
It installs Ragon there, gives the node its model, pairs it and starts it; run on nodes that are
already paired, ragon-admin node provision --all updates them all. With no name it lists the
unprovisioned DGX Spark machines it finds on the network. --dry-run connects and reads only, then says what
would change. It asks for the new machine's password once (--per-host-password asks for each).
By default the model's files (about 22 GiB for the default model) are copied from the DGX Spark you run it on. For a node on a slow connection to you, let the node download them itself:
ragon-admin node provision <name> --user <account> --model-source hf
The node fetches the public weights from Hugging Face, at the exact revision your own DGX Spark holds,
and resumes a download that is cut off. Every file is then checked against your copy by its
SHA-256 checksum; only a file that Hugging Face does not carry, or whose checksum differs, is sent
from your DGX Spark. If two machines are provisioned in one command and the download keeps failing on
the second, it takes the files from the first over their own network. The default, --model-source
copy, stays as it was.
Restarting a hung node¶
If a node stops answering, ragon-admin node power-cycle <node> switches its smart plug off and on
again. See Away from home for the setup.