Question Answering
Transformers
PyTorch
TensorFlow
JAX
Rust
Safetensors
English
roberta
Eval Results (legacy)
Run this model with HF Jobs
Run deepset/roberta-base-squad2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/deepset/roberta-base-squad2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/deepset/roberta-base-squad2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 hidden state difference=2.337e-05; Max converted hidden state difference=2.337e-05.a754c03
-
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