Sentence Similarity
sentence-transformers
Safetensors
Transformers.js
MLX
English
modernbert
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run mlx-community/nomicai-modernbert-embed-base-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mlx-community/nomicai-modernbert-embed-base-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/nomicai-modernbert-embed-base-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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('feature-extraction', '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] hf download mlx-community/nomicai-modernbert-embed-base-4bit --local-dir nomicai-modernbert-embed-base-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download sentence_bert_config.json from mlx-community/nomicai-modernbert-embed-base-4bit: direct link, hf CLI and curl.
- Browser
- Download file 54 Bytes
-
https://huggingface.co/mlx-community/nomicai-modernbert-embed-base-4bit/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://mlx-community/nomicai-modernbert-embed-base-4bit/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/mlx-community/nomicai-modernbert-embed-base-4bit/resolve/main/sentence_bert_config.json
54 Bytes
| { | |
| "max_seq_length": 8192, | |
| "do_lower_case": false | |
| } |