Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Federated Learning mini-framework with Keras

License

NotificationsYou must be signed in to change notification settings

gaborvecsei/Federated-Learning-Mini-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains a Federated Learning (FL) setup with the Keras (Tensorflow) framework. The purpose is to have thecodebase with which you can run FL experiments easily, for both IID and Non-IID data.

The two main components are: Server and Client. TheServer contains the model description, distributes the dataand coordinates the learning. And for all the clients it summarizes the results to update it's own (global) model.TheClients have different random chunks of data and the model description with the global model's weights. Fromthis initialized status they can start the training on their own dataset for a few iterations. In a real worldscenario the clients are edge devices and the training is running in parallel.

In this setup the client trainings are running sequentially and you can use only your CPU or just 1 GPU.

Cifar10 - "Shallow" VGG16

Training with a shallow version of VGG16 on Cifar10 with IID data where we had 100 clients and for each round (global epoch) we used only10% of them (selected randomly at each communication round). Every client fitted 1 epoch on "their part" of the data with the batch size of[blue: 8, orange: 64, gray: 256] and with learning rate of0.1.

A "single model" training (1 client with all the data) is also shown (red) on the graph. Batch size was256 and the learning rate was:0.05.

(The Tensorboard logs are (for each experiment) included in the release, so you can easily visualize them.)

About

Gábor Vecsei

About

Federated Learning mini-framework with Keras

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp