FedAvg
This is a implemention of FedAvg in paper Communication-Efficient Learning of Deep Networks from Decentralized Data.
Install / Use
/learn @zj-jayzhang/FedAvgREADME
FedAvg
This is a implemention of FedAvg in paper Communication-Efficient Learning of Deep Networks from Decentralized Data.
How to run the codes?
At first, you should creat two dirs called 'logs' and 'checkpoints', then you can cd into 'src', and run FedAvg on iid cifar10 and mnist
python3 federated_main.py --model=cnn --dataset=cifar --iid=1 --epochs=300 --lr=0.01 --local_ep=5 --local_bs=32
python3 federated_main.py --model=cnn --dataset=mnist --iid=1 --epochs=100 --lr=0.01 --local_ep=5 --local_bs=32
noniid cifar10 and mnist:
python3 federated_main.py --model=cnn --dataset=cifar --iid=0 --epochs=300 --lr=0.01 --local_ep=5 --local_bs=32
python3 federated_main.py --model=cnn --dataset=mnist --iid=0 --epochs=100 --lr=0.01 --local_ep=5 --local_bs=32
For best test acc:
|- |CIFAR10 |MNIST | | ------------- | ------------- |------------ | | IID | 68.70% | 98.87% | | Non-IID | 68.11% | 98.05%|
test acc curve(for cifar10 both in iid and noniid setting):

Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
