Instructions to use hf-internal-testing/tiny-random-MT5ForQuestionAnswering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-MT5ForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" 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("question-answering", model="hf-internal-testing/tiny-random-MT5ForQuestionAnswering")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-MT5ForQuestionAnswering") model = AutoModelForQuestionAnswering.from_pretrained("hf-internal-testing/tiny-random-MT5ForQuestionAnswering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from hf-internal-testing/tiny-random-MT5ForQuestionAnswering: direct link, hf CLI and curl.
- Browser
- Download file 16.3 MB
-
https://huggingface.co/hf-internal-testing/tiny-random-MT5ForQuestionAnswering/resolve/e08cf2cd6853ea2e8d49ba6bc1e19fcbea1bf35d/tokenizer.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-MT5ForQuestionAnswering@e08cf2cd6853ea2e8d49ba6bc1e19fcbea1bf35d/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/hf-internal-testing/tiny-random-MT5ForQuestionAnswering/resolve/e08cf2cd6853ea2e8d49ba6bc1e19fcbea1bf35d/tokenizer.json
16.3 MB
- Xet hash:
- 702f3e9ccc6b61dd2345d6f4dc6949f06bc99e149672816411167314819745f1
- Size of remote file:
- 16.3 MB
- SHA256:
- 87a036c0dfd2d80e1202a7e2961aeee653ff63d67cd369b155c78a6e2003a390
路
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.