Instructions to use X-Wang/pruned-mt5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use X-Wang/pruned-mt5-small with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("X-Wang/pruned-mt5-small") model = AutoModelForSeq2SeqLM.from_pretrained("X-Wang/pruned-mt5-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download spiece.model from X-Wang/pruned-mt5-small: direct link, hf CLI and curl.
- Browser
- Download file 928 kB
-
https://huggingface.co/X-Wang/pruned-mt5-small/resolve/main/spiece.model
- Command line
-
hf download hf://X-Wang/pruned-mt5-small/spiece.model
-
curl -L -o spiece.model https://huggingface.co/X-Wang/pruned-mt5-small/resolve/main/spiece.model
928 kB
- Xet hash:
- 8657ecc98bd8ddba42d4e0e0c5c7f354ed15fa38a43761aa6d9d08699e1f0dd7
- Size of remote file:
- 928 kB
- SHA256:
- de4b781d90f027ff34a8c5fb987d2e1f1134f3460e395599f8822cc95a142d51
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.