Question Answering
Transformers
PyTorch
TensorFlow
Rust
Safetensors
OpenVINO
English
distilbert
Eval Results (legacy)
Instructions to use distilbert/distilbert-base-cased-distilled-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distilbert/distilbert-base-cased-distilled-squad with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="distilbert/distilbert-base-cased-distilled-squad", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("distilbert/distilbert-base-cased-distilled-squad") model = AutoModelForQuestionAnswering.from_pretrained("distilbert/distilbert-base-cased-distilled-squad", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Updates incorrect tokenizer configuration file (#10)
Browse files- Adds tokenizer_config.json file (8de8ffb66f5ebf6cf293d02d5170c064e3e86fbd)
- tokenizer_config.json +1 -3
tokenizer_config.json
CHANGED
|
@@ -1,3 +1 @@
|
|
| 1 |
-
{
|
| 2 |
-
"do_lower_case": false
|
| 3 |
-
}
|
|
|
|
| 1 |
+
{"do_lower_case": false, "model_max_length": 512}
|
|
|
|
|
|