Reproduce the Evolutionary Model Merge evaluation
mainTo reproduce the evaluation results presented in the SakanaAI paper, follow these steps to set up the environment and run the evaluation script.
1. Clone the repository
git clone https://github.com/SakanaAI/evolutionary-model-merge.git
cd evolutionary-model-merge2. Set up the fastext Model
The evaluation uses fastext for language detection.
- Download
lid.176.ftzfrom the fasttext language identification page. - Place the file in the current directory, or set the
LID176FTZ_PATHenvironment variable to the specific path of the file.
3. Install dependencies
Install the package in editable mode:
pip install -e .Note: The authors used Python 3.10.12 and CUDA 12.3 for their tests.
4. Run the evaluation
Execute the evaluate.py script by providing a path to a configuration file. The configurations used in the paper are located in the configs directory.
python evaluate.py --config_path {path-to-config}python evaluate.py --config_path {path-to-config}