--- license: apache-2.0 language: - en - fr - de - es - it - nl - ru - tr - el - ca pipeline_tag: translation tags: - translation - onnx - opus-mt base_model: - Helsinki-NLP/opus-mt_tiny_eng-fra - Helsinki-NLP/opus-mt_tiny_fra-eng - Helsinki-NLP/opus-mt_tiny_eng-deu - Helsinki-NLP/opus-mt_tiny_deu-eng - Helsinki-NLP/opus-mt_tiny_eng-spa - Helsinki-NLP/opus-mt_tiny_spa-eng - Helsinki-NLP/opus-mt_tiny_eng-ita - Helsinki-NLP/opus-mt_tiny_ita-eng - Helsinki-NLP/opus-mt_tiny_eng-nld - Helsinki-NLP/opus-mt_tiny_nld-eng - Helsinki-NLP/opus-mt_tiny_eng-rus - Helsinki-NLP/opus-mt_tiny_rus-eng - Helsinki-NLP/opus-mt_tiny_eng-tur - Helsinki-NLP/opus-mt_tiny_tur-eng - Helsinki-NLP/opus-mt_tiny_eng-ell - Helsinki-NLP/opus-mt_tiny_ell-eng - Helsinki-NLP/opus-mt_tiny_eng-cat - Helsinki-NLP/opus-mt_tiny_cat-eng --- # 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](https://huggingface.co/Helsinki-NLP), trained with [OpusDistillery](https://github.com/Helsinki-NLP/OpusDistillery) on [Tatoeba](https://github.com/Helsinki-NLP/Tatoeba-Challenge) data. Each folder's `verso.json` names the exact source repo, for example [Helsinki-NLP/opus-mt_tiny_fra-eng](https://huggingface.co/Helsinki-NLP/opus-mt_tiny_fra-eng).