- Install the packages from composable-sft.
- Install the packages from rational_activations. You would need to follow the [Other CUDA/PyTorch] section for installation.
- Uninstall transformers using the command
pip uninstall transformers. - Install the packages from this repo using
pip install -r requirements.txt.
See the scripts in lang_adapt/scripts/run_clm_* as examples for the following language adaptation strategies:
- Adaptable adapters
- BitFit
- Continual Pretraining
- IA3
- LoRA
- MAD-X
- Pfeiffer
- Pretraining from Scratch
- Composable SFT
See the scripts in scripts/eval/scripts_wikiann/pilot_*_.sh as examples for evaluating the adapted models on WikiANN.