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")# 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") - Notebooks
- Google Colab
- Kaggle
FileNotFoundError: [Errno 2] No such file or directory: '/models/facebook-dpr-question_encoder-single-nq-base/1_Pooling/config.json'
#3
by MHouse - opened
I want to replicate a GitHub project locally.
the source code is:
but when I use the 'SentenceTransformer' to load local model, it raise error: No such file or directory: '/models/facebook-dpr-question_encoder-single-nq-base/1_Pooling/config.json'
but I didn't see any dir named '1_Pooling'
What's the problem? the version? or sth else?