Feature Extraction
sentence-transformers
ONNX
Safetensors
modernbert
code-search
code-embedding
retrieval
dense
text-embeddings-inference
Instructions to use Shuu12121/NightOwl-CodeEmbedding with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Shuu12121/NightOwl-CodeEmbedding with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Shuu12121/NightOwl-CodeEmbedding") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ library_name: sentence-transformers
|
|
| 13 |
license: apache-2.0
|
| 14 |
---
|
| 15 |
|
| 16 |
-
# NightOwl CodeEmbedding
|
| 17 |
|
| 18 |
`NightOwl-CodeEmbedding` is a 768-dimensional dense embedding model specialized
|
| 19 |
for code retrieval, code-edit retrieval, and technical question answering. It
|
|
@@ -62,28 +62,31 @@ print(scores)
|
|
| 62 |
|
| 63 |
The model was evaluated using:
|
| 64 |
|
| 65 |
-
-
|
|
|
|
| 66 |
- Metric: NDCG@10
|
| 67 |
- Hardware: NVIDIA GeForce RTX 5090
|
|
|
|
| 68 |
|
| 69 |
Multi-subset task scores are macro averages. `CodeEditSearchRetrieval` uses its
|
| 70 |
official `train` evaluation split; the other tasks use `test`.
|
| 71 |
|
| 72 |
| Task | Split | NDCG@10 |
|
| 73 |
|---|---:|---:|
|
| 74 |
-
| AppsRetrieval | test | 0.
|
| 75 |
-
| COIRCodeSearchNetRetrieval | test | 0.
|
| 76 |
-
| CodeEditSearchRetrieval | train | 0.
|
| 77 |
-
| CodeFeedbackMT | test | 0.
|
| 78 |
-
| CodeFeedbackST | test | 0.
|
| 79 |
-
| CodeSearchNetCCRetrieval | test | 0.
|
| 80 |
-
| CodeSearchNetRetrieval | test | 0.
|
| 81 |
-
| CodeTransOceanContest | test | 0.
|
| 82 |
-
| CodeTransOceanDL | test | 0.
|
| 83 |
-
| CosQA | test | 0.
|
| 84 |
-
| StackOverflowQA | test | 0.
|
| 85 |
-
| SyntheticText2SQL | test | 0.
|
| 86 |
-
| **Macro average** | | **0.
|
|
|
|
| 87 |
|
| 88 |
## Training
|
| 89 |
|
|
@@ -106,12 +109,15 @@ The training data covers the following MTEB task families:
|
|
| 106 |
- `StackOverflowQA`
|
| 107 |
- `SyntheticText2SQL`
|
| 108 |
|
|
|
|
|
|
|
|
|
|
| 109 |
## Limitations
|
| 110 |
|
| 111 |
- The model is specialized for code-related retrieval and may underperform
|
| 112 |
general-purpose text embedding models on unrelated domains.
|
| 113 |
- Inputs longer than 1,024 tokens are truncated.
|
| 114 |
-
- Benchmark scores
|
| 115 |
should not be interpreted as strictly zero-shot results.
|
| 116 |
|
| 117 |
## Citation
|
|
|
|
| 13 |
license: apache-2.0
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# NightOwl CodeEmbedding
|
| 17 |
|
| 18 |
`NightOwl-CodeEmbedding` is a 768-dimensional dense embedding model specialized
|
| 19 |
for code retrieval, code-edit retrieval, and technical question answering. It
|
|
|
|
| 62 |
|
| 63 |
The model was evaluated using:
|
| 64 |
|
| 65 |
+
- Model revision: `c7c8a57b9539297e192d5cf39b9aecf1fb376edd`
|
| 66 |
+
- MTEB version: `2.15.1`
|
| 67 |
- Metric: NDCG@10
|
| 68 |
- Hardware: NVIDIA GeForce RTX 5090
|
| 69 |
+
- Batch size: 64
|
| 70 |
|
| 71 |
Multi-subset task scores are macro averages. `CodeEditSearchRetrieval` uses its
|
| 72 |
official `train` evaluation split; the other tasks use `test`.
|
| 73 |
|
| 74 |
| Task | Split | NDCG@10 |
|
| 75 |
|---|---:|---:|
|
| 76 |
+
| AppsRetrieval | test | 0.39177 |
|
| 77 |
+
| COIRCodeSearchNetRetrieval | test | 0.84264 |
|
| 78 |
+
| CodeEditSearchRetrieval | train | 0.74808 |
|
| 79 |
+
| CodeFeedbackMT | test | 0.76690 |
|
| 80 |
+
| CodeFeedbackST | test | 0.85207 |
|
| 81 |
+
| CodeSearchNetCCRetrieval | test | 0.91805 |
|
| 82 |
+
| CodeSearchNetRetrieval | test | 0.89239 |
|
| 83 |
+
| CodeTransOceanContest | test | 0.75953 |
|
| 84 |
+
| CodeTransOceanDL | test | 0.36057 |
|
| 85 |
+
| CosQA | test | 0.42810 |
|
| 86 |
+
| StackOverflowQA | test | 0.86608 |
|
| 87 |
+
| SyntheticText2SQL | test | 0.68266 |
|
| 88 |
+
| **Macro average (all 12 tasks)** | | **0.70907** |
|
| 89 |
+
| **CoIR macro average (10 tasks)** | | **0.68684** |
|
| 90 |
|
| 91 |
## Training
|
| 92 |
|
|
|
|
| 109 |
- `StackOverflowQA`
|
| 110 |
- `SyntheticText2SQL`
|
| 111 |
|
| 112 |
+
`CodeEditSearchRetrieval` was evaluated separately and is not listed as a
|
| 113 |
+
training dataset in the published model metadata.
|
| 114 |
+
|
| 115 |
## Limitations
|
| 116 |
|
| 117 |
- The model is specialized for code-related retrieval and may underperform
|
| 118 |
general-purpose text embedding models on unrelated domains.
|
| 119 |
- Inputs longer than 1,024 tokens are truncated.
|
| 120 |
+
- Benchmark scores include in-domain tasks related to the training data and
|
| 121 |
should not be interpreted as strictly zero-shot results.
|
| 122 |
|
| 123 |
## Citation
|