Instructions to use PaulLerner/dpr_context_encoder_triviaqa_without_viquae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PaulLerner/dpr_context_encoder_triviaqa_without_viquae with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, DPRContextEncoder tokenizer = AutoTokenizer.from_pretrained("PaulLerner/dpr_context_encoder_triviaqa_without_viquae") model = DPRContextEncoder.from_pretrained("PaulLerner/dpr_context_encoder_triviaqa_without_viquae", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1 opened almost 2 years ago
by
SFconvertbot