安装

Standard

1. Install Torch

2. Install additional dependencies:

luarocks install tds
luarocks install bit32 # if using LuaJIT

3. Clone the OpenNMT repository:

git clone https://github.com/OpenNMT/OpenNMT
cd OpenNMT

And you are ready to go! Take a look at the quickstart to familiarize yourself with the main training workflow.

Docker

1. Install nvidia-docker if using GPUs

2. Pull and run the latest OpenNMT image:

sudo nvidia-docker run -it opennmt/opennmt:latest

3. Clone the OpenNMT repository:

git clone https://github.com/OpenNMT/OpenNMT ~/OpenNMT
cd ~/OpenNMT

Amazon EC2

最好的办法就是通过 Docker。 我们提供一个安装了初步CUDA驱动程序的公共AMI: ami-c12f86a1. 使用此AMI启动P2 / G2 GPU实例,并运行上面提到的 nvidia-docker 命令即可开始。