Skip to main content

ByzPy

ByzPy is a unified Python framework for Byzantine-robust distributed machine learning. It provides a powerful actor runtime, declarative computation graphs, and batteries-included aggregators and attack simulators.

Installation

Install from PyPI:

pip install byzpy              # CPU baseline
pip install "byzpy[gpu]"       # add CUDA/UCX extras
pip install "byzpy[dev]"       # add development tools (pytest, coverage)

Quick Start

from byzpy.aggregators.coordinate_wise.median import CoordinateWiseMedian
import torch

# Create aggregator
aggregator = CoordinateWiseMedian(chunk_size=4096)

# Aggregate gradients
gradients = [torch.randn(1000) for _ in range(10)]
result = aggregator.aggregate(gradients)

Features

  • Byzantine-robust aggregators – Krum, MDA, trimmed mean, geometric median, and more
  • Unified actor runtime – threads, processes, GPUs, and TCP/UCX remotes share a single API
  • Declarative computation graphs – build heterogeneous pipelines with deterministic scheduling
  • Complete examples – parameter-server and peer-to-peer demos included

CLI Tools

byzpy version                # installed version
byzpy doctor                 # environment diagnostics
byzpy list aggregators       # discover built-ins

Documentation

📖 Full documentation: https://byzpy.github.io/byzpy/

Links:

Metadata

Release files for byzpy 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for byzpy 0.1.4
File Size Uploaded Provenance Actions
byzpy-0.1.4.tar.gz 153.2 kB Without provenance Details for byzpy-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for byzpy 0.1.4
File Interpreter ABI Platform Actions
byzpy-0.1.4-py3-none-any.whl Python 3 none any Details for byzpy-0.1.4-py3-none-any.whl

Total release size: 394.5 kB

Release files / byzpy-0.1.4.tar.gz

Download URL byzpy-0.1.4.tar.gz
Size 153.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ccd4105a1e98fd2839dacffd7c289159c7d0b6ed579f13371ea6e1a19dfd38db
BLAKE2b-256 checksum
How to use checksums
ab74fd852ffdd195f6f126448555c1e0112d2f22e37c71b2ba2e2e679c0a8578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / byzpy-0.1.4-py3-none-any.whl

Download URL byzpy-0.1.4-py3-none-any.whl
Size 241.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
405aacc9294ae5f831e619b0c6284bcf3c6e1063c4496a4439c5932d443c69b2
BLAKE2b-256 checksum
How to use checksums
2106b9a84ad05880b613f46d56a79597229a0eed8205b27ea4684445f9d05c2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for byzpy 0.1.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page