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 ·
e84d19c
1
Parent(s): e09df91
Update README.md
Browse files29 unmodified lines30313233343529 unmodified linesname: totalverified: trueverifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGFkMmI2ODM0NmY5NGNkNmUxYWViOWYxZDNkY2EzYWFmOWI4N2VhYzY5MGEzMTVhOTU4Zjc4YWViOGNjOWJjMCIsInZlcnNpb24iOjF9.fexrU1icJK5_MiifBtZWkeUvpmFISqBLDXSQJ8E6UnrRof-7cU0s4tX_dIsauHWtUpIHMPZCf5dlMWQKXZuAAA---# roberta-base for QA29 unmodified lines3031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914029 unmodified linesname: totalverified: trueverifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGFkMmI2ODM0NmY5NGNkNmUxYWViOWYxZDNkY2EzYWFmOWI4N2VhYzY5MGEzMTVhOTU4Zjc4YWViOGNjOWJjMCIsInZlcnNpb24iOjF9.fexrU1icJK5_MiifBtZWkeUvpmFISqBLDXSQJ8E6UnrRof-7cU0s4tX_dIsauHWtUpIHMPZCf5dlMWQKXZuAAA- task:type: question-answeringname: Question Answeringdataset:name: squadtype: squadconfig: plain_textsplit: validationmetrics:- type: exact_matchvalue: 85.289name: Exact Match- type: f1value: 91.841name: F1- task:type: question-answeringname: Question Answeringdataset:name: adversarial_qatype: adversarial_qaconfig: adversarialQAsplit: validationmetrics:- type: exact_matchvalue: 29.500name: Exact Match- type: f1value: 40.367name: F1- task:type: question-answeringname: Question Answeringdataset:name: squad_adversarialtype: squad_adversarialconfig: AddOneSentsplit: validationmetrics:- type: exact_matchvalue: 78.567name: Exact Match- type: f1value: 84.469name: F1- task:type: question-answeringname: Question Answeringdataset:name: squadshifts amazontype: squadshiftsconfig: amazonsplit: testmetrics:- type: exact_matchvalue: 69.924name: Exact Match- type: f1value: 83.284name: F1- task:type: question-answeringname: Question Answeringdataset:name: squadshifts new_wikitype: squadshiftsconfig: new_wikisplit: testmetrics:- type: exact_matchvalue: 81.204name: Exact Match- type: f1value: 90.595name: F1- task:type: question-answeringname: Question Answeringdataset:name: squadshifts nyttype: squadshiftsconfig: nytsplit: testmetrics:- type: exact_matchvalue: 82.931name: Exact Match- type: f1value: 90.756name: F1- task:type: question-answeringname: Question Answeringdataset:name: squadshifts reddittype: squadshiftsconfig: redditsplit: testmetrics:- type: exact_matchvalue: 71.550name: Exact Match- type: f1value: 82.939name: F1---# roberta-base for QA
README.md+105