PyTorch library for sequence-to-sequence translation
Top 43.5% on sourcepulse
PyTorch Translate is a deprecated library for machine translation built on PyTorch, offering sequence-to-sequence model training and export capabilities to Caffe2 via ONNX for production deployment. It targets researchers and engineers working with PyTorch-based NLP models, providing a framework for training and evaluating translation systems.
How It Works
The library leverages the fairseq framework for its core sequence-to-sequence modeling. It allows for training and evaluation of translation models, with a key feature being the export of trained models to Caffe2 graphs using ONNX. This enables deployment in C++ environments, with components like the encoder and decoder exportable separately, and beam search implemented in C++.
Quick Start & Requirements
python setup.py install
after installing PyTorch and fairseq.sudo docker pull pytorch/translate
followed by sudo nvidia-docker run -i -t --rm pytorch/translate /bin/bash
.Highlighted Details
Maintenance & Community
The project is explicitly marked as deprecated, recommending users switch to fairseq. Contributions are welcomed, with a CONTRIBUTING.md
file available.
Licensing & Compatibility
BSD-licensed, allowing for commercial use and integration with closed-source projects.
Limitations & Caveats
The project is deprecated and no longer actively maintained, with users advised to migrate to fairseq. Research models are explicitly noted as works in progress and unsupported.
2 years ago
Inactive