How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoTokenizer, DPRContextEncoder

tokenizer = AutoTokenizer.from_pretrained("castorini/bpr-nq-ctx-encoder")
model = DPRContextEncoder.from_pretrained("castorini/bpr-nq-ctx-encoder")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

This model is converted from the original BPR repo and fitted into Pyserini:

Ikuya Yamada, Akari Asai, and Hannaneh Hajishirzi. 2021. Efficient passage retrieval with hashing for open-domain question answering. arXiv:2106.00882.

Downloads last month
38
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for castorini/bpr-nq-ctx-encoder