SLAM: Towards Efficient Multilingual Reasoning via Selective Language Alignment
- This repository shows our latest work on the efficient expansion of model multilingual capabilities.
To install this repository, follow these steps:
git clone [email protected]:fmm170/SLAM.git
cd SLAM/LLaMA-Factory
pip install -r requirements.txt
cd transformers
pip install -e .
- finetuning MetaMath-7B / MetaMath-13B
bash MetaMath-7b.sh
bash MetaMath-13b.sh
We use the evaluation code provided by Chen et al.
- evaluating with mGSM
cd evaluate
bash mgsm.sh
- evaluating with mSVAMP
cd evaluate
bash msvamp.sh
- evaluating with xCSQA
cd evaluate
bash evaluate_xcsqa6.sh
If you have any questions related to the code or the paper, feel free to email [email protected]