Question Answering
Transformers
PyTorch
Safetensors
English
deberta-v2
deberta
deberta-v3
deberta-v3-large
Eval Results (legacy)
Instructions to use deepset/deberta-v3-large-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepset/deberta-v3-large-squad2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="deepset/deberta-v3-large-squad2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("deepset/deberta-v3-large-squad2") model = AutoModelForQuestionAnswering.from_pretrained("deepset/deberta-v3-large-squad2") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
#2
by sjrhuschlee - opened
README.md
CHANGED
|
@@ -34,7 +34,7 @@ This is the [deberta-v3-large](https://huggingface.co/microsoft/deberta-v3-large
|
|
| 34 |
|
| 35 |
|
| 36 |
## Overview
|
| 37 |
-
**Language model:**
|
| 38 |
**Language:** English
|
| 39 |
**Downstream-task:** Extractive QA
|
| 40 |
**Training data:** SQuAD 2.0
|
|
@@ -62,11 +62,10 @@ max_query_length=64
|
|
| 62 |
### In Haystack
|
| 63 |
Haystack is an NLP framework by deepset. You can use this model in a Haystack pipeline to do question answering at scale (over many documents). To load the model in [Haystack](https://github.com/deepset-ai/haystack/):
|
| 64 |
```python
|
| 65 |
-
reader = FARMReader(model_name_or_path="deepset/
|
| 66 |
# or
|
| 67 |
-
reader = TransformersReader(model_name_or_path="deepset/
|
| 68 |
```
|
| 69 |
-
For a complete example of ``roberta-base-squad2`` being used for Question Answering, check out the [Tutorials in Haystack Documentation](https://haystack.deepset.ai/tutorials/first-qa-system)
|
| 70 |
|
| 71 |
### In Transformers
|
| 72 |
```python
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
## Overview
|
| 37 |
+
**Language model:** deberta-v3-large
|
| 38 |
**Language:** English
|
| 39 |
**Downstream-task:** Extractive QA
|
| 40 |
**Training data:** SQuAD 2.0
|
|
|
|
| 62 |
### In Haystack
|
| 63 |
Haystack is an NLP framework by deepset. You can use this model in a Haystack pipeline to do question answering at scale (over many documents). To load the model in [Haystack](https://github.com/deepset-ai/haystack/):
|
| 64 |
```python
|
| 65 |
+
reader = FARMReader(model_name_or_path="deepset/deberta-v3-large-squad2")
|
| 66 |
# or
|
| 67 |
+
reader = TransformersReader(model_name_or_path="deepset/deberta-v3-large-squad2",tokenizer="deepset/deberta-v3-large-squad2")
|
| 68 |
```
|
|
|
|
| 69 |
|
| 70 |
### In Transformers
|
| 71 |
```python
|