Translate is an open source project based on Facebook's machine translation systems. It uses a sequence-to-sequence model, and is based on fairseq-py, a sequence modeling toolkit for training custom models for translation, summarization, dialog, and other text generation tasks.
Translate provides the ability to train a sequence-to-sequence model with attention, a method to export this model to Caffe2 for production using ONNX - an open format for representing deep learning models - and sample C++ code to load the exported model and run inference via beam search.
An example model is provided to demonstrate this capability. Currently, the encoder and the decoder step networks are exported separately, and beam search is implemented in C++.
PyTorch is an open source deep learning framework built to be flexible and modular for research, with the stability and support needed for production deployment. It enables fast, flexible experimentation through a tape-based autograd system designed for immediate and python-like execution.