Instructions to use mqy/mt5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mqy/mt5-small with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="mqy/mt5-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("mqy/mt5-small") model = AutoModelForSeq2SeqLM.from_pretrained("mqy/mt5-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_args.bin from mqy/mt5-small: direct link, hf CLI and curl.
- Browser
- Download file 3.58 kB
-
https://huggingface.co/mqy/mt5-small/resolve/main/training_args.bin
- Command line
-
hf download hf://mqy/mt5-small/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/mqy/mt5-small/resolve/main/training_args.bin
3.58 kB
- Xet hash:
- f970cc23276c14e85eaced4e44f3c0a3ef5da63404278ddef4b3ab75490b4751
- Size of remote file:
- 3.58 kB
- SHA256:
- f65011f7ae378d9f5e44a1a2ccd170e62ebd5a63916521b3cc354467344e741f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.