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
File size: 772 Bytes
205cf47 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | {
"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
} |