PyMarian: Fast Neural Machine Translation and Evaluation in Python

Thamme Gowda, Roman Grundkiewicz, Elijah Rippeth, Matt Post, Marcin Junczys-Dowmunt
8/15/2024
cs.CL

No confident code implementation found for this paper.

Abstract

The deep learning language of choice these days is Python; measured by factors such as available libraries and technical support, it is hard to beat. At the same time, software written in lower-level programming languages like C++ retain advantages in speed. We describe a Python interface to Marian NMT, a C++-based training and inference toolkit for sequence-to-sequence models, focusing on machine translation. This interface enables models trained with Marian to be connected to the rich, wide range of tools available in Python. A highlight of the interface is the ability to compute state-of-the-art COMET metrics from Python but using Marian's inference engine, with a speedup factor of up to 7.8$\times$ the existing implementations. We also briefly spotlight a number of other integrations, including Jupyter notebooks, connection with prebuilt models, and a web app interface provided with the package. PyMarian is available in PyPI via $\texttt{pip install pymarian}$.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gowda2024pymarian,
  title  = {PyMarian: Fast Neural Machine Translation and Evaluation in Python},
  author = {Thamme Gowda and Roman Grundkiewicz and Elijah Rippeth and Matt Post and Marcin Junczys-Dowmunt},
  year   = {2024},
  eprint = {2408.11853},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.11853v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.11853.svg)](https://codeofpaper.com/paper/2408.11853)

Discussion