Instructions to use deepset/bert-base-cased-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepset/bert-base-cased-squad2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="deepset/bert-base-cased-squad2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("deepset/bert-base-cased-squad2") model = AutoModelForQuestionAnswering.from_pretrained("deepset/bert-base-cased-squad2") - Inference
- Notebooks
- Google Colab
- Kaggle
Update config.json
#7
by izzelbas - opened
- config.json +3 -1
config.json
CHANGED
|
@@ -18,5 +18,7 @@
|
|
| 18 |
"output_past": true,
|
| 19 |
"pad_token_id": 0,
|
| 20 |
"type_vocab_size": 2,
|
| 21 |
-
"vocab_size": 28996
|
|
|
|
|
|
|
| 22 |
}
|
|
|
|
| 18 |
"output_past": true,
|
| 19 |
"pad_token_id": 0,
|
| 20 |
"type_vocab_size": 2,
|
| 21 |
+
"vocab_size": 28996,
|
| 22 |
+
|
| 23 |
+
"pipeline_tag": "question-answering"
|
| 24 |
}
|