Instructions to use facebook/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 facebook/dpr-ctx_encoder-single-nq-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, DPRContextEncoder tokenizer = AutoTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") model = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.b5380dc
-
inference: false
bb21a3c -
Add model card (#1)
- Add model card (0104a42effcd0c015a1838b785be9e3898142476) - add model name (0685b1e4c8444745b7d498ff200924bbbcf5a488) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>8331db4
-
Add tokenizer config
Thomas Wolfaa2a11a -
Add tokenizer file
Thomas Wolff086944 -
Add vocab
Thomas Wolf48e6449
-
Add TensorFlow model
be5b858
-
Update .DS_Store
c145d5f -
Update config.json
aff229c -
Update pytorch_model.bin
2bc0991
-
Update config.json
530f41f
-
Update config.json
93ce1e0 -
Update config.json
4cbd752
-
Update config.json
9322279 -
Update .DS_Store
32e4afa -
Update config.json
5a93a19 -
initial commit
025a9da