Skip to content

Velocity-FL

The uv of Federated Learning: Rust speed, Python ergonomics.

Rust core Python API Up to 138× faster FedAvg

What is Velocity-FL?

Federated learning where the round's hot path, aggregation and attack simulation, runs in Rust, and everything you touch stays Python: Hugging Face, PEFT and PyTorch.

Aggregation in compiled code

4.0 ms vs 545 ms
FedAvg at 1M params
42.2 ms vs 5.82 s
FedAvg at 10M params
~138×
faster than the pure-Python fallback

Aggregation only, not end-to-end training, on the latest idle-box snapshot. Methodology and every tier

One round, end to end

  1. tune Configure A server, a strategy and a round count, in Python or TOML.
  2. group Collect Client updates cross into Rust, zero-copy where possible.
  3. memory Aggregate Nine strategies, all in Rust, from FedAvg to Bulyan.
  4. shield Attack and record Byzantine attacks run in the core; Prefect records every round.

Get started

Clone, maturin develop, run your first round.

Read the Quickstart
2026 AJ Barea