This release is a pre-release and may not be stable for production use.
Dromeus
Dromeus is a Python library for decentralized federated learning. Each participant trains on its own local dataset and exchanges model updates with peers over Gensyn's AXL network, without a central server aggregating those updates.
You bring the model, per-record loss and optimizer as a TrainingTask. Dromeus
coordinates the group, runs local training and applies
NoLoCo updates between peers. It is built for developers experimenting with decentralized training on
independently operated machines.
How training works
Participants agree on a model, training policy, and fixed membership before the run starts. They then repeat the same loop:
- Train on local data for the configured number of steps.
- Exchange outer gradients and slow weights with the scheduled peer.
- Apply NoLoCo's outer momentum update and save the committed round.
The peer schedule changes each round. Pairs make progress independently, subject to readiness and timeout limits. One node coordinates group setup; training updates happen between peers without a global all-reduce.
AXL runs beside each application and handles encrypted network routing. Dromeus adds chunk acknowledgments, bounded retries, and checks on the sender, round, and tensor contents. Top-k sparsification and 8-bit quantization reduce update traffic, while error feedback carries outer-gradient compression error into later rounds. An identity codec is also available.
Each worker keeps its own model, and final weights can differ. Per-node logs record evaluation metrics, timing, and transfer behavior.
Get started
Use Python 3.11 or newer and uv. Install from the source checkout:
git clone https://github.com/devesh1011/dromeus.git
cd dromeus
./scripts/bootstrap
Or install the pre-release from PyPI, in a virtual environment or an activated conda environment:
pip install --pre dromeus # add [privacy] for private training
To see a run first, the quickstart trains four nodes on one machine in a few minutes. The training guide covers the three steps with a complete regression example:
import dromeus
task = dromeus.TrainingTask(...) # model, batches, loss, optimizer; same 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(...))
Before launching, start an AXL node on each machine and connect the group's
peers. On Linux (x86_64, aarch64) and Apple-silicon macOS, Dromeus installs a
pinned AXL build: run it with dromeus-axl -config axl.json. The
AXL setup guide covers keys, bootstrap peers and nodes behind
NAT; the configuration guide covers each node's
node.yaml. One participant initiates group formation; share its invitation file
with the other participants. From the command line, each node runs:
dromeus doctor --config /path/to/node.yaml # optional: is this machine ready?
dromeus run --config /path/to/node.yaml --task my_training:setup
where my_training.setup() returns this node's (task, LocalData). The
command-line guide covers every command and exit code.
Working assumptions
Dromeus supports fixed, even-sized groups of 4 to 16 participants. Nodes must agree on model structure and parameter meaning; the PyTorch integration exchanges compatible FP32 model state. Participants may hold different amounts of data, but each node has equal weight in the outer update.
Membership stays fixed for the run. A peer failure or missed deadline can end training; automatic distributed restart is not implemented. Checkpoint restore requires compatible application state.
Keeping datasets local does not make ordinary model updates private. Optional private training uses Opacus per-example clipping, Gaussian noise and per-node accounting through an owned trainer. Groups supply compatible optimizer factories; private execution also requires an admitted model/loss and the documented state contract. See private training for supported profiles, secure randomness, privacy scope and fresh-start restrictions.
Divergence monitoring records model disagreement and emits configurable warnings. Thresholds are workload-specific and require calibration; agreement alone does not prove model utility. See monitoring. Secure aggregation and Byzantine fault tolerance are not implemented.
Benchmarks
The technical report compares NoLoCo over AXL with an independent NCCL reference at 4, 8, and 16 GPU workers using GroupNorm ResNet-18 on IID CIFAR-10 partitions. It includes codec comparisons, learning curves, communication measurements, and deployment limits. These results describe that workload; they do not establish convergence for arbitrary models or data distributions.
See the accuracy table and published M2 evidence index for retained metrics, charts and frozen settings. The owner permanently retired the old local raw-result trees; unique deleted logs and models are no longer available for re-audit from this checkout.
The M3 team review maps the proposal requirements to numeric results, runtime and privacy checks, and the validated digit-warning policy. It also includes the completed language-model study as additional evidence. The folder omits report charts and large training artifacts. Read the criteria check for verified scope, publication status, and evidence-retention limits.
Each milestone's benchmark code and evidence are verified at its release tag
(v0.1.0, v0.2.0, v0.3.0). main carries only the current library and its
tests; the benchmark runners used for those milestones are not maintained here.
Development
Run ./scripts/verify before contributing. It checks architecture boundaries,
lint, types, and tests. The test guide lists focused commands
and the prerequisites for real-AXL integration tests.
License
MIT.
Metadata
Release files for dromeus 0.4.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dromeus-0.4.0rc1.tar.gz | 131.5 kB | With provenance | Details for dromeus-0.4.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dromeus-0.4.0rc1-py3-none-any.whl | Python 3 | none | any | Details for dromeus-0.4.0rc1-py3-none-any.whl |
Total release size: 297.8 kB
Release files / dromeus-0.4.0rc1.tar.gz
| Download URL | dromeus-0.4.0rc1.tar.gz |
|---|---|
| Size | 131.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bdbe2148082ddad63f21aea372466db0e442420721a23d9ce726a85c7a67f73
|
|
BLAKE2b-256 checksum How to use checksums |
6c5c617b9a6eb4e9eb61421b34b98ff39890d3297799cb7f1dc8c4b44fd7aa30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / dromeus-0.4.0rc1-py3-none-any.whl
| Download URL | dromeus-0.4.0rc1-py3-none-any.whl |
|---|---|
| Size | 166.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3aa0ef826ae71ce9418bbb0c45ad8abc7e286b06cf25d97c31726dbd19521679
|
|
BLAKE2b-256 checksum How to use checksums |
deabd2588f15451cb69017ac3ffa502406675636aeec8f829694f82d49bbf957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for dromeus 0.4.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dromeus-0.4.0rc1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.