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