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

mlx-community
/
nomicai-modernbert-embed-base-4bit

Sentence Similarity
sentence-transformers
Safetensors
Transformers.js
MLX
English
modernbert
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/nomicai-modernbert-embed-base-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use mlx-community/nomicai-modernbert-embed-base-4bit with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("mlx-community/nomicai-modernbert-embed-base-4bit")
    
    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.js

    How to use mlx-community/nomicai-modernbert-embed-base-4bit with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('sentence-similarity', 'mlx-community/nomicai-modernbert-embed-base-4bit');
  • MLX

    How to use mlx-community/nomicai-modernbert-embed-base-4bit with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir nomicai-modernbert-embed-base-4bit mlx-community/nomicai-modernbert-embed-base-4bit
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
nomicai-modernbert-embed-base-4bit
88.1 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
prince-canuma's picture
prince-canuma
Create README.md
50ba8b0 verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    562 kB
    Create README.md about 1 year ago
  • config.json
    1.37 kB
    Upload folder using huggingface_hub about 1 year ago
  • config_sentence_transformers.json
    210 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors
    83.9 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors.index.json
    19.7 kB
    Upload folder using huggingface_hub about 1 year ago
  • modules.json
    349 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • sentence_bert_config.json
    54 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    694 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    3.58 MB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    20.8 kB
    Upload folder using huggingface_hub about 1 year ago