Sentence Similarity
sentence-transformers
ONNX
Safetensors
English
code
modernbert
feature-extraction
code-search
code-retrieval
bug-localization
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run vedevpatel/CodeIntel-150M 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/vedevpatel/CodeIntel-150M. 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/vedevpatel/CodeIntel-150M 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 vedevpatel/CodeIntel-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use vedevpatel/CodeIntel-150M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("vedevpatel/CodeIntel-150M") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Use the official name CodeIntel-150M throughout the model card
Browse files39 unmodified lines4041424344454624 unmodified lines71727374757677787 unmodified lines868788899091924 unmodified lines97989910010110210310410510670 unmodified lines17717817918018118218339 unmodified lines# CodeIntel-150M> **About 55% better than any other open ~150M embedding model at finding the code a bug report is about.**> On 3,804 held-out GitHub issues that name no code, CodeIntel scores nDCG@10 **0.268 / 0.274** (Python /> TypeScript) against **0.173 / 0.178** for the next-best of seven open models its size. It also leads on issues> that do name code (+27%) and on test -> implementation search (+23%).24 unmodified lines| model | descriptive, Python | descriptive, TypeScript | lexical ||---|---|---|---|| **this model**, dense | **0.242** | **0.260** | **0.482** || **this model**, + BM25 (RRF, dense weight 2) | **0.268** | **0.274** | **0.516** || granite-embedding-english-r2, dense | 0.166 | 0.161 | 0.346 || bge-base-en-v1.5, dense | 0.163 | 0.166 | 0.356 || gte-modernbert-base, dense | 0.125 | 0.112 | 0.308 |7 unmodified linesgranite-embedding-english-r2, bge-base-en-v1.5, modernbert-embed-base, gte-modernbert-base, CodeRankEmbed,jina-embeddings-v2-base-code and codesage-small-v2.| benchmark | this model | best other open ~150M ||---|---|---|| test -> implementation (Python) | **0.640** | 0.522 (CodeRankEmbed) || call site -> definition, Python / TypeScript | 0.219 / **0.278** | 0.244 (bge-base) / 0.264 (granite-r2) |4 unmodified lines| CoIR CodeSearchNet-CCR, Python / JavaScript | 0.703 / 0.688 | 0.940 / 0.943 (gte-modernbert) || CoIR APPS | 0.174 | 0.575 (gte-modernbert) |**Choose this model** for repository-scale retrieval driven by issues, bug reports or tests, for example as theretriever in a coding agent. **Choose a general code-search model instead** (gte-modernbert-base, CodeRankEmbed,jina-embeddings-v2-base-code) for docstring-style or web-query code search and code completion-style retrieval (CCR),where this model trails.## Usage70 unmodified lines## Limitations- Issue localization remains hard. Even this model puts an edited function in the top 10 for well under half ofdescriptive issues.- Fixes that only add new code cannot be retrieved, because the target does not exist yet. The benchmark reports thisas a recall ceiling.39 unmodified lines4041424344454624 unmodified lines71727374757677787 unmodified lines868788899091924 unmodified lines97989910010110210310410510670 unmodified lines17717817918018118218339 unmodified lines# CodeIntel-150M> **About 55% better than any other open ~150M embedding model at finding the code a bug report is about.**> On 3,804 held-out GitHub issues that name no code, CodeIntel-150M scores nDCG@10 **0.268 / 0.274** (Python /> TypeScript) against **0.173 / 0.178** for the next-best of seven open models its size. It also leads on issues> that do name code (+27%) and on test -> implementation search (+23%).24 unmodified lines| model | descriptive, Python | descriptive, TypeScript | lexical ||---|---|---|---|| **CodeIntel-150M**, dense | **0.242** | **0.260** | **0.482** || **CodeIntel-150M**, + BM25 (RRF, dense weight 2) | **0.268** | **0.274** | **0.516** || granite-embedding-english-r2, dense | 0.166 | 0.161 | 0.346 || bge-base-en-v1.5, dense | 0.163 | 0.166 | 0.356 || gte-modernbert-base, dense | 0.125 | 0.112 | 0.308 |7 unmodified linesgranite-embedding-english-r2, bge-base-en-v1.5, modernbert-embed-base, gte-modernbert-base, CodeRankEmbed,jina-embeddings-v2-base-code and codesage-small-v2.| benchmark | CodeIntel-150M | best other open ~150M ||---|---|---|| test -> implementation (Python) | **0.640** | 0.522 (CodeRankEmbed) || call site -> definition, Python / TypeScript | 0.219 / **0.278** | 0.244 (bge-base) / 0.264 (granite-r2) |4 unmodified lines| CoIR CodeSearchNet-CCR, Python / JavaScript | 0.703 / 0.688 | 0.940 / 0.943 (gte-modernbert) || CoIR APPS | 0.174 | 0.575 (gte-modernbert) |**Choose CodeIntel-150M** for repository-scale retrieval driven by issues, bug reports or tests, for example as theretriever in a coding agent. **Choose a general code-search model instead** (gte-modernbert-base, CodeRankEmbed,jina-embeddings-v2-base-code) for docstring-style or web-query code search and code completion-style retrieval (CCR),where CodeIntel-150M trails.## Usage70 unmodified lines## Limitations- Issue localization remains hard. Even CodeIntel-150M puts an edited function in the top 10 for well under half ofdescriptive issues.- Fixes that only add new code cannot be retrieved, because the target does not exist yet. The benchmark reports thisas a recall ceiling.
README.md+7-7