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:
# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
b4c2cca
1
Parent(s): 7dc4b2b
Upload vocab.txt
Browse files
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|