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
-
add model name
Marissa Gerchickbbdc406 -
Add model card
Hi! This PR has a preliminary model card, based on the format we are using as part of our effort to standardize model cards at Hugging Face. It is very similar to the proposed model card at https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base/discussions/1 Feel free to merge if you are ok with the changes! (cc @Ezi @Meg @Nazneen)133d029
-
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