-
Kikuyu
-
Ganda
-
Install Anaconda or Miniconda Package Manager from here
-
Create a new virtual environment and install packages.
conda create -n transformers python pandas tqdm
conda activate transformers
If using cuda:
conda install pytorch cudatoolkit=10.1 -c pytorch
else:
conda install pytorch cpuonly -c pytorch
-
Install simpletransformers.
pip install simpletransformers
- Download the compressed model files from the link and extract to the
models/
directory. (E.g.models/kikuyu_baseline
) - Run
test_language_model.py
.- Change the
language
variable to either"kikuyu"
or"ganda"
depending on the requirement. - Change the string in line 24 of
test_language_model.py
to test different sentences. The string may contain one<mask>
token which the model will attempt to predict.
- Change the
- Download the compressed model files from the link and extract to the
models/
directory. (E.g.models/ganda-gpt2
) - Run
test_language_generation.py
.