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

AAUBS
/
PatentSBERTa_V2

Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use AAUBS/PatentSBERTa_V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use AAUBS/PatentSBERTa_V2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("AAUBS/PatentSBERTa_V2")
    
    sentences = [
        "A method for wireless charging using magnetic resonance",
        "Wireless power transfer through inductive coupling",
        "A new compound for pharmaceutical use in treating diabetes",
        "A method for data encryption in wireless communication"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use AAUBS/PatentSBERTa_V2 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("AAUBS/PatentSBERTa_V2")
    model = AutoModel.from_pretrained("AAUBS/PatentSBERTa_V2")
  • Notebooks
  • Google Colab
  • Kaggle
PatentSBERTa_V2
439 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 11 commits
HamidBekam's picture
HamidBekam
Update README.md
cf95524 verified over 1 year ago
  • 1_Pooling
    New version (V2) PatentSBERTa almost 4 years ago
  • eval
    New version (V2) PatentSBERTa almost 4 years ago
  • .gitattributes
    1.17 kB
    initial commit almost 4 years ago
  • README.md
    4.63 kB
    Update README.md over 1 year ago
  • config.json
    783 Bytes
    New version (V2) PatentSBERTa almost 4 years ago
  • config_sentence_transformers.json
    124 Bytes
    New version (V2) PatentSBERTa almost 4 years ago
  • modules.json
    229 Bytes
    New version (V2) PatentSBERTa almost 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    New version (V2) PatentSBERTa almost 4 years ago
  • sentence_bert_config.json
    53 Bytes
    New version (V2) PatentSBERTa almost 4 years ago
  • special_tokens_map.json
    239 Bytes
    New version (V2) PatentSBERTa almost 4 years ago
  • tokenizer.json
    711 kB
    New version (V2) PatentSBERTa almost 4 years ago
  • tokenizer_config.json
    552 Bytes
    New version (V2) PatentSBERTa almost 4 years ago
  • vocab.txt
    232 kB
    New version (V2) PatentSBERTa almost 4 years ago