Please follow DARE to install the dependencies.
Additionally, install scipy, sklearn, torchmetrics, evaluate.
RoBERTa: You can download the fine-tuned checkpoints from huggingface here.
GPT-2: You can download the fine-tuned checkpoints from huggingface here.
Place the checkpoints as follows:
│cktps/
├──roberta/
│ ├── cola/
│ │ ├── roberta-base_lr1e-05
│ │ │ ├── config.json
│ │ │ ├──......
│ ├── sst2/
│ │ ├── roberta-base_lr1e-05
│ │ │ ├── config.json
│ │ │ ├──......
│ ├── ......
├──gpt2/
│ ├── gpt2/
│ │ ├── config.json
│ │ ├──......
│ ├── gpt2_cola/
│ │ ├── config.json
│ │ ├──......
│ ├── ......
You can modify the cache_dir
in the utils/load_config.py
file to specify your own path to save the datasets.
python merge_roberta_glue.py
python merge_gpt_glue.py
Results for our EMR-Merging will be saved in ./save_merge_logs.