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

# Dromeus: decentralized federated learning over AXL

> Dromeus is a Python library for decentralized federated learning. Nodes train on their own data and exchange NoLoCo updates with peers, with no central server.

Dromeus is a Python library for training one PyTorch model across machines that you don't control centrally. Each participant trains on its own records, which never leave the machine, and exchanges model updates with one peer per round over [Gensyn's AXL network](https://github.com/gensyn-ai/axl). There is no parameter server and no global all-reduce.

You describe the model, how records form a batch, the per-record loss and the optimizer as a `TrainingTask`. Dromeus forms the group, runs local training, and applies [NoLoCo](https://github.com/gensyn-ai/noloco) updates between peers.

```python theme={null}
import dromeus

task = dromeus.TrainingTask(...)  # model, batches, loss, optimizer; identical on every node
dromeus.make_draft(task, "draft.yaml", run_id="my-run", participants=4,
                   rounds=20, local_steps=10)
# on each node, with its own records:
await dromeus.Node.from_file("node.yaml").run(task, local=dromeus.LocalData(...))
```

> [card] [Quickstart](https://dromeus.mintlify.site/quickstart.md)
>
> Train a model with four nodes on one machine in a few minutes.

> [card] [How Dromeus works](https://dromeus.mintlify.site/concepts/how-it-works.md)
>
> Groups, drafts, rounds and the NoLoCo update.

> [card] [Define a training task](https://dromeus.mintlify.site/guides/define-a-task.md)
>
> Bring your own model, loss and optimizer.

> [card] [Command line](https://dromeus.mintlify.site/reference/cli.md)
>
> `draft`, `check`, `doctor`, `run` and `watch`.

## What you get

* **Data stays local.** A node sends model updates to its scheduled peer, never its records.
* **No coordinator in the training loop.** One node sets up the group; every training update goes directly between two peers.
* **A verified shared agreement.** The group's draft pins the model, task, loss, optimizer and software versions as hashes. A node whose setup differs refuses to start and names the field that differs.
* **Reliable transfers.** Dromeus adds chunk acknowledgments, bounded retries, and checks on the sender, round and tensor contents on top of AXL's encrypted routing.
* **Smaller updates.** Optional top-k sparsification and 8-bit quantization cut update traffic, with error feedback carrying compression error into later rounds.
* **Optional differential privacy.** Private runs add record-level clipping, Gaussian noise and per-node privacy accounting through Opacus.
* **Observable runs.** Every node logs its loss, public evaluation metrics, round timing and the distance between nodes' models.

## Who it's for

Dromeus is for developers and researchers who want to train a shared model across independently operated machines: separate organizations, sites or people, each with data that stays where it is. It fits groups of 4 to 16 participants that agree on a model before the run starts.

> [!NOTE]
>
> Dromeus is pre-release software (0.4.0 development series). The public API is the set of names exported from the `dromeus` package. See [Limits](https://dromeus.mintlify.site/reference/errors-and-limits.md#limits) for what it doesn't do yet.


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