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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ documents = [
|
|
| 28 |
|
| 29 |
queries = ["Food", "Sports", "Cinema"]
|
| 30 |
|
| 31 |
-
model = SparseEmbed(
|
| 32 |
model_name_or_path="raphaelsty/neural-cherche-sparse-embed",
|
| 33 |
device=device,
|
| 34 |
)
|
|
|
|
| 28 |
|
| 29 |
queries = ["Food", "Sports", "Cinema"]
|
| 30 |
|
| 31 |
+
model = models.SparseEmbed(
|
| 32 |
model_name_or_path="raphaelsty/neural-cherche-sparse-embed",
|
| 33 |
device=device,
|
| 34 |
)
|