Instructions to use Novadata-Technologies/Reason-ModernColBERT-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Novadata-Technologies/Reason-ModernColBERT-ONNX with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Novadata-Technologies/Reason-ModernColBERT-ONNX") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files123---license: apache-2.0---12345678910111213141516171819202122232425262728293031323334353637383940414243444546---library_name: colbert-onnxtags:- colbert- onnx- sentence-transformers- feature-extractionlicense: mit---# Reason-ModernColBERT-ONNXONNX export of [lightonai/Reason-ModernColBERT](https://huggingface.co/lightonai/Reason-ModernColBERT) for fast CPU inference.## Model Details- **Source Model**: [lightonai/Reason-ModernColBERT](https://huggingface.co/lightonai/Reason-ModernColBERT)- **Embedding Dimension**: 128- **Format**: ONNX (FP32)## Files| File | Description ||------|-------------|| `model.onnx` | FP32 ONNX model || `tokenizer.json` | Tokenizer configuration || `config_sentence_transformers.json` | Model configuration |## Usage with colbert-onnx (Rust)```rustuse colbert_onnx::Colbert;let mut model = Colbert::from_pretrained("path/to/model")?;let embeddings = model.encode_documents(&["Hello world"])?;```## Export ToolThis model was exported using [pylate-onnx-export](https://github.com/lightonai/next-plaid/tree/main/onnx/python):```bashpip install "pylate-onnx-export @ git+https://github.com/lightonai/next-plaid.git#subdirectory=onnx/python"pylate-onnx-export lightonai/Reason-ModernColBERT --push-to-hub Novadata-Technologies/Reason-ModernColBERT-ONNX```
README.md+46-3