First, activate the conda environment: conda activate m2qa_experiments
Then train the XLM-R-Base & XLM-R-Domain models by starting the bash scripts:
- XLM-R Base:
- XLM-R Domain Adapted:
- Pretrain the XLM-R model on the target domain: Execute the bash files in the xlm-r-adapted directory
- Fine-tune each pretrained XLM-R model on SQuAD v2. The bash scripts to do this are in the Execute xlm-r-fine-tune directory
- Example to train the XLM-R-Domain model for the creative writing domain: