Sentence Similarity
Transformers.js
ONNX
sentence-transformers
English
modernbert
feature-extraction
ColBERT
PyLate
Generated from Trainer
dataset_size:100521
loss:CachedContrastive
text-embeddings-inference
Instructions to use onnx-community/Reason-ModernColBERT-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/Reason-ModernColBERT-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'onnx-community/Reason-ModernColBERT-ONNX'); - sentence-transformers
How to use onnx-community/Reason-ModernColBERT-ONNX with sentence-transformers:
from pylate import models queries = [ "Which planet is known as the Red Planet?", "What is the largest planet in our solar system?", ] documents = [ ["Mars is the Red Planet.", "Venus is Earth's twin."], ["Jupiter is the largest planet.", "Saturn has rings."], ] model = models.ColBERT(model_name_or_path="onnx-community/Reason-ModernColBERT-ONNX") queries_emb = model.encode(queries, is_query=True) docs_emb = model.encode(documents, is_query=False) - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from onnx-community/Reason-ModernColBERT-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 3.58 MB
-
https://huggingface.co/onnx-community/Reason-ModernColBERT-ONNX/resolve/main/tokenizer.json
- Command line
-
hf download hf://onnx-community/Reason-ModernColBERT-ONNX/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/onnx-community/Reason-ModernColBERT-ONNX/resolve/main/tokenizer.json
3.58 MB
File too large to display, you can check the raw version instead.