ONNX Model Zoo

ObaidaBit/opus-mt-en-ar-onnx

By ObaidaBit · ↓ 0 · ♥ 0 · Updated 2026-03-08

What's in this repo

This page lists the files in ObaidaBit/opus-mt-en-ar-onnx, including decoder_model.onnx, encoder_model.onnx.

  • 2 ONNX models (.onnx files)
  • 8 files, including 2 .onnx, 2 .spm, 2 .json, 1 .md
  • Last updated 2026-03-08

ONNX files

File Size Download
decoder_model.onnx — Download
encoder_model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

opus-mt-en-ar (ONNX)

ONNX export of Helsinki-NLP/opus-mt-en-ar for on-device inference on Android.

Files

File Description
encoder_model.onnx Encodes the input sentence
decoder_model.onnx Generates the translated tokens
source.spm Source language (English) tokenizer
target.spm Target language (Arabic) tokenizer

Usage in Android

Download the files and run inference with ONNX Runtime for Android.

Encoder input:  input_ids, attention_mask
Encoder output: encoder_hidden_states

Decoder input:  decoder_input_ids, encoder_hidden_states, encoder_attention_mask
Decoder output: logits

Run the encoder once per sentence, then loop the decoder to generate tokens until the EOS token is produced.

Credits

Original model by Helsinki-NLP, trained on OPUS data.
ONNX conversion by [YOUR_NAME].

License

CC-BY 4.0 — same as the original model.

Model info

onnx translation marian android en ar license:cc-by-4.0 region:us
↓ 0 ♥ 0

Created: 2026-03-08

Updated: 2026-03-08

View on Hugging Face

Files (8)

.gitattributes
README.md
decoder_model.onnx ONNX
encoder_model.onnx ONNX
source.spm
target.spm
tokenizer_config.json
vocab.json

Related models