Skip to main content
In this quickstart you train the example regression model with four Dromeus nodes, each beside its own AXL node, on one computer. It takes a few minutes and needs no network setup. By the end, all four nodes have committed 20 training rounds and agree on one run manifest.

Prerequisites

  • Linux (x86_64 or aarch64) or macOS on Apple silicon. On these platforms Dromeus installs a pinned AXL build, so you don’t need Go.
  • Git and uv.

Run it

1

Install Dromeus

Clone the repository and create its environment. bootstrap creates a Python environment (3.11 or later) in .venv with PyTorch, Dromeus and the bundled AXL node.
Run the remaining steps from the dromeus directory, in one terminal.
2

Write the data and the shared draft

Each node gets its own records, data-0.npz to data-3.npz. The draft is the group’s agreement: the model, task, loss, optimizer, number of rounds, and the Dromeus, PyTorch and AXL versions. In a real group, one person writes it and sends the file to everyone else.
3

Start four AXL nodes

axl-0.json listens for peers on 127.0.0.1:9101. The other three connect out to it, the way nodes behind a NAT would. Each node serves its HTTP bridge on its own port, 9201 to 9204.dromeus doctor checks that node 0 is ready. Every line should read ok, except possibly the clock, and the peers line should say connected to 3 peer(s).
4

Train

Node 0 is the initiator. It writes runs/quickstart/invitation.json, and the three participants read it from the same path. On separate machines you would copy that file to each participant.dromeus watch follows node 0 round by round: the training loss on its own records, the error on a public holdout, the round time and this round’s peer, then the distance between the nodes’ models. Your numbers will differ:
Every node’s log ends with run quickstart complete: 20 rounds committed and the same manifest hash.
5

Stop the AXL nodes

A run keeps its state in its run_root. To run again, delete it with rm -rf runs/quickstart and start over from step 2.

What just happened

  1. Each node checked the shared draft against its own task and installed versions before touching the network.
  2. Node 0 formed the group and wrote the invitation. The participants joined with it, and all four agreed on a sealed run manifest.
  3. In each round, every node took 10 optimizer steps on its own records, then exchanged a NoLoCo update with one scheduled peer through AXL. Nodes 1 to 3 had no direct link to each other: AXL routed their traffic through node 0.

Next steps

How Dromeus works

The group, the draft and what happens in a round.

Define a training task

Train your own model instead of the example.

Run across machines

Set up AXL with a stable identity, a public bootstrap peer and nodes behind NAT.

Monitor a run

Follow rounds, loss and model agreement.