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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

bobox
/
DeBERTaV3-small-GeneralSentenceTransformer-v2

Sentence Similarity
sentence-transformers
PyTorch
English
deberta-v2
feature-extraction
Generated from Trainer
dataset_size:96781
loss:MultipleNegativesRankingLoss
loss:AnglELoss
loss:GISTEmbedLoss
loss:OnlineContrastiveLoss
loss:MultipleNegativesSymmetricRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use bobox/DeBERTaV3-small-GeneralSentenceTransformer-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use bobox/DeBERTaV3-small-GeneralSentenceTransformer-v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("bobox/DeBERTaV3-small-GeneralSentenceTransformer-v2")
    
    sentences = [
        "What dual titles did Frederick William hold?",
        "The impact was increased by chronic overfishing, and by eutrophication that gave the entire ecosystem a short-term boost, causing the Mnemiopsis population to increase even faster than normal – and above all by the absence of efficient predators on these introduced ctenophores.",
        "The \"European Council\" (rather than the Council, made up of different government Ministers) is composed of the Prime Ministers or executive Presidents of the member states.",
        "Nearly 50,000 Huguenots established themselves in Germany, 20,000 of whom were welcomed in Brandenburg-Prussia, where they were granted special privileges (Edict of Potsdam) and churches in which to worship (such as the Church of St. Peter and St. Paul, Angermünde) by Frederick William, Elector of Brandenburg and Duke of Prussia."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
DeBERTaV3-small-GeneralSentenceTransformer-v2
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
bobox's picture
bobox
10 epoch 32 batch
1d3016b verified about 2 years ago
  • 1_Pooling
    10 epoch 32 batch about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    64.7 kB
    10 epoch 32 batch about 2 years ago
  • added_tokens.json
    23 Bytes
    10 epoch 32 batch about 2 years ago
  • config.json
    860 Bytes
    10 epoch 32 batch about 2 years ago
  • config_sentence_transformers.json
    201 Bytes
    10 epoch 32 batch about 2 years ago
  • modules.json
    229 Bytes
    10 epoch 32 batch about 2 years ago
  • pytorch_model.bin
    565 MB
    xet
    10 epoch 32 batch about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    10 epoch 32 batch about 2 years ago
  • special_tokens_map.json
    286 Bytes
    10 epoch 32 batch about 2 years ago
  • spm.model
    2.46 MB
    xet
    10 epoch 32 batch about 2 years ago
  • tokenizer.json
    8.66 MB
    10 epoch 32 batch about 2 years ago
  • tokenizer_config.json
    1.28 kB
    10 epoch 32 batch about 2 years ago