Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

ctrltokyo
/
Reason-Code-ModernColBERT

Sentence Similarity
Safetensors
sentence-transformers
English
code
PyLate
modernbert
ColBERT
code-search
code-retrieval
late-interaction
reasoning
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
Reason-Code-ModernColBERT / 1_Dense
393 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
ctrltokyo's picture
ctrltokyo
Upload Reason-Code-ModernColBERT (first ColBERT for code search)
b723c73 verified about 2 months ago
  • config.json
    115 Bytes
    Upload Reason-Code-ModernColBERT (first ColBERT for code search) about 2 months ago
  • model.safetensors
    393 kB
    xet
    Upload Reason-Code-ModernColBERT (first ColBERT for code search) about 2 months ago