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

  • Log In
  • Sign Up

cafierom
/
905_Statin_Contrastive

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:116941
loss:SoftmaxLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use cafierom/905_Statin_Contrastive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use cafierom/905_Statin_Contrastive with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("cafierom/905_Statin_Contrastive")
    
    sentences = [
        "O[C@@H]1CC(CCc2c(O)cc(Cl)cc2Cl)OC(=O)C1",
        "O[C@@H]1C[C@@H](CC[C@@H]2CCC[C@@H]3CCCC[C@H]23)OC(=O)C1",
        "O[C@@H]1CC(CCc2cccc3ccccc23)OC(=O)C1",
        "CC(C)n1c(CC[C@@H](O)C[C@@H](O)CC([O-])=O)c(c(c1C(=O)NCc1ccccc1)-c1ccccn1)-c1ccc(F)cc1"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
905_Statin_Contrastive
434 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
cafierom's picture
cafierom
Add new SentenceTransformer model
27067e5 verified 8 months ago
  • 1_Pooling
    Add new SentenceTransformer model 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    18.5 kB
    Add new SentenceTransformer model 8 months ago
  • config.json
    612 Bytes
    Add new SentenceTransformer model 8 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 8 months ago
  • model.safetensors
    433 MB
    xet
    Add new SentenceTransformer model 8 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 8 months ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model 8 months ago
  • special_tokens_map.json
    125 Bytes
    Add new SentenceTransformer model 8 months ago
  • tokenizer.json
    669 kB
    Add new SentenceTransformer model 8 months ago
  • tokenizer_config.json
    1.22 kB
    Add new SentenceTransformer model 8 months ago
  • vocab.txt
    213 kB
    Add new SentenceTransformer model 8 months ago