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
| { | |
| "model_type": "ColBERT", | |
| "model_name": "lightonai/Reason-ModernColBERT", | |
| "model_class": "ModernBertModel", | |
| "uses_token_type_ids": false, | |
| "query_prefix": "[Q] ", | |
| "document_prefix": "[D] ", | |
| "query_length": 128, | |
| "document_length": 8192, | |
| "do_query_expansion": false, | |
| "attend_to_expansion_tokens": false, | |
| "skiplist_words": [ | |
| "!", | |
| "\"", | |
| "#", | |
| "$", | |
| "%", | |
| "&", | |
| "'", | |
| "(", | |
| ")", | |
| "*", | |
| "+", | |
| ",", | |
| "-", | |
| ".", | |
| "/", | |
| ":", | |
| ";", | |
| "<", | |
| "=", | |
| ">", | |
| "?", | |
| "@", | |
| "[", | |
| "\\", | |
| "]", | |
| "^", | |
| "_", | |
| "`", | |
| "{", | |
| "|", | |
| "}", | |
| "~" | |
| ], | |
| "embedding_dim": 128, | |
| "mask_token_id": 50284, | |
| "pad_token_id": 50284, | |
| "query_prefix_id": 50368, | |
| "document_prefix_id": 50369 | |
| } |