Question Answering
Transformers
PyTorch
English
t5
text2text-generation
triviaqa
t5-base
lm-head
closed-book
pipeline:question-answering
text-generation-inference
Instructions to use deep-learning-analytics/triviaqa-t5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deep-learning-analytics/triviaqa-t5-base 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="deep-learning-analytics/triviaqa-t5-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("deep-learning-analytics/triviaqa-t5-base") model = AutoModelForSeq2SeqLM.from_pretrained("deep-learning-analytics/triviaqa-t5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.23bbc37
-
Update README.md
009d299 -
Update special_tokens_map.json
d102787 -
Update tokenizer_config.json
4995afa -
Update spiece.model
fbde7b1 -
Update pytorch_model.bin
4870323 -
Update config.json
452f43b -
Update tokenizer_config.json
17201cd -
Update README.md
cc235dc -
Update special_tokens_map.json
b3f1007 -
Update spiece.model
6bdd98f -
Update config.json
98c690c -
Update tokenizer_config.json
ec98f6b -
Update README.md
a174308 -
Update special_tokens_map.json
f689b73 -
Update spiece.model
9502c15 -
Update config.json
865a098 -
Update tokenizer_config.json
8254a2d -
Update README.md
42791ee -
Update special_tokens_map.json
08f5386 -
Update spiece.model
c21c529 -
Update config.json
f230793 -
Update README.md
63c2241 -
Update special_tokens_map.json
f4353a7 -
Update tokenizer_config.json
37ad922 -
Update spiece.model
02de2c2 -
Update config.json
98ea162 -
Update README.md
210bf36 -
Update tokenizer_config.json
c262143 -
Update special_tokens_map.json
4bc53fa -
Update spiece.model
87ce9ed -
Update config.json
a874cad -
initial commit
47839f7