Instructions to use zhiweitong/dpr-ctx_encoder-single-nq-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zhiweitong/dpr-ctx_encoder-single-nq-base with Transformers:
# Load model directly from transformers import AutoTokenizer, DPRContextEncoder tokenizer = AutoTokenizer.from_pretrained("zhiweitong/dpr-ctx_encoder-single-nq-base") model = DPRContextEncoder.from_pretrained("zhiweitong/dpr-ctx_encoder-single-nq-base") - Notebooks
- Google Colab
- Kaggle
Commit ·
b3f11fd
1
Parent(s): b4c2cca
Update tokenizer_config.json
Browse files- tokenizer_config.json +2 -1
tokenizer_config.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"do_lower_case": true
|
|
|
|
| 3 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"do_lower_case": true,
|
| 3 |
+
"model_max_length": 512
|
| 4 |
}
|