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 from transformers import pipeline pipe = pipeline("question-answering", model="deepset/roberta-base-squad2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("deepset/roberta-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("deepset/roberta-base-squad2") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -163,6 +163,7 @@ lr_schedule = LinearWarmup
|
|
| 163 |
warmup_proportion = 0.2
|
| 164 |
doc_stride=128
|
| 165 |
max_query_length=64
|
|
|
|
| 166 |
```
|
| 167 |
|
| 168 |
## Using a distilled model instead
|
|
|
|
| 163 |
warmup_proportion = 0.2
|
| 164 |
doc_stride=128
|
| 165 |
max_query_length=64
|
| 166 |
+
min_lengh=100
|
| 167 |
```
|
| 168 |
|
| 169 |
## Using a distilled model instead
|