flower-fl-local-training-isolation-framework

๐ŸŒธ Flower-FL-Local-Training-Isolation-Framework ๐ŸŒธ

Welcome to the AIerLabโ€™s groundbreaking Federated Learning repository! We are a group of geeks committed to making AI safe and friendly for everyone. Our setup integrates complex training methodologies seamlessly, paving the way for the next generation of machine learning solutions without impinging on the native Flower framework logic.

License: Apache-2.0 PRs Welcome Python 3.6+ Flower Framework Join our Discord AIerLab

๐Ÿ’ป Setting Up Your Development Environment

Before you dive into our repository, ensure your system is equipped with the necessary frameworks to facilitate a seamless experience:

1. ๐ŸŒบ Flower Framework Installation

Set up the Flower framework as the foundational element for federated learning by executing the following command in your terminal:

python -m pip install flwr 

2. ๐Ÿ•ฏ๏ธ PyTorch Installation

Next, install PyTorch, the powerful library facilitating machine learning and deep learning implementations. Follow the official guidelines for a smooth installation:

python -m pip install torch torchvision

๐Ÿš€ Running the Simulation

Our innovative approach segregates the model training process from the Flower framework, allowing the seamless integration of complex training methodologies without disruptions. Hereโ€™s your guide to executing the simulation:

1. ๐Ÿ–ฅ๏ธ Server Startup

Navigate to the project directory and initialize the server with this command:

cd path/to/the/folder
python server_main.py

2. ๐Ÿ“ฑ Client Main Activation

In separate terminals, initiate the client main instances sequentially, assigning them respective ranks:

cd path/to/the/folder
python client_main.py --rank 1
cd path/to/the/folder
python client_main.py --rank 2

3. ๐Ÿญ Model Main Activation

Simultaneously, launch the model training threads in distinct terminals, assigning them the respective ranks:

cd path/to/the/folder
python model_main.py --rank 1
cd path/to/the/folder
python model_main.py --rank 2

This establishes a standard simulation setup orchestrating five concurrent terminals: two hosting client_main.py, two accommodating model_main.py, and one dedicated to server_main.py.

๐Ÿ’ก Explore the wealth of configuration options with the -h or --help command-line arguments.

๐ŸŒˆ Features and Advancements

Dive into our enriched repository that offers:

Weโ€™re continually enhancing our repository, so stay tuned for new, dynamic features!


Join us in this endeavor as we aim to redefine federated learning protocols, fostering an environment where complexity meets simplicity, paving the path for the next generation of machine learning solutions. Become a part of this revolutionary journey and connect with fellow enthusiasts in our AIerLab Discord community. Thank you for being a part of this transformative journey!