This is the implementation of the paper "MOELoRA: An MOE-based Parameter Efficient Fine-Tuning Method for Multi-task Medical Applications".
You can implement our model according to the following steps:
- The handle dataset should be put into
./data/
- Put all files of ChatGLM-6B into the folder
resources/chatglm-6b/
and replace the themodeling_chatglm.py
by ourmodeling_chatglm.py
in this folder. - Install the necessary packages. Run the command:
pip install -r requirements.txt
- To train the MOELoRA and generate the answers to test, please run the command:
bash ./experiments/moelora.bash
- Finally, you can run and configure the
results/evaluate.ipynb
to get the evaluation scores