Views
No views yet

![]() | ![]() |

llama3_8b_lora_b: Contains one LoRA adapter fine-tuned with 28 tasks together in balanced-dataset mode (1,000 samples for each task).llama3_8b_lora_f: Contains one LoRA adapter fine-tuned with 28 tasks together in full-dataset mode.llama3_8b_meteora: Contains the LlaMA3-8b base model equipped with MeteoRA. Both top-1 and top-2 versions included.llama3_8b_peft: Contains 28 LoRA adapters fine-tuned for 28 tasks, respectively.pip install -r requirements.txt1cd data
2python create_dataset.py --task all1cd data
2python create_dataset.py --task <task_name>python create_composite.py --n <n>n=3, n=5 and n=10 few-shot dataset generating code. Before generation, please ensure that the sub-tasks to composite composite-n task have been included in data/datasets.python download_ckpt.pyconfigs/config.yaml. Example paths:1base_model_path: 'meta-llama3/Meta-Llama-3-8B'
2meteora_ckpt_path: 'ckpt/llama3_8b/llama3_8b_meteora/top_2'
3adapter_dir: 'ckpt/llama3_8b/llama3_8b_peft'python eval_model.py --task <task_name> --batch_size <batch_size> python eval_model.py --task composite_10 --batch_size 4 self.T in MoELoRA/layer.py). Use 15, 20, and 30 for n=3, n=5, and n=10, respectively. For single tasks, use the default value (self.T=1).python eval_model.py --task <task_name> --batch_size <batch_size> --savepython eval_model.py --task <task_name> --batch_size <batch_size> --debugpython eval_model.py --task <task_name> --batch_size <batch_size> --model <adapter_name>- lora_adapters
- adapter_name1
- adapter_name2
- ...
- datasets
- dataset_name1
- dataset_name2
- ...run_meteora_train_fsdp.sh.sh run_meteora_train_fsdp.sh1export MOELINEAR_USE_ACCELERATE_FWD=0
2export MOELINEAR_FWD_INNER_LOOP_MODE='batch'
3export MOELINEAR_ACCELERATE_FWD_BACKEND='torch'
4export MOELINEAR_ACCELERATE_FWD_BACKEND_TORCH_VERSION='v1'0.00 BLEU scores are caused by mismatch and too insufficient answers.| Sub-task Name | Accuracy↑ (MeteoRA) | Accuracy↑ (LoRA-B) | BLEU↑ (MeteoRA) | BLEU↑ (LoRA-B) | ROUGE-1↑ (MeteoRA) | ROUGE-1↑ (LoRA-B) | ROUGE-2↑ (MeteoRA) | ROUGE-2↑ (LoRA-B) | ROUGE-L↑ (MeteoRA) | ROUGE-L↑ (LoRA-B) |
|---|---|---|---|---|---|---|---|---|---|---|
| logical_deduction | 0.500↑ | 0.453 | - | - | - | - | - | - | - | - |
| question_selection | 0.703↑ | 0.688 | - | - | - | - | - | - | - | - |
| abstract_narrative_understanding | 0.625↓ | 0.672 | - | - | - | - | - | - | - | - |
| goal_step_wikihow | 0.773↑ | 0.727 | - | - | - | - | - | - | - | - |
| winowhy | 0.422↑ | 0.078 | - | - | - | - | - | - | - | - |
| strategyqa | 0.461↑ | 0.211 | 3.23↑ | 0.00 | 0.225↑ | 0.106 | 0.051↑ | 0.025 | 0.210↑ | 0.099 |
| disfl_qa | 0.266↑ | 0.117 | - | - | - | - | - | - | - | - |
| news_commentary_de | - | - | 14.78↑ | 14.54 | - | - | - | - | - | - |
| alpaca | - | - | 0.00↓ | 8.17 | 0.257↑ | 0.187 | 0.075 | 0.075 | 0.241↑ | 0.167 |
| linguistics_puzzles | - | - | 17.37↑ | 12.14 | 0.233↑ | 0.189 | 0.052↑ | 0.030 | 0.176↑ | 0.103 |
1@misc{xu2024meteora,
2 title={MeteoRA: Multiple-tasks Embedded LoRA for Large Language Models},
3 author={Jingwei Xu and Junyu Lai and Yunpeng Huang},
4 year={2024},
5 eprint={2405.13053},
6 archivePrefix={arXiv},
7}