An official repository for GPTailor
20
stars
3
commits
Python
primary language
Jun 29, 2025
updated
This is a framework that supports automatic merging of language models, consisting of various components.
To run the code, please ensure you have the required dependencies installed:
# Clone the repository
git clone https://github.com/Guinan-Su/auto-merge-llm
cd auto-merge-llm
# Install dependencies using conda
conda env create -f environment.yml
The framework uses SMAC optimizer and supports both single-objective and multi-objective optimization approaches.
python3 merge.py --config ./exp_config/config_lfs.yaml
python3 merge.py --config ./exp_config/config_lfs_mo.yaml
python3 merge.py --config ./exp_config/config_dis.yaml
python3 merge.py --config ./exp_config/config_prune.yaml
We've placed the tasks used in our experiments in the custom_tasks directory. You can also design your own optimization objectives.
We've placed the search configurations from our paper in the search_config directory. You can evaluate these configurations using the provided configs.
We appreciate the excellent open-source projects MergeKit and MergeLM. We have referenced or utilized portions of code from these projects.
We hope this code will be helpful for your research. If you find it useful, please consider citing our work.
@article{su2024fine,
title={Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging},
author={Su, Guinan and Geiping, Jonas},
journal={arXiv preprint arXiv:2502.04030},
year={2024}
}
@article{su2025gptailor,
title={GPTailor: Large Language Model Pruning Through Layer Cutting and Stitching},
author={Su, Guinan and Shen, Li and Yin, Lu and Liu, Shiwei and Yang, Yanwu and Geiping, Jonas},
journal={arXiv preprint arXiv:2506.20480},
year={2025}
}
3 commits
Python
100.0%
An official repository for GPTailor
20
stars
3
commits
Python
primary language
Jun 29, 2025
updated
This is a framework that supports automatic merging of language models, consisting of various components.
To run the code, please ensure you have the required dependencies installed:
# Clone the repository
git clone https://github.com/Guinan-Su/auto-merge-llm
cd auto-merge-llm
# Install dependencies using conda
conda env create -f environment.yml
The framework uses SMAC optimizer and supports both single-objective and multi-objective optimization approaches.
python3 merge.py --config ./exp_config/config_lfs.yaml
python3 merge.py --config ./exp_config/config_lfs_mo.yaml
python3 merge.py --config ./exp_config/config_dis.yaml
python3 merge.py --config ./exp_config/config_prune.yaml
We've placed the tasks used in our experiments in the custom_tasks directory. You can also design your own optimization objectives.
We've placed the search configurations from our paper in the search_config directory. You can evaluate these configurations using the provided configs.
We appreciate the excellent open-source projects MergeKit and MergeLM. We have referenced or utilized portions of code from these projects.
We hope this code will be helpful for your research. If you find it useful, please consider citing our work.
@article{su2024fine,
title={Fine, I'll Merge It Myself: A Multi-Fidelity Framework for Automated Model Merging},
author={Su, Guinan and Geiping, Jonas},
journal={arXiv preprint arXiv:2502.04030},
year={2024}
}
@article{su2025gptailor,
title={GPTailor: Large Language Model Pruning Through Layer Cutting and Stitching},
author={Su, Guinan and Shen, Li and Yin, Lu and Liu, Shiwei and Yang, Yanwu and Geiping, Jonas},
journal={arXiv preprint arXiv:2506.20480},
year={2025}
}
3 commits
Python
100.0%