ObaidaBit/opus-mt-de-ar-onnx
By ObaidaBit · ↓ 0 · ♥ 0 · Updated 2026-03-08
What's in this repo
This page lists the files in ObaidaBit/opus-mt-de-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
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-de-ar (ONNX)
ONNX export of Helsinki-NLP/opus-mt-de-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 (German) 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
Created: 2026-03-08
Updated: 2026-03-08
View on Hugging Face