Sentence Similarity
Safetensors
sentence-transformers
English
code
PyLate
modernbert
ColBERT
code-search
code-retrieval
late-interaction
reasoning
text-embeddings-inference
Instructions to use ctrltokyo/Reason-Code-ModernColBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ctrltokyo/Reason-Code-ModernColBERT 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="ctrltokyo/Reason-Code-ModernColBERT") queries_emb = model.encode(queries, is_query=True) docs_emb = model.encode(documents, is_query=False) - Notebooks
- Google Colab
- Kaggle
File size: 428 Bytes
b723c73 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | {
"__version__": {
"sentence_transformers": "4.0.2",
"transformers": "4.48.2",
"pytorch": "2.10.0a0+a36e1d39eb.nv26.01.42222806"
},
"prompts": {},
"default_prompt_name": null,
"similarity_fn_name": "MaxSim",
"query_prefix": "[Q] ",
"document_prefix": "[D] ",
"query_length": 128,
"document_length": 512,
"attend_to_expansion_tokens": false,
"skiplist_words": [],
"do_query_expansion": false
} |