Instructions to use firqaaa/indo-dpr-ctx_encoder-single-squad-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use firqaaa/indo-dpr-ctx_encoder-single-squad-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="firqaaa/indo-dpr-ctx_encoder-single-squad-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, DPRContextEncoder tokenizer = AutoTokenizer.from_pretrained("firqaaa/indo-dpr-ctx_encoder-single-squad-base") model = DPRContextEncoder.from_pretrained("firqaaa/indo-dpr-ctx_encoder-single-squad-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from firqaaa/indo-dpr-ctx_encoder-single-squad-base: direct link, hf CLI and curl.
- Browser
- Download file 733 kB
-
https://huggingface.co/firqaaa/indo-dpr-ctx_encoder-single-squad-base/resolve/main/tokenizer.json
- Command line
-
hf download hf://firqaaa/indo-dpr-ctx_encoder-single-squad-base/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/firqaaa/indo-dpr-ctx_encoder-single-squad-base/resolve/main/tokenizer.json
733 kB
File too large to display, you can check the raw version instead.