> ## 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.

# Run a training group across machines

> Write and share the group's draft, configure each node, deliver the invitation and start every node with Python or the dromeus command line.

Once you have a [training task](https://dromeus.mintlify.site/guides/define-a-task.md), running a group takes four steps: one person writes the shared draft, every node checks it, each node gets its own configuration, and every node starts. This guide assumes each machine already runs an AXL node connected to the group. See [AXL setup](https://dromeus.mintlify.site/guides/axl-setup.md).

**1. Write the shared draft**

One person writes the draft once and sends the same file to every node.

```python Python theme={null}
dromeus.make_draft(
    task(),
    "draft.yaml",
    run_id="regression-2026-11",
    participants=4,
    rounds=20,
    local_steps=10,
)
```

```bash Command line theme={null}
dromeus draft draft.yaml --task my_training:task --run-id regression-2026-11 \
  --participants 4 --rounds 20 --local-steps 10
```

`make_draft` fills in every hash, the Dromeus and PyTorch versions installed on this machine, and the bundled AXL build. Every node must install the same versions. Use a new `run_id` for every run.

Optional settings, available from Python only:

| Argument | Sets |
| - | - |
| `noloco=dromeus.NoLoCo(alpha=..., beta=..., gamma=..., top_k_fraction=...)` | The outer step and update compression |
| `privacy=dromeus.Privacy(...)` | [Private training](https://dromeus.mintlify.site/guides/private-training.md) |
| `transport=dromeus.TransportLimits(...)` | Retry, chunk and window limits for slow networks |
| `divergence=dromeus.DivergencePolicy(...)` | [Divergence warnings](https://dromeus.mintlify.site/guides/monitoring.md#divergence-warnings) |
| `axl_version="..."` | The AXL build every node runs, where no AXL is bundled |

Don't edit a draft by hand. Change the task and write a new draft.

**2. Check the draft on every node**

Each node confirms the draft matches its task and installed versions, without touching the network:

```bash Command line theme={null}
dromeus check --draft draft.yaml --task my_training:task
```

```python Python theme={null}
dromeus.check_draft("draft.yaml", task())  # raises DraftError naming what differs
```

`dromeus check` prints the draft hash. Compare it across nodes to confirm everyone has the same file.

**3. Configure each node**

Each machine has its own `node.yaml`. Exactly one node is the `initiator`; the rest are `participant`s.

```yaml node.yaml theme={null}
role: initiator                         # exactly one node; the others: participant
draft_path: /path/to/draft.yaml
axl_bridge_url: http://127.0.0.1:9002   # this machine's AXL bridge, loopback only
run_root: runs/regression/node-0        # checkpoints, logs and run state
invitation_path: runs/regression/invitation.json
bootstrap_uri: axl://regression-2026-11 # the same on every node
invitation_timeout_seconds: 300         # participants: how long to wait for the invitation
```

Then check that the machine is ready:

```bash theme={null}
dromeus doctor --config node.yaml --task my_training:task
```

See [Configuration](https://dromeus.mintlify.site/reference/configuration.md) for every field and [`dromeus doctor`](https://dromeus.mintlify.site/reference/cli#dromeus-doctor) for the checks.

**4. Start every node**

Start the initiator and the participants. Each node passes its own records.

```bash Command line theme={null}
dromeus run --config node.yaml --task my_training:setup
```

```python Python theme={null}
import asyncio

local = dromeus.LocalData(dataset=my_records, data_identity=my_file_hash)
node = dromeus.Node.from_file("node.yaml")
result = asyncio.run(node.run(task(), local=local))
print(result.committed_rounds, result.manifest_hash)
```

The initiator writes the invitation to its `invitation_path`. Copy that file to the `invitation_path` of every participant. Participants wait for it for up to `invitation_timeout_seconds`.

## What `run` returns

`Node.run` returns a `RunResult` when every round is committed:

| Field | Meaning |
| - | - |
| `run_id` | The draft's run ID |
| `manifest_hash` | Hash of the sealed run manifest. It is the same on every node. |
| `committed_rounds` | Number of rounds this node committed |

If the run can't finish, `run` raises a [`DromeusError`](https://dromeus.mintlify.site/reference/errors-and-limits) subclass, and `dromeus run` exits with a matching [exit code](https://dromeus.mintlify.site/reference/cli.md#exit-codes).

## Close enrollment on time

To stop a stale invitation from starting a run late, set `enrollment_window_seconds` on the initiator:

```yaml theme={null}
enrollment_window_seconds: 900  # initiator only
```

The invitation then expires that many seconds after the initiator writes it. Participants refuse an expired invitation, and the initiator stops with a `FormationError` if the group isn't complete when the window closes. Expiry compares wall clocks across machines, so keep every node's clock synchronized with NTP.


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