Instructions to use google/mt5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/mt5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/mt5-base") model = AutoModelForSeq2SeqLM.from_pretrained("google/mt5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download spiece.model from google/mt5-base: direct link, hf CLI and curl.
- Browser
- Download file 4.31 MB
-
https://huggingface.co/google/mt5-base/resolve/main/spiece.model
- Command line
-
hf download hf://google/mt5-base/spiece.model
-
curl -L -o spiece.model https://huggingface.co/google/mt5-base/resolve/main/spiece.model
4.31 MB
This file contains binary data. It cannot be displayed, but you can still download it.