The code repository of paper "Rethinking Weight-Averaged Model-merging".
pip install -r requirements.txt
For more requirements, please refer to requirements.txt
In the code implementation, the download of cifar10 / cifar100 / tinyimagenet datasets will be handled by the code automatically.
For model training, the commandline is:
bash run.sh [GPU id]
Wt_vs_Ft is the folder of Section 4 (Merging VS. Ensemble) and Section 5 (Sensitivity to Weight Magnitudes)
For model training, the commandline is:
bash run.sh [GPU id]
For model merging:
bash run_merge.sh 0
If you got a chance to use our code, you could consider to cite our paper.
Enjoy!!