SentenceTransformer based on BAAI/bge-base-en-v1.5
This is a
sentence-transformers
model finetuned from
BAAI/bge-base-en-v1.5
. 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("Nutanix/bge-base-mbpp-processed")
# Run inference
sentences = [
'Write a function to find sum and average of first n natural numbers.',
'def sum_average(number):\r\n total = 0\r\n for value in range(1, number + 1):\r\n total = total + value\r\n average = total / number\r\n return (total,average)',
'def long_words(n, str):\r\n word_len = []\r\n txt = str.split(" ")\r\n for x in txt:\r\n if len(x) > n:\r\n word_len.append(x)\r\n return word_len\t',
]
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]
@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",
}
TripletLoss
@misc{hermans2017defense,
title={In Defense of the Triplet Loss for Person Re-Identification},
author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
year={2017},
eprint={1703.07737},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
Runs of Nutanix bge-base-mbpp-processed on huggingface.co
59
Total runs
2
24-hour runs
1
3-day runs
-14
7-day runs
-6
30-day runs
More Information About bge-base-mbpp-processed huggingface.co Model
bge-base-mbpp-processed huggingface.co
bge-base-mbpp-processed huggingface.co is an AI model on huggingface.co that provides bge-base-mbpp-processed's model effect (), which can be used instantly with this Nutanix bge-base-mbpp-processed model. huggingface.co supports a free trial of the bge-base-mbpp-processed model, and also provides paid use of the bge-base-mbpp-processed. Support call bge-base-mbpp-processed model through api, including Node.js, Python, http.
bge-base-mbpp-processed huggingface.co is an online trial and call api platform, which integrates bge-base-mbpp-processed's modeling effects, including api services, and provides a free online trial of bge-base-mbpp-processed, you can try bge-base-mbpp-processed online for free by clicking the link below.
Nutanix bge-base-mbpp-processed online free url in huggingface.co:
bge-base-mbpp-processed is an open source model from GitHub that offers a free installation service, and any user can find bge-base-mbpp-processed on GitHub to install. At the same time, huggingface.co provides the effect of bge-base-mbpp-processed install, users can directly use bge-base-mbpp-processed installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bge-base-mbpp-processed install url in huggingface.co: