-
Software
- CUDA
- Python >= 3.7
- PyTorch <= 1.7.0
- Transformers 4.7.0 (Make sure your terminal can access Huggingface)
-
Hardware
- Vitis 2022.2
- Vivado 2022.2
-
Clone this repository
-
Download the CLOTH dataset from here to
data/cloth(Note: There is a problem with one piece of data in CLOTH). GELU and SQuAD v1.1 don't need to be downloaded manually. -
Create a virtual environment (recommendation: conda) with a Python version of at least 3.7.
-
Install dependent Python packages:
pip install -r requirements.txt -
Set relevant environment variables
a.
export PROJ_ROOT=$PWDb.
export WANDB_DISABLED=trueto disable wandb logging (optional)
-
Evaluate Funnel Accuracy
a. Train a origion model by scripts or download checkpoints from here (These checkpoints are all downloaded from Huggingface). You should download and place them in
outputby dataset name like location mode in Google Driver.b. Evaluate the fine-tuned model by scripts.