Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:193623
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use benjamintli/modernbert-code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use benjamintli/modernbert-code with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("benjamintli/modernbert-code") sentences = [ "@Override\n public void encode(final OtpOutputStream buf) {\n final int arity = elems.length;\n\n buf.write_tuple_head(arity);\n\n for (int i = 0; i < arity; i++) {\n buf.write_any(elems[i]);\n }\n }", "fetch function with the same interface than in cozy-client-js", "Convert this tuple to the equivalent Erlang external representation.\n\n@param buf\nan output stream to which the encoded tuple should be written.", "Delete a customer by it's id.\n\n@param int $id The id\n\n@return bool\n@throws \\Throwable in case something went wrong when deleting." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Training in progress, step 30
Browse files
eval/Information-Retrieval_evaluation_eval_results.csv
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Accuracy@10,cosine-Precision@1,cosine-Recall@1,cosine-Precision@3,cosine-Recall@3,cosine-Precision@5,cosine-Recall@5,cosine-Precision@10,cosine-Recall@10,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 2 |
0.05263157894736842,10,0.31677047503950917,0.4237705680022311,0.46960118992284094,0.5346286139258157,0.31677047503950917,0.31677047503950917,0.1412568560007437,0.4237705680022311,0.09392023798456818,0.46960118992284094,0.053462861392581565,0.5346286139258157,0.3834089024348821,0.4194538069068056,0.391388274648253
|
| 3 |
0.10526315789473684,20,0.6632890211025378,0.8014316259180069,0.8382913451705866,0.87956679371572,0.6632890211025378,0.6632890211025378,0.26714387530600225,0.8014316259180069,0.16765826903411732,0.8382913451705866,0.087956679371572,0.87956679371572,0.7401981692246282,0.7742067949561511,0.7436969531508257
|
|
|
|
|
|
| 1 |
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Accuracy@10,cosine-Precision@1,cosine-Recall@1,cosine-Precision@3,cosine-Recall@3,cosine-Precision@5,cosine-Recall@5,cosine-Precision@10,cosine-Recall@10,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 2 |
0.05263157894736842,10,0.31677047503950917,0.4237705680022311,0.46960118992284094,0.5346286139258157,0.31677047503950917,0.31677047503950917,0.1412568560007437,0.4237705680022311,0.09392023798456818,0.46960118992284094,0.053462861392581565,0.5346286139258157,0.3834089024348821,0.4194538069068056,0.391388274648253
|
| 3 |
0.10526315789473684,20,0.6632890211025378,0.8014316259180069,0.8382913451705866,0.87956679371572,0.6632890211025378,0.6632890211025378,0.26714387530600225,0.8014316259180069,0.16765826903411732,0.8382913451705866,0.087956679371572,0.87956679371572,0.7401981692246282,0.7742067949561511,0.7436969531508257
|
| 4 |
+
0.15789473684210525,30,0.7701961513433113,0.8820767872083295,0.9067119085246816,0.9321836943385702,0.7701961513433113,0.7701961513433113,0.2940255957361098,0.8820767872083295,0.18134238170493636,0.9067119085246816,0.09321836943385703,0.9321836943385702,0.8311279034250174,0.8560011626180303,0.8331476336975772
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 596070136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b4f0311656d58196c08e407e528841ed8bcb21f80eb318bd961b20bf73f9471
|
| 3 |
size 596070136
|