Open a command line, go to the directory of the project, for example:
cd /home/student/PATH-TO-PROJECT
Check that conda is installed and working:
conda --version
(this command should show the version of conda installed in your system, e.g. conda 4.13.0
)
Create a new environment using the file environment.yml
:
conda env create -f environment.yml
Activate the environment:
conda activate transformers
Register the new environment as a kernel for Jupyter notebook:
python -m ipykernel install --user --name=transformers
Finally, open this notebook on Jupyter and check if all cells run without exceptions: 1.Environment-Setup.ipynb
If the setup does not work, you still should be able to open the notebook on Google Colab:
1.Environment-Setup.ipynb: Colab Link
2.BagOfWords.ipynb: Colab Link
3.Word2Vec.ipynb: Colab Link
4.1.Transformer-Train.ipynb: Colab Link
4.2.Transformer-Test.ipynb: Colab Link
5.Translate.ipynb: Colab Link