Upload folder using huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---license: apache-2.0language: - en - fr - de - es - it - nl - ru - tr - el - capipeline_tag: translationtags: - translation - onnx - opus-mtbase_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).README.mdAdded+78