Skip to main content

FLoX

FLoX (Federated Learning on funcX) is a Python library for serverless Federated Learning experiments.

This is initial documentation that will be soon expanded.

Installation

Use the package manager pip to install flox.

# seems like flox is taken, will update the name soon
pip install flox

Usage

For a full example, see this Google Colab tutorial.

from flox.flox import federated_learning

# performs 5 rounds of Federated Learning train global_model on given endpoint_ids
# uses 10 epochs and 100 samples from fashion_mnist dataset for training
federated_learning(global_model=global_model, 
                  endpoint_ids=endpoint_ids,
                  loops=5,
                  epochs=10,
                  keras_dataset="fashion_mnist", 
                  num_samples=100, 
                  input_shape=(32, 28, 28, 1))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Metadata

Release files for pyflox 0.1.5

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

Source distribution (sdist)

Source distribution for pyflox 0.1.5
File Size Uploaded
pyflox-0.1.5.tar.gz 7.0 kB Details

Release files / pyflox-0.1.5.tar.gz

Download URL pyflox-0.1.5.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7865a4f733298b1f5741986c032805985e61a514cc88827252000df0defbee0b
BLAKE2b-256 checksum
How to use checksums
cf2710c48b4d3ed8ac7be09ed7872bf218e5ddc6bda932e109e7fa4bf6c022d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.10

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

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