Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

bobox
/
DeBERTa-small-ST-v1-toytest

Sentence Similarity
sentence-transformers
PyTorch
English
deberta-v2
feature-extraction
Generated from Trainer
dataset_size:226010
loss:CachedGISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

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
DeBERTa-small-ST-v1-toytest
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
bobox's picture
bobox
Cached Gist embedd loss
d478e55 verified almost 2 years ago
  • 1_Pooling
    Cached Gist embedd loss almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    232 kB
    Cached Gist embedd loss almost 2 years ago
  • added_tokens.json
    23 Bytes
    Cached Gist embedd loss almost 2 years ago
  • config.json
    860 Bytes
    Cached Gist embedd loss almost 2 years ago
  • config_sentence_transformers.json
    195 Bytes
    Cached Gist embedd loss almost 2 years ago
  • modules.json
    229 Bytes
    Cached Gist embedd loss almost 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    565 MB
    xet
    Cached Gist embedd loss almost 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Cached Gist embedd loss almost 2 years ago
  • special_tokens_map.json
    286 Bytes
    Cached Gist embedd loss almost 2 years ago
  • spm.model
    2.46 MB
    xet
    Cached Gist embedd loss almost 2 years ago
  • tokenizer.json
    8.66 MB
    Cached Gist embedd loss almost 2 years ago
  • tokenizer_config.json
    1.28 kB
    Cached Gist embedd loss almost 2 years ago