--- library_name: onnx tags: - translation - marian - encoder-decoder - en - fr - onnx - inference4j license: apache-2.0 pipeline_tag: translation --- # MarianMT English→French — ONNX ONNX export of [Helsinki-NLP/opus-mt-en-fr](https://huggingface.co/Helsinki-NLP/opus-mt-en-fr) with encoder-decoder architecture and KV cache support. Trained on the OPUS parallel corpus for English to French translation. Converted for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java. ## Original Source - **Repository:** [Helsinki-NLP/opus-mt-en-fr](https://huggingface.co/Helsinki-NLP/opus-mt-en-fr) - **License:** Apache 2.0 ## Usage with inference4j ```java try (var translator = MarianTranslator.builder() .modelId("inference4j/opus-mt-en-fr").build()) { System.out.println(translator.translate("The weather is beautiful today.")); } ``` ## Model Details | Property | Value | |----------|-------| | Architecture | MarianMT encoder-decoder | | Language pair | English → French | | Training data | OPUS | | Tokenizer | SentencePiece | | Original framework | PyTorch (transformers) | | Export method | Hugging Face Optimum (encoder-decoder with KV cache) | ## License This model is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Original model by [Helsinki-NLP](https://huggingface.co/Helsinki-NLP).