Feature Extraction
Model2Vec
Safetensors
sentence-transformers
code
embeddings
retrieval
static-embeddings
sentence-similarity
Instructions to use minishlab/blink-code-16M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use minishlab/blink-code-16M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("minishlab/blink-code-16M") embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."]) print(embeddings.shape) - sentence-transformers
How to use minishlab/blink-code-16M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("minishlab/blink-code-16M") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Card: metadata as potion-code-16M-v2, shorter results intro and semble note
Browse files
README.md
CHANGED
|
@@ -1,14 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
license: mit
|
|
|
|
| 4 |
tags:
|
|
|
|
| 5 |
- embeddings
|
|
|
|
|
|
|
| 6 |
- static-embeddings
|
| 7 |
- sentence-transformers
|
| 8 |
-
- sentence-similarity
|
| 9 |
-
- feature-extraction
|
| 10 |
-
- code
|
| 11 |
-
language: en
|
| 12 |
datasets:
|
| 13 |
- minishlab/cornstack-queries-docs
|
| 14 |
- minishlab/tokenlearn-cornstack-docs-coderankembed-v2
|
|
@@ -77,7 +78,7 @@ embeddings = model.encode(["read a json file in python", "def load(path):\n w
|
|
| 77 |
|
| 78 |

|
| 79 |
|
| 80 |
-
All scores are nDCG@10 from mteb 2.27.1
|
| 81 |
|
| 82 |
### CoIR
|
| 83 |
|
|
@@ -178,7 +179,7 @@ To show the effect of each step of our training process, this table shows how mu
|
|
| 178 |
| 7. + Hard negatives re-mined with the step-6 model | 46.74 (+0.55) | 34.88 (+0.46) | 49.20 (0.00) | 0.643 (-0.001) |
|
| 179 |
| 8. + Weight averaging | **46.82** (+0.08) | **34.67** (-0.21) | **49.58** (+0.38) | **0.652** (+0.009) |
|
| 180 |
|
| 181 |
-
[semble](https://github.com/MinishLab/semble) is
|
| 182 |
|
| 183 |
## Library Authors
|
| 184 |
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- code
|
| 4 |
license: mit
|
| 5 |
+
library_name: model2vec
|
| 6 |
tags:
|
| 7 |
+
- model2vec
|
| 8 |
- embeddings
|
| 9 |
+
- code
|
| 10 |
+
- retrieval
|
| 11 |
- static-embeddings
|
| 12 |
- sentence-transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
datasets:
|
| 14 |
- minishlab/cornstack-queries-docs
|
| 15 |
- minishlab/tokenlearn-cornstack-docs-coderankembed-v2
|
|
|
|
| 78 |
|
| 79 |

|
| 80 |
|
| 81 |
+
All scores are nDCG@10 from mteb 2.27.1.
|
| 82 |
|
| 83 |
### CoIR
|
| 84 |
|
|
|
|
| 179 |
| 7. + Hard negatives re-mined with the step-6 model | 46.74 (+0.55) | 34.88 (+0.46) | 49.20 (0.00) | 0.643 (-0.001) |
|
| 180 |
| 8. + Weight averaging | **46.82** (+0.08) | **34.67** (-0.21) | **49.58** (+0.38) | **0.652** (+0.009) |
|
| 181 |
|
| 182 |
+
[semble](https://github.com/MinishLab/semble) is our code search library; we run only its semantic benchmark, to show the isolated effect of the model. We don't include semble results for the other models because trained models all saturate around 0.65, but we include it here as a control task for the effect of each step.
|
| 183 |
|
| 184 |
## Library Authors
|
| 185 |
|