On-device translation packs for Verso, an EPUB reader. Each pack is a bidirectional pair with English, exported from a Helsinki-NLP OPUS-MT tiny Marian model to ONNX for ONNX Runtime Web.
These are converted weights, not new training. The source model for each folder is recorded in that folder's verso.json.
French, German, Spanish, Italian, Dutch, Russian, Turkish, Greek, and Catalan. Every language has both directions, eng-* and *-eng. English is always the other side.
index.json lists each model and the byte size of its files. One folder per direction contains:
| File | Contents |
|---|---|
encoder.onnx |
Source token ids and attention mask to encoder states |
decoder.onnx |
Encoder states and the target prefix to next-token logits and cross-attention |
embeddings.bin |
Shared 8-bit word table, read by both graphs as external data |
tokenizer.json, tokenizer_config.json, config.json |
Tokenizer |
verso.json |
Source repo id and the token ids the reader uses to decode |
MatMul and Gather weights are dynamically quantized to 8-bit. The embedding table is stored once because Marian ties the encoder embeddings, the decoder embeddings, and the output layer.
Point the reader at this repo:
VITE_MODEL_URL=https://huggingface.co/SimonAkesson/verso-models/resolve/main
The app downloads index.json, then the files for the language the reader chooses, and runs them locally with ONNX Runtime Web.
Apache-2.0, the license on the Helsinki-NLP OPUS-MT tiny model cards these packs were exported from.
Original models by Helsinki-NLP, trained with OpusDistillery on Tatoeba data. Each folder's verso.json names the exact source repo, for example Helsinki-NLP/opus-mt_tiny_fra-eng.
opus-mt_tiny_cat-eng/embeddings.bin 8 MBopus-mt_tiny_deu-eng/embeddings.bin 8 MBopus-mt_tiny_ell-eng/embeddings.bin 8 MBopus-mt_tiny_eng-cat/embeddings.bin 8 MBopus-mt_tiny_eng-deu/embeddings.bin 8 MBopus-mt_tiny_eng-ell/embeddings.bin 8 MBopus-mt_tiny_eng-fra/embeddings.bin 8 MBopus-mt_tiny_eng-ita/embeddings.bin 8 MBopus-mt_tiny_eng-nld/embeddings.bin 8 MBopus-mt_tiny_eng-rus/embeddings.bin 8 MBopus-mt_tiny_eng-spa/embeddings.bin 8 MBopus-mt_tiny_eng-tur/embeddings.bin 8 MBopus-mt_tiny_fra-eng/embeddings.bin 8 MBopus-mt_tiny_ita-eng/embeddings.bin 8 MBopus-mt_tiny_nld-eng/embeddings.bin 8 MBopus-mt_tiny_rus-eng/embeddings.bin 8 MBopus-mt_tiny_spa-eng/embeddings.bin 8 MBopus-mt_tiny_tur-eng/embeddings.bin 8 MBopus-mt_tiny_tur-eng/encoder.onnx 7 MBopus-mt_tiny_ell-eng/encoder.onnx 7 MBopus-mt_tiny_rus-eng/encoder.onnx 7 MBopus-mt_tiny_eng-nld/encoder.onnx 7 MBopus-mt_tiny_eng-spa/encoder.onnx 7 MBopus-mt_tiny_eng-ell/encoder.onnx 7 MBopus-mt_tiny_eng-fra/encoder.onnx 7 MBopus-mt_tiny_eng-ita/encoder.onnx 7 MBopus-mt_tiny_spa-eng/encoder.onnx 7 MBopus-mt_tiny_eng-deu/encoder.onnx 7 MBopus-mt_tiny_eng-cat/encoder.onnx 7 MBopus-mt_tiny_ita-eng/encoder.onnx 7 MBopus-mt_tiny_eng-rus/encoder.onnx 7 MBopus-mt_tiny_eng-tur/encoder.onnx 7 MBopus-mt_tiny_fra-eng/encoder.onnx 7 MBopus-mt_tiny_cat-eng/encoder.onnx 7 MBopus-mt_tiny_nld-eng/encoder.onnx 7 MBopus-mt_tiny_deu-eng/encoder.onnx 7 MBopus-mt_tiny_eng-spa/decoder.onnx 3 MBopus-mt_tiny_eng-cat/decoder.onnx 3 MBopus-mt_tiny_spa-eng/decoder.onnx 3 MBopus-mt_tiny_tur-eng/decoder.onnx 3 MBopus-mt_tiny_eng-nld/decoder.onnx 3 MBopus-mt_tiny_ita-eng/decoder.onnx 3 MBopus-mt_tiny_ell-eng/decoder.onnx 3 MBopus-mt_tiny_eng-fra/decoder.onnx 3 MBopus-mt_tiny_cat-eng/decoder.onnx 3 MBopus-mt_tiny_deu-eng/decoder.onnx 3 MBopus-mt_tiny_eng-deu/decoder.onnx 3 MBopus-mt_tiny_eng-rus/decoder.onnx 3 MBopus-mt_tiny_eng-ell/decoder.onnx 3 MBopus-mt_tiny_eng-ita/decoder.onnx 3 MBopus-mt_tiny_eng-tur/decoder.onnx 3 MBopus-mt_tiny_fra-eng/decoder.onnx 3 MBopus-mt_tiny_nld-eng/decoder.onnx 3 MBopus-mt_tiny_rus-eng/decoder.onnx 3 MBHelsinki-NLP/opus-mt_tiny_cat-eng