SentenceTransformer based on Shuu12121/CodeModernBERT-Owl-1.0
This is a
sentence-transformers
model finetuned from
Shuu12121/CodeModernBERT-Owl-1.0
. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
"// SetGameSessionQueueArns sets the GameSessionQueueArns field's value.",
'func (s *MatchmakingConfiguration) SetGameSessionQueueArns(v []*string) *MatchmakingConfiguration {\n\ts.GameSessionQueueArns = v\n\treturn s\n}',
'protected function _beforeDispatch(DispatcherContext $context)\n {\n // Check if the user has been explicitly authenticated for this request\n if (!$this->getUser()->isAuthentic(true))\n {\n foreach($this->__authenticator_queue as $authenticator)\n {\n if($authenticator->authenticateRequest($context) === true) {\n break;\n }\n }\n }\n\n }',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Training Details
Training Dataset
Unnamed Dataset
Size: 1,736,166 training samples
Columns:
sentence_0
,
sentence_1
, and
label
Approximate statistics based on the first 1000 samples:
sentence_0
sentence_1
label
type
string
string
float
details
min: 3 tokens
mean: 48.85 tokens
max: 1024 tokens
min: 30 tokens
mean: 171.5 tokens
max: 1024 tokens
min: 1.0
mean: 1.0
max: 1.0
Samples:
sentence_0
sentence_1
label
// convDataValidationOperatior get excel data validation operator.
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Runs of Shuu12121 CodeSearch-ModernBERT-Owl-Plus on huggingface.co
16
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
12
30-day runs
More Information About CodeSearch-ModernBERT-Owl-Plus huggingface.co Model
More CodeSearch-ModernBERT-Owl-Plus license Visit here:
CodeSearch-ModernBERT-Owl-Plus huggingface.co is an AI model on huggingface.co that provides CodeSearch-ModernBERT-Owl-Plus's model effect (), which can be used instantly with this Shuu12121 CodeSearch-ModernBERT-Owl-Plus model. huggingface.co supports a free trial of the CodeSearch-ModernBERT-Owl-Plus model, and also provides paid use of the CodeSearch-ModernBERT-Owl-Plus. Support call CodeSearch-ModernBERT-Owl-Plus model through api, including Node.js, Python, http.
CodeSearch-ModernBERT-Owl-Plus huggingface.co is an online trial and call api platform, which integrates CodeSearch-ModernBERT-Owl-Plus's modeling effects, including api services, and provides a free online trial of CodeSearch-ModernBERT-Owl-Plus, you can try CodeSearch-ModernBERT-Owl-Plus online for free by clicking the link below.
Shuu12121 CodeSearch-ModernBERT-Owl-Plus online free url in huggingface.co:
CodeSearch-ModernBERT-Owl-Plus is an open source model from GitHub that offers a free installation service, and any user can find CodeSearch-ModernBERT-Owl-Plus on GitHub to install. At the same time, huggingface.co provides the effect of CodeSearch-ModernBERT-Owl-Plus install, users can directly use CodeSearch-ModernBERT-Owl-Plus installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
CodeSearch-ModernBERT-Owl-Plus install url in huggingface.co: