Instructions to use facebook/dpr-question_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-question_encoder-single-nq-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="facebook/dpr-question_encoder-single-nq-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/dpr-question_encoder-single-nq-base") model = AutoModel.from_pretrained("facebook/dpr-question_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.203acca
-
Update README.md
d04a52f -
Add model card (#1)
- Add model card (133d0290c930cb09a7692783d052edd09256012e) - add model name (bbdc406d2539857d646ff7cf1ca8641f3c7ee2f2) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>a5362f2
-
Add tokenizer config
Thomas Wolf7fee798 -
Add vocab
Thomas Wolf17cabc1
-
add tf model
d7d7ca1
-
Update .DS_Store
b1a3f9a -
Update config.json
c92a122 -
Update pytorch_model.bin
f07dd9c
-
Update config.json
49a8bdd
-
Update config.json
5873541 -
Update config.json
5598da5
-
Update config.json
b870427 -
Update config.json
2c8088e -
initial commit
025a9da