Currently NMTG requires PyTorch version >= 1.8.0. Best is 1.10.0 Please follow the instructions here: https://github.com/pytorch/pytorch#installation.
After PyTorch is installed, you can install the requirements with:
pip install -r requirements.txt
NMTG supports a couple of modules written using custom Pytorch/C++/CUDA modules to utilize GPU better and reduce overheads, including:
Installation requires CUDA and nvcc with the same version with PyTorch. Its possible to install CUDA from conda via:
conda install -c nvidia/label/cuda-11.3.1 cuda-toolkit
or if using a custom version with CUDA 11.5
conda install -c nvidia/label/cuda-11.5.2 cuda-toolkit
(depending on the CUDA version that comes with your PyTorch)
And then navigate to the extension modules and install nmtgminor-cuda via
cd onmt/modules/extension
python setup.py install
Without this step, all modules backoff to PyTorch versions.
Python
71.5%
Cuda
18.0%
C++
10.3%
Currently NMTG requires PyTorch version >= 1.8.0. Best is 1.10.0 Please follow the instructions here: https://github.com/pytorch/pytorch#installation.
After PyTorch is installed, you can install the requirements with:
pip install -r requirements.txt
NMTG supports a couple of modules written using custom Pytorch/C++/CUDA modules to utilize GPU better and reduce overheads, including:
Installation requires CUDA and nvcc with the same version with PyTorch. Its possible to install CUDA from conda via:
conda install -c nvidia/label/cuda-11.3.1 cuda-toolkit
or if using a custom version with CUDA 11.5
conda install -c nvidia/label/cuda-11.5.2 cuda-toolkit
(depending on the CUDA version that comes with your PyTorch)
And then navigate to the extension modules and install nmtgminor-cuda via
cd onmt/modules/extension
python setup.py install
Without this step, all modules backoff to PyTorch versions.
Python
71.5%
Cuda
18.0%
C++
10.3%