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
-
Add TF weights
Joao GanteValidated by the `pt_to_tf` CLI. Max crossload output difference=2.337e-05; Max converted output difference=2.337e-05.0855ed4
-
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