Sentence Similarity
Safetensors
sentence-transformers
English
code
PyLate
modernbert
ColBERT
code-search
code-retrieval
late-interaction
reasoning
text-embeddings-inference
Run this model with HF Jobs
Run ctrltokyo/Reason-Code-ModernColBERT on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ctrltokyo/Reason-Code-ModernColBERT. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ctrltokyo/Reason-Code-ModernColBERT on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Add CodeSearchNet MRR benchmark results
Browse files86 unmodified lines87888990919286 unmodified lines- Stage 1: ~130 min (391 steps)- Stage 2: ~37 min (117 steps)## Usage```python86 unmodified lines8788899091929394959697989910010110210310410510610710886 unmodified lines- Stage 1: ~130 min (391 steps)- Stage 2: ~37 min (117 steps)## Benchmark Results### CodeSearchNet MRR (500 queries per language, 500 candidates)| Language | GTE-ModernColBERT (base) | **Reason-Code-ModernColBERT (ours)** | Δ ||------------|:---:|:---:|:---:|| Python | 0.991 | 0.989 | -0.002 || Java | 0.829 | **0.866** | +0.037 || JavaScript | 0.802 | **0.839** | +0.037 || PHP | 0.841 | **0.862** | +0.021 || Go | 0.879 | **0.887** | +0.008 || Ruby | 0.773 | **0.831** | +0.058 || **Average** | 0.853 | **0.879** | **+0.026** |Improves on the base model in 5 of 6 languages. Largest gains in Ruby (+5.8pp), Java (+3.7pp), and JavaScript (+3.7pp) — languages that benefited most from reasoning-enhanced training data. Python is near-ceiling at 0.99.## Usage```python
README.md+16