Instructions to use PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, DPRContextEncoder tokenizer = AutoTokenizer.from_pretrained("PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder") model = DPRContextEncoder.from_pretrained("PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder: direct link, hf CLI and curl.
- Browser
- Download file 711 kB
-
https://huggingface.co/PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder/resolve/main/tokenizer.json
- Command line
-
hf download hf://PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/PrimeQA/XOR-TyDi_monolingual_DPR_ctx_encoder/resolve/main/tokenizer.json
711 kB
File too large to display, you can check the raw version instead.