> ## Documentation Index
> Fetch the complete documentation index at: https://dromeus.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How Dromeus trains a model across a group

> How a Dromeus group forms, what the shared draft pins, and what each node does in a training round: local steps, a NoLoCo exchange with one peer, then commit.

A Dromeus run is a fixed group of 4 to 16 nodes training the same model, each on its own records. This page explains the three parts of a run: the shared draft the group agrees on, how the group forms, and what every node does in each training round.

## The pieces

| Piece | What it is | Who has it |
| - | - | - |
| Task | The model, how records form a batch, the per-record loss and the optimizer, as a `TrainingTask` | Every node builds the identical task from the same code |
| Draft | The group's shared settings: members, rounds, NoLoCo settings, and hashes of the task and software versions | One person writes it; every node uses the same file |
| Local data | A node's own records | Only that node. Records never leave the machine. |
| Node configuration | The node's role, its AXL bridge address and where it writes files | Each node has its own |
| AXL node | The network process that routes encrypted traffic between machines | One beside each Dromeus node |

## The draft is the agreement

The draft records everything the group must agree on before training: the run ID, the number of participants and rounds, the local steps per round, the NoLoCo and transport settings, and optional privacy and divergence settings. The task is recorded as hashes of its model, task and loss definitions, its code and its optimizer settings. The Dromeus, PyTorch and AXL versions are recorded too.

Before a node contacts the network, it checks the draft against its own task and installed versions. If anything differs, it stops with a `DraftError` that names the field. This catches a mismatched model or library version before any round runs, instead of as a silent divergence later.

## Forming the group

One node is the **initiator**; the others are **participants**.

1. The initiator writes an invitation file for the draft.
2. You deliver that file to every participant at the path its node configuration names. Participants wait for it, up to `invitation_timeout_seconds`.
3. The nodes join over AXL and seal a run manifest: the draft plus every member's AXL public key. Every node ends formation with the same manifest hash.

The initiator can set an enrollment window. The invitation then expires, and the initiator stops with a `FormationError` if the group isn't complete when the window closes. See [node configuration](https://dromeus.mintlify.site/reference/configuration.md#node-configuration).

Membership is fixed for the rest of the run.

## A training round

Every node repeats the same loop for the number of rounds in the draft:

**1. Train locally**

The node's optimizer takes `local_steps` steps on the node's own batches.

**2. Exchange with one peer**

The node computes NoLoCo's outer gradient from its current (fast) weights and its slow weights. It sends the outer gradient and its slow weights to this round's scheduled peer and receives the peer's.

**3. Apply the outer update**

The node applies NoLoCo's outer momentum update and correction, controlled by the draft's `alpha`, `beta` and `gamma`.

**4. Commit**

The node writes a checkpoint under its `run_root` and records the round's training loss and any public evaluation metrics.

The peer schedule changes every round and is fixed by the draft's seed, so every node computes the same schedule. Pairs make progress independently, subject to readiness and timeout limits. There is no global all-reduce and no server in the loop.

Each node gives the group equal weight in the outer update, whatever its number of records. Each node keeps its own model, and the final weights can differ between nodes.

## Measuring agreement

Each round, nodes exchange a small CountSketch of their model. Every node uses the sketches to measure how far each model is from the group's mean, and logs it as the consensus distance. You can watch it live with `dromeus watch` and turn it into warnings with a divergence policy. See [Monitor a run](https://dromeus.mintlify.site/guides/monitoring.md).

## Transfers

AXL encrypts and routes traffic between machines. Dromeus splits each update into chunks with acknowledgments and bounded retries, and checks the sender, round and tensor contents of everything it receives. The draft's [transport limits](https://dromeus.mintlify.site/reference/configuration.md#shared-draft) bound payload size, chunking, retries and in-flight data.

To cut traffic, set `NoLoCo(top_k_fraction=...)`: the outer gradient then sends only its largest entries as int8, and slow weights are sent as int8. Error feedback carries the compression error into later rounds.

## When something fails

If a peer fails or misses a deadline, the run stops with a `RunError`. There is no automatic group restart. See [Errors and limits](https://dromeus.mintlify.site/reference/errors-and-limits.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.