Verso translation packs

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.

Languages

French, German, Spanish, Italian, Dutch, Russian, Turkish, Greek, and Catalan. Every language has both directions, eng-* and *-eng. English is always the other side.

Layout

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.

Use

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.

License

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.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for SimonAkesson/verso-models

Quantized
(2)
this model