Instructions to use raphaelsty/neural-cherche-sparse-embed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use raphaelsty/neural-cherche-sparse-embed with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="raphaelsty/neural-cherche-sparse-embed")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("raphaelsty/neural-cherche-sparse-embed") model = AutoModelForMaskedLM.from_pretrained("raphaelsty/neural-cherche-sparse-embed", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 222 Bytes
ad7ebb6 | 1 2 3 4 5 6 7 8 9 10 | {
"max_length_query": 64,
"max_length_document": 256,
"query_prefix": "",
"document_prefix": "",
"padding": "max_length",
"truncation": true,
"add_special_tokens": true,
"n_mask_tokens": 3
} |