Sentence Similarity
sentence-transformers
PyTorch
English
deberta-v2
feature-extraction
Generated from Trainer
dataset_size:226010
loss:CachedGISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use bobox/DeBERTa-small-ST-v1-toytest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use bobox/DeBERTa-small-ST-v1-toytest with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bobox/DeBERTa-small-ST-v1-toytest") sentences = [ "what is the common lifespan of a star", "Mites can leave bites that look like they came from bed bugs (see these pictures of bed bug bites), but not all mites are the same, so let me quickly explain. In fact, there are almost 46,000 species of mites, but only a few bite humans! They are the Northern Fowl Mite, Tropical Rat Mite, and Itch or Scabies Mite.", "Cost of Cardiac Catheterization Procedures Any type of cardiac care in the United States is growing increasingly pricey. A cardiac catheterization procedure, depending on location, may range in price between $2,400 and $4,000 in the United States.", "Lifespans for main sequence stars have a vast range. Whilst our Sun will spend 10 billion years on the main sequence, a high-mass, ten solar-mass (10 M Sun) star will only last 20 million years (2.0Ã 10 7 years) on the main sequence.A star with a only half the mass of Sun can spend 80 billion years on the main sequence.tars are composed almost entirely of hydrogen and helium. A star such as our Sun is about 73% hydrogen by mass and 25% helium. If determined by number of nuclei then it is 92% hydrogen and 7.8% helium. The remaining 2% by mass or 0.2% by number is all the heavier elements." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K