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

cooperzvegintzov
/
polyBERT

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

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

  • Libraries
  • sentence-transformers

    How to use cooperzvegintzov/polyBERT with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("cooperzvegintzov/polyBERT")
    
    sentences = [
        "[*]CC[*]",
        "[*]COC[*]",
        "[*]CC(C)C[*]"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use cooperzvegintzov/polyBERT with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("cooperzvegintzov/polyBERT")
    model = AutoModel.from_pretrained("cooperzvegintzov/polyBERT")
  • Notebooks
  • Google Colab
  • Kaggle
polyBERT
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
cooperzvegintzov's picture
cooperzvegintzov
Delete folder polybert_model with huggingface_hub
fe976ad verified 2 days ago
  • 1_Pooling
    Upload folder using huggingface_hub 2 days ago
  • .gitattributes
    1.52 kB
    initial commit 2 days ago
  • LICENSE
    6.52 kB
    Upload folder using huggingface_hub 2 days ago
  • README.md
    3.12 kB
    Upload folder using huggingface_hub 2 days ago
  • added_tokens.json
    84 Bytes
    Upload folder using huggingface_hub 2 days ago
  • config.json
    756 Bytes
    Upload folder using huggingface_hub 2 days ago
  • config_sentence_transformers.json
    124 Bytes
    Upload folder using huggingface_hub 2 days ago
  • modules.json
    229 Bytes
    Upload folder using huggingface_hub 2 days ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    101 MB
    xet
    Upload folder using huggingface_hub 2 days ago
  • sentence_bert_config.json
    53 Bytes
    Upload folder using huggingface_hub 2 days ago
  • special_tokens_map.json
    173 Bytes
    Upload folder using huggingface_hub 2 days ago
  • spm.model
    242 kB
    xet
    Upload folder using huggingface_hub 2 days ago
  • tokenizer.json
    331 kB
    Upload folder using huggingface_hub 2 days ago
  • tokenizer_config.json
    382 Bytes
    Upload folder using huggingface_hub 2 days ago