Question Answering
Transformers
PyTorch
TensorFlow
JAX
Rust
Safetensors
English
roberta
Eval Results (legacy)
Instructions to use deepset/roberta-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepset/roberta-base-squad2 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="deepset/roberta-base-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("deepset/roberta-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("deepset/roberta-base-squad2", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Building out the model card!
Hi! This PR has some optional additions to your model card, based on the format we are using as part of our effort to standardize model cards at Hugging Face. In the future, we could build out the Uses section more, and let us know if you have a paper/report/repo you'd want to include for users to cite when they use the model! (cc @Ezi)075f5cd
-
Add TF weights (#3)
- Add TF weights (0855ed47567e7f34c7d3d7d61db26bdf1764bf07) Co-authored-by: Joao Gante <joaogante@users.noreply.huggingface.co>4dc572b
-
Add TF weights (#2)
- Add TF weights (a754c03c1bbe25f33ed526da45bdc31039509b00) Co-authored-by: Joao Gante <joaogante@users.noreply.huggingface.co>52a2b42
-
Fix typo
0e7b626
-
Update README.md
5e7a47e -
Update README.md
541c7e4 -
draft update for the model card
d3579a1
-
Update README.md
44f866d
-
Update README.md
6b033ce
-
add language tag
a44be10
-
Update README.md
e54a3df
-
Update README.md
201e820
-
Update README.md
6ac95bd
-
upload flax model
656ed24 -
allow flax
ff3e378
-
Update README.md
c422f9c
-
Add license info
21a5392
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/deepset/roberta-base-squad2/README.md325a3df
-
addition of Rust model
978c03c
-
Remove v1 files
Branden Chan6a03245 -
Update to v2
Branden Chandeedc3e
-
Update rust_model.ot
390d6ae
-
Update tokenizer_config.json
596edb0
-
Update config.json
4aa0450
-
Update saved_model.tar.gz
5914b82
-
Update config.json
784fa08
-
Update config.json
8f39c9f
-
Update pytorch_model.bin
f824cce -
Update modelcard.json
560154d
-
Update special_tokens_map.json
449cae8 -
Update config.json
0eb280a -
Update tokenizer_config.json
0534789 -
Update vocab.json
3474da8 -
Update merges.txt
bc24f6c -
initial commit
8eedce6