[Installation Guide] | [MoEfication Docs] | [Continual Pre-training Docs]
- Python==3.11.4
- Packages: please check
requirements.txt
(NOTE:flash-attn
must be properly installed by following their instructions)
- Packages: please check
- RedPajama:
bash scripts/tokenize/redpajama.sh
(Don't forget to change the folder paths.)
NOTICE: Please create logs/
folder manually: mkdir -p logs
- LLaMA MoEfication LoRA:
sbatch scripts/cpt/lora.sh
- LLaMA MoEfication Full-Parameter:
sbatch scripts/cpt/fpt.sh
- Make sure the Python version
>=3.10
(a strict version contraint for better type hinting)
$ conda install git # upgrade git
$ git clone git@github.com:pjlab-sys4nlp/train-moe.git
$ cd train-moe
$ pip install -e .[dev]
$ pre-commit install