Instructions to use google/umt5-xxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/umt5-xxl with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("google/umt5-xxl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
Yesterday
-
Use PreTrainedTokenizerFast so the fix also applies on transformers v4, and regenerate with legacy=True
Verified signatured96b592 -
Regenerate the tokenizer.json pipeline from spiece.model
Verified signature`spiece.model` keeps whitespace (`remove_extra_whitespaces: false`) and uses byte fallback, but `tokenizer.json` collapses repeated spaces and has `byte_fallback: false`, and `transformers` v5 additionally rebuilds the T5 pipeline with a whitespace split. Tabs and newlines are lost: | text | `spiece.model` | current (`transformers` v5) | with this PR | |---|---|---|---| | `a\tb` | `▁a`, `<0x09>`, `b` | `▁a`, `▁b` | `▁a`, `<0x09>`, `b` | | `line one\nline two` | `▁line`, `▁one`, `<0x0A>`, `line`, `▁two` | `▁line`, `▁one`, `▁line`, `▁two` | `▁line`, `▁one`, `<0x0A>`, `line`, `▁two` | | `two spaces` | `▁two`, `▁`, `▁spaces` | `▁two`, `▁spaces` | `▁two`, `▁`, `▁spaces` | This PR replaces the normalizer, pre-tokenizer and decoder in `tokenizer.json` with the ones `transformers` generates from `spiece.model`, turns on `byte_fallback`, and sets `"tokenizer_class": "TokenizersBackend"` in `tokenizer_config.json`, as suggested by the transformers maintainers in huggingface/transformers#51269…5d1f261
-
Create README.md
66cb9e7 -
Upload UMT5ForConditionalGeneration
47c7135 -
Upload tokenizer
e3a05da
-
Upload tokenizer
0edc241 -
Upload tokenizer
1afa48b -
Upload tokenizer
ae965d5 -
Upload tokenizer
8eb04b9 -
Upload tokenizer
dd21015 -
Upload tokenizer
eb8e3c5 -
Upload tokenizer
baa864d -
Upload tokenizer
2aa4dd2 -
initial commit
44b74ff