SuperAPI AI Directory

sockeye

Automatic Translation Framework

Open website

About this tool

Purpose: Sockeye is an open-source sequence-to-sequence framework for neural machine translation (NMT), built on PyTorch, implementing distributed training and optimized inference, used to train and deploy machine translation models, and has supported translation applications such as Amazon Translate.

Main capabilities: Provides command-line tools for training, translating, and scoring standard NMT models (sockeye-train, sockeye-translate, sockeye-score); supports distributed training and optimized inference; version 3.0.x is compatible with both PyTorch and MXNet 2.x, and provides the MXNet-to-PyTorch model conversion tool sockeye.mx_to_pt; starting from 3.1.x, only PyTorch is supported, and MXNet 2.x support is removed.

Usage: It can be used after installing the sockeye module and its dependencies; for faster GPU training, NVIDIA Apex can be installed, and NVIDIA also provides a PyTorch Docker container that includes Apex. To train a standard NMT model, refer to the WMT 2014 English-German tutorial. Starting from 3.0.0, each CLI uses PyTorch by default, and the MXNet version CLIs are accessed via sockeye-{train,translate,score}-mx. If using MXNet, MXNet 2.x needs to be installed.

Applicable scenarios: Machine translation research and production applications in academia and industry, including low-resource translation, domain adaptation, terminology-constrained translation, gender tagging, formal control, and other directions, and has been adopted by many papers.

Limitations: The project has entered maintenance mode and no new features will be added. Models from 3.1.x and 2.3.x (MXNet) are incompatible; converting MXNet models to PyTorch is only applicable to models that have already been trained for inference, and does not support continued training (training and optimizer states are not converted). sockeye.mx_to_pt requires MXNet to be installed in the environment.