# Modification of LLaMA-Factory

The codes are imported from [LLaMA-Factory](https://github.com/hiyouga/LLaMA-Factory)
(v0.9.0), and we made the following modifications to set
up training and evaluation for our work.

1. Deleted `api`, `chat`, `eval`, `webui` and edited `cli` to apply the deletion.
2. Deleted `train.dpo`, `train.kto`, `train.ppo`, `train.pt`, `train.rm` and edited `train.tuner` to apply the deletion.
3. Edit `train.tuner` to add training function for MeM.
4. Edited `train.sft.metric` and `train.sft.workflow` to add metrics for GSM8K and Spider.
5. Created `train.sft.mem_workflow` and `train.sft.__init__` for MeM training.
6. Edited `hparams.finetuning_args` and `hparams.model_args` to add hyperparameters for MeM.
7. Edited `data.template` to register a new template `vanilla_qa`
