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

jtatman
/
minilm-L12-H384-psychology

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

Instructions to use jtatman/minilm-L12-H384-psychology with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use jtatman/minilm-L12-H384-psychology with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("jtatman/minilm-L12-H384-psychology")
    
    sentences = [
        " A 58-year-old man suffers a stroke and is admitted to a rehabilitation unit for physical therapy. He is unable to wash the left side of his body and denies that his left arm belongs to him even though he clearly visualizes it.",
        "A",
        "Examination reveals that the patients somatosensory system is intact. These findings indicate that the patient may have a lesion. In which area of the brain is the lesion?n  A. Substantia nigra  B. Caudate nucleusn  C. Right parietal cortex  D. Left parietal cortexn  E. Right frontal cortex",
        "A"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
minilm-L12-H384-psychology
134 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
jtatman's picture
jtatman
Add new SentenceTransformer model
be51294 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
    14.7 kB
    Add new SentenceTransformer model over 1 year ago
  • config.json
    639 Bytes
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    133 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    125 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.3 kB
    Add new SentenceTransformer model over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model over 1 year ago