Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

sentence-transformers-testing
/
stsb-bert-tiny-lora

Sentence Similarity
sentence-transformers
Safetensors
English
feature-extraction
Generated from Trainer
dataset_size:3012496
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use sentence-transformers-testing/stsb-bert-tiny-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers-testing/stsb-bert-tiny-lora with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers-testing/stsb-bert-tiny-lora")
    
    sentences = [
        "how to sign legal documents as power of attorney?",
        "After the principal's name, write “by” and then sign your own name. Under or after the signature line, indicate your status as POA by including any of the following identifiers: as POA, as Agent, as Attorney in Fact or as Power of Attorney.",
        "['From the Home screen, swipe left to Apps.', 'Tap Transfer my Data.', 'Tap Menu (...).', 'Tap Export to SD card.']",
        "Ginger Dank Nugs (Grape) - 350mg. Feast your eyes on these unique and striking gourmet chocolates; Coco Nugs created by Ginger Dank. Crafted to resemble perfect nugs of cannabis, each of the 10 buds contains 35mg of THC. ... This is a perfect product for both cannabis and chocolate lovers, who appreciate a little twist."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
stsb-bert-tiny-lora
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
tomaarsen's picture
tomaarsen HF Staff
Update train_script.py
3b4f75b verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    67.6 kB
    Update README.md over 1 year ago
  • adapter_config.json
    716 Bytes
    Add new SentenceTransformer model over 1 year ago
  • adapter_model.safetensors
    33.8 kB
    xet
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    219 Bytes
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    242 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    56 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    732 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    1.5 kB
    Add new SentenceTransformer model over 1 year ago
  • train_script.py
    3.16 kB
    Update train_script.py over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model over 1 year ago