Sentence Similarity
sentence-transformers
Safetensors
Transformers.js
MLX
English
modernbert
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use mlx-community/nomicai-modernbert-embed-base-8bit 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-8bit with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mlx-community/nomicai-modernbert-embed-base-8bit") 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-8bit 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-8bit'); - MLX
How to use mlx-community/nomicai-modernbert-embed-base-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir nomicai-modernbert-embed-base-8bit mlx-community/nomicai-modernbert-embed-base-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
- Xet hash:
- 832a9c4cafe652a7df23cb73eaf0eb39d4f4a50c630b8b7499affe59d879b37b
- Size of remote file:
- 158 MB
- SHA256:
- 39b208b35ae885295d6b60f7f344bc7250c58b1b8fb42e8fa368c0fb5d218543
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.