Instructions to use willwade/byt5-g2p-multilingual-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use willwade/byt5-g2p-multilingual-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="willwade/byt5-g2p-multilingual-tiny")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("willwade/byt5-g2p-multilingual-tiny") model = AutoModelForSeq2SeqLM.from_pretrained("willwade/byt5-g2p-multilingual-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ByT5 multilingual G2P (tiny) β 17M params
Byte-level seq2seq, 136 variety-keyed languages (eng-US/eng-UK, por-BR/por-PT, spa-ES/spa-LatAm, Welsh N/S, Armenian E/W, Bengali varieties, 20+ Sinitic splits). Trained on a 3.02M-pair corpus (WikiPron CC BY-SA + gruut MIT, dialect splits preserved) with language-balanced sampling.
Input: <lang>: word (ISO-639-3, variety-suffixed where
split β <eng-US>: hello, <spa-ES>: abeja). Output: space-separated
IPA in gruut/WikiPron conventions (h Ι l ΛoΚ) β what piper-family
voices consume directly.
Results (4k stratified test sample)
| score | |
|---|---|
| micro exact | 0.729 |
| macro exact | 0.654 |
| token error rate | 0.139 |
The tiny (17M) matches the small (300M) within noise on this task at 1/18th the size β see the sibling repo. Model artifacts: ~~70 MB.
Files
- HF-format weights at root
onnx/β validated encoder+decoder pair. Consume withonnx_reference.py(a minimal correct consumer). CRITICAL conventions: token id = byte + 3; EOS appended to encoder input; decoder needs an explicit causal mask and a length-2 bootstrap β the reference script encodes all of them.
Use as a tier
Built for floravox as the neural OOV tier behind FST lexicons and per-language Phonetisaurus WFSTs; cached in practice.
Licence
CC BY-SA 4.0 (share-alike inherited from WikiPron training data). Attribution: Wiktionary/WikiPron (CUNY-CL), gruut (rhasspy), Google byt5 base (Apache-2.0). Training code: voicegarden-lexicons/scripts/train_byt5.
- Downloads last month
- 48
Model tree for willwade/byt5-g2p-multilingual-tiny
Base model
google/byt5-small