Instructions to use sonoisa/byt5-small-japanese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sonoisa/byt5-small-japanese with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, MT5ForConditionGeneration tokenizer = AutoTokenizer.from_pretrained("sonoisa/byt5-small-japanese") model = MT5ForConditionGeneration.from_pretrained("sonoisa/byt5-small-japanese", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K