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

NeuML
/
bioclinical-modernbert-base-embeddings

Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
modernbert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use NeuML/bioclinical-modernbert-base-embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use NeuML/bioclinical-modernbert-base-embeddings with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("NeuML/bioclinical-modernbert-base-embeddings")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use NeuML/bioclinical-modernbert-base-embeddings with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("NeuML/bioclinical-modernbert-base-embeddings")
    model = AutoModel.from_pretrained("NeuML/bioclinical-modernbert-base-embeddings")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
bioclinical-modernbert-base-embeddings
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
davidmezzetti's picture
davidmezzetti
Update README.md
048ad44 verified 9 months ago
  • 1_Pooling
    Upload model 11 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • README.md
    6.63 kB
    Update README.md 9 months ago
  • config.json
    1.21 kB
    Upload model 11 months ago
  • config_sentence_transformers.json
    205 Bytes
    Upload model 11 months ago
  • model.safetensors
    596 MB
    xet
    Upload model 11 months ago
  • modules.json
    229 Bytes
    Upload model 11 months ago
  • sentence_bert_config.json
    54 Bytes
    Upload model 11 months ago
  • similarity_evaluation_results.csv
    89 Bytes
    Upload model 11 months ago
  • special_tokens_map.json
    694 Bytes
    Upload model 11 months ago
  • tokenizer.json
    3.58 MB
    Upload model 11 months ago
  • tokenizer_config.json
    20.8 kB
    Upload model 11 months ago