Sentence Similarity
sentence-transformers
ONNX
Safetensors
English
code
modernbert
feature-extraction
code-search
code-retrieval
bug-localization
Eval Results (legacy)
text-embeddings-inference
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
Tighten the opening paragraph
Browse files
README.md
CHANGED
|
@@ -39,14 +39,14 @@ model-index:
|
|
| 39 |
|
| 40 |
# CodeIntel-150M
|
| 41 |
|
| 42 |
-
CodeIntel-150M is a 149M-parameter embedding model for **
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
model
|
| 46 |
-
(+23%).
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
and CodeSearchNet Python
|
| 50 |
[granite-embedding-english-r2](https://huggingface.co/ibm-granite/granite-embedding-english-r2) (ModernBERT,
|
| 51 |
Apache-2.0). It runs locally, including as a 325 MB INT8 ONNX model, and needs no remote code.
|
| 52 |
|
|
|
|
| 39 |
|
| 40 |
# CodeIntel-150M
|
| 41 |
|
| 42 |
+
CodeIntel-150M is a 149M-parameter embedding model for **issue-to-code localization**: given a bug report or feature
|
| 43 |
+
request, it retrieves the functions and classes in a Python or TypeScript repository that a fix is likely to
|
| 44 |
+
modify. On issues that describe only symptoms, with no reference to the relevant code, it outperforms every other
|
| 45 |
+
open embedding model of comparable size by **roughly 55%**. It also leads on issues that reference code directly
|
| 46 |
+
(+27%) and on test-to-implementation retrieval (+23%).
|
| 47 |
+
|
| 48 |
+
Beyond localization, it supports call-site-to-definition navigation and code search, where it leads its size class on CoIR StackOverflow QA
|
| 49 |
+
and CodeSearchNet Python. It is a fine-tune of
|
| 50 |
[granite-embedding-english-r2](https://huggingface.co/ibm-granite/granite-embedding-english-r2) (ModernBERT,
|
| 51 |
Apache-2.0). It runs locally, including as a 325 MB INT8 ONNX model, and needs no remote code.
|
| 52 |
|