Tools to scaffold and run privacy-preserving federated learning experiments across distributed data sites.
Project description
🌐 FedModelKit (fmk)
FedModelKit is a Python library designed to streamline the execution of federated learning tasks within a network of collaborating partners.
It provides a guided workflow that helps users quickly set up experiments, manage dependencies, and follow step-by-step instructions through generated resources.
📑 Table of Contents
🔎 Overview
Federated learning enables multiple partners to train machine learning models collaboratively without sharing raw data.
The FedModelKit library simplifies this process by:
- Automating project initialization
- Creating a reproducible experiment directory with all required dependencies
- Offering a clear, step-by-step workflow to run experiments in a federated network
🧩 Dependencies
These are the dependencies of the packages, including the required Python version:
| Dependency | Version | Description |
|---|---|---|
| Python | >=3.13 | Required Python interpreter version |
flwr[simulations] |
==1.17.0 | Federated learning framework and simulations with Flower |
flwr_datasets |
>=0.5.0 | Datasets compatible with Flower |
mlflow |
>=3.1.1 | For experiment tracking and logging |
pandas |
>=2.3.0 | Data manipulation and analysis |
⚙️ Installation
It is recommended to install FedModelKit inside a virtual environment.
We suggest using uv for fast and reproducible setups:
-
Create and activate a virtual environment
uv venv source .venv/bin/activate
or in case of Windows OS
uv venv .venv\Scripts\activate
-
Install
FedModelKituv pip install FedModelKit
🚀 Quick Start
Initialize a new federated learning experiment with:
fmk init -n my_experiment
This will generate in the present directory the project for a new FL experiment.
📖 Next Steps
👉 Once the experiment directory has been created, open the file README.md that has been generated in your directory and follow the guided workflow to set up and run your federated learning tasks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fedmodelkit-0.7.0.tar.gz.
File metadata
- Download URL: fedmodelkit-0.7.0.tar.gz
- Upload date:
- Size: 23.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
648ab837e9c5fd57ec56640953f1ff4c4ee3f0da2a42cf81e5f97d7a60e45857
|
|
| MD5 |
c589d799eb26345fc61e4ac9089eed08
|
|
| BLAKE2b-256 |
efaafdba2ae5d0524a76598fe0d12993bf47bef11fe9b000250d48b79173e8a1
|
File details
Details for the file fedmodelkit-0.7.0-py3-none-any.whl.
File metadata
- Download URL: fedmodelkit-0.7.0-py3-none-any.whl
- Upload date:
- Size: 23.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b244d81c1a3219fd969d2be7c7e4d877e90c436cca6676a595f60d21e623b333
|
|
| MD5 |
5f4ef70cd50ed2b13af732a0ea24b4b6
|
|
| BLAKE2b-256 |
0a53e8f7dfb60759f1207471d66a8378e75578044aa5520aa9c76bf3bd563ffb
|