CoolFace
Modelpublic

inference4j/opus-mt-en-es

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes17downloads
Model Card

MarianMT English→Spanish — ONNX

ONNX export of Helsinki-NLP/opus-mt-en-es with encoder-decoder architecture and KV cache support.

Trained on the OPUS parallel corpus for English to Spanish translation.

Converted for use with inference4j, an inference-only AI library for Java.

Original Source

Usage with inference4j

java
try (var translator = MarianTranslator.builder()
        .modelId("inference4j/opus-mt-en-es").build()) {
    System.out.println(translator.translate("The weather is beautiful today."));
}

Model Details

PropertyValue
ArchitectureMarianMT encoder-decoder
Language pairEnglish → Spanish
Training dataOPUS
TokenizerSentencePiece
Original frameworkPyTorch (transformers)
Export methodHugging Face Optimum (encoder-decoder with KV cache)

License

This model is licensed under the Apache License 2.0. Original model by Helsinki-NLP.