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
Question: edge/mobile deployment — anyone tested?
#37 opened 5 months ago
by
3morixd
TemporalMesh Transformer: 29.4 PPL at 48% compute — beats Mamba, new open-source architecture
#36 opened 6 months ago
by
vigneshwar234
Add link to Neuron-optimized version
#33 opened over 1 year ago
by
badaoui
GIVE IN LM STUDIO
#31 opened over 1 year ago
by
JAYESHWAR
How can I increase the length of the response?
#25 opened about 2 years ago
by
jcampbell-lst
Request: DOI
#24 opened about 2 years ago
by
Gotigoti1234
Issue: h5 file cannot be loaded by keras
#23 opened over 2 years ago
by
xqiuresearch
[AUTOMATED] Model Memory Requirements
#22 opened over 2 years ago
by
model-sizer-bot
please provide a example for load model use
1
#21 opened over 2 years ago
by
kaiwangfrancais
Update README.md
#20 opened over 2 years ago
by
BruceWayne1
Model Maximum Context length possible
1
#19 opened over 2 years ago
by
zera09
Question Answering without labels
2
#17 opened almost 3 years ago
by
mansoorhamidzadeh
Prompt structure and loss
#16 opened almost 3 years ago
by
codegood
How to load this model in java?
1
#15 opened about 3 years ago
by
AhmadMujtaba200210
what score is a good score
👍 9
#13 opened over 3 years ago
by
narenzen
🚩 Report
1
#11 opened almost 4 years ago
by
saddam
Building out the model card!
#4 opened over 4 years ago
by
Marissa
Building out the model card!
4
#1 opened over 4 years ago
by
Marissa