NM-20 / CTranslate2Test

Quick implementation/experimentation with OpenNMT's CTranslate2 library, primarily meant to just serve as an example of the core setup that is required.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CTranslate2Test

Quick implementation/experimentation with OpenNMT's CTranslate2 library, primarily meant to just serve as an example of the core setup that is required.

Compiling

Prerequisites

Ensure you have extracted cuDNN within your CUDA Developer Toolkit installation and that such libraries are within the system PATH, then: git clone --recursive "https://github.com/NM-20/CTranslate2Test.git". The converted model should be placed within the TranslateTest project's "res" directory.

Compile the libraries within externals, ensuring that CTranslate2 is compiled with the following settings: -G "Visual Studio 16 2019" -DOPENMP_RUNTIME=COMP -DWITH_CUDA=ON -DWITH_CUDNN=ON -DWITH_MKL=OFF

From there, you may proceed with building the TranslateTest project in VS 2022.

About

Quick implementation/experimentation with OpenNMT's CTranslate2 library, primarily meant to just serve as an example of the core setup that is required.

License:Other


Languages

Language:C++ 99.8%Language:C 0.2%