Mindket

all-MiniLM-L6-v2

Newversion 1 · updated

Overview

Turns sentences and short paragraphs into 384-dimensional vectors for semantic search, clustering and sentence similarity. For developers building English search or retrieval features.

all-MiniLM-L6-v2 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python
  • The sentence-transformers package
Runs in
  • Python with the sentence-transformers library
  • Python with Hugging Face Transformers and PyTorch
  • Windows, macOS or Linux, where you can download the files with Python
Start with
pip install -U sentence-transformers

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This sentence-transformers model turns a sentence or short paragraph into a vector of 384 numbers. Texts with similar meaning end up close together, which makes the vectors useful for semantic search and clustering. It has 22.7M parameters and is listed for English.

Who it suits

It suits developers who need to compare the meaning of short texts without running a large model, such as people adding search, grouping or duplicate checks to an app.

IndustryWho uses itHow they use itExample
SoftwareDevelopers adding searchEncode documents and queries, then compare the vectorsA help-center search that matches meaning, not only words
DataAnalysts grouping textCluster short texts by their vectorsGroup support messages by topic
ContentTeams checking overlapScore how close two sentences areFlag near-duplicate sentences

People who need to embed long documents or other languages can skip it, since the card is about short English text.

Where to use it

  • Python with the sentence-transformers library
  • Python with Hugging Face Transformers and PyTorch
  • Windows, macOS or Linux, where you can download the files with Python
Use caseWhoWhat they get back
Semantic searchDevelopersVectors to rank documents against a query
ClusteringAnalystsVectors that group similar texts together
Sentence similarityDevelopersA way to compare two sentences by meaning

How to set it up

You need these first:

  • Python
  • The sentence-transformers package
  1. Install the sentence-transformers package with the command below.
  2. Optionally download the model files yourself with the Hugging Face tool. They take about 91 MB in F32.
  3. Load the model by its id in Python, as shown in the next section.
pip install -U sentence-transformers
pip install -U huggingface_hub
hf download sentence-transformers/all-MiniLM-L6-v2

How to use it

Load the model, pass it a list of sentences and call encode. You get one embedding per sentence. The card gives this script.

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
embeddings = model.encode(sentences)
print(embeddings)

The card also shows a second way that uses Transformers directly. You run the text through the model and then apply mean pooling over the token embeddings yourself.

ToolWhat it does
SentenceTransformerLoads the model by its id
model.encodeTurns a list of sentences into embeddings

Example

You pass in a list of two short sentences and print the result. You get back one vector of 384 numbers for each sentence, ready to compare, cluster or store for search.

For newcomers and experts

An embedding is a list of numbers that stands for the meaning of a text. Two texts about the same thing get lists that sit close together. A good first step is the short script above, which prints the vectors for two sentences.

The model starts from nreimers/MiniLM-L6-H384-uncased and was fine-tuned on a dataset of 1B sentence pairs with a contrastive objective. Given one sentence of a pair, it learns to pick the true partner out of randomly sampled others, using cosine similarity and cross entropy. Training ran on a TPU v3-8 for 100k steps at batch size 1024, with sequences limited to 128 tokens.

  1. Your sentences go in
  2. The model makes one 384-number vector each
  3. You compare or group the vectors

Good to know

  • Size: 22.7M parameters, about 91 MB in F32 and about 11 MB at 4-bit, as an estimate
  • Input length: text longer than 256 word pieces is cut off by default
  • Versions: Hugging Face lists 132 quantized and 1,164 fine-tuned versions made by other people
Weight size in MB
F3291 MB
4-bit estimate11 MB
  • License: apache-2.0
  • Cost to run: none named, no API key or account
  • Data it reaches: it downloads model files from Hugging Face, and the script reads only the sentences you pass in
  • Not for: long documents, since text beyond 256 word pieces is cut by default

README and files

README

all-MiniLM-L6-v2

Turns sentences and short paragraphs into 384-dimensional vectors for semantic search, clustering and sentence similarity. For developers building English search or retrieval features.

Made by sentence-transformers on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: This sentence-transformers model turns a sentence or short paragraph into a vector of 384 numbers. Texts with similar meaning end up close together, which makes the vectors useful for semantic search and clustering. It has 22.7M parameters and is listed for English.

Who it suits: It suits developers who need to compare the meaning of short texts without running a large model, such as people adding search, grouping or duplicate checks to an app.

Industry | Who uses it | How they use it | Example
Software | Developers adding search | Encode documents and queries, then compare the vectors | A help-center search that matches meaning, not only words
Data | Analysts grouping text | Cluster short texts by their vectors | Group support messages by topic
Content | Teams checking overlap | Score how close two sentences are | Flag near-duplicate sentences

People who need to embed long documents or other languages can skip it, since the card is about short English text.

Where to use it:

  • Python with the sentence-transformers library
  • Python with Hugging Face Transformers and PyTorch
  • Windows, macOS or Linux, where you can download the files with Python
Use case | Who | What they get back
Semantic search | Developers | Vectors to rank documents against a query
Clustering | Analysts | Vectors that group similar texts together
Sentence similarity | Developers | A way to compare two sentences by meaning

How to set it up: You need these first:

  • Python
  • The sentence-transformers package
  1. Install the sentence-transformers package with the command below.
  2. Optionally download the model files yourself with the Hugging Face tool. They take about 91 MB in F32.
  3. Load the model by its id in Python, as shown in the next section.
pip install -U sentence-transformers
pip install -U huggingface_hub
hf download sentence-transformers/all-MiniLM-L6-v2

How to use it: Load the model, pass it a list of sentences and call encode. You get one embedding per sentence. The card gives this script.

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
embeddings = model.encode(sentences)
print(embeddings)

The card also shows a second way that uses Transformers directly. You run the text through the model and then apply mean pooling over the token embeddings yourself.

Tool | What it does
SentenceTransformer | Loads the model by its id
model.encode | Turns a list of sentences into embeddings

Example: You pass in a list of two short sentences and print the result. You get back one vector of 384 numbers for each sentence, ready to compare, cluster or store for search.

For newcomers and experts: An embedding is a list of numbers that stands for the meaning of a text. Two texts about the same thing get lists that sit close together. A good first step is the short script above, which prints the vectors for two sentences.

The model starts from nreimers/MiniLM-L6-H384-uncased and was fine-tuned on a dataset of 1B sentence pairs with a contrastive objective. Given one sentence of a pair, it learns to pick the true partner out of randomly sampled others, using cosine similarity and cross entropy. Training ran on a TPU v3-8 for 100k steps at batch size 1024, with sequences limited to 128 tokens.

Your sentences go in
The model makes one 384-number vector each
You compare or group the vectors

Good to know:

  • Size: 22.7M parameters, about 91 MB in F32 and about 11 MB at 4-bit, as an estimate
  • Input length: text longer than 256 word pieces is cut off by default
  • Versions: Hugging Face lists 132 quantized and 1,164 fine-tuned versions made by other people
Title: Weight size in MB
F32: 91 MB
4-bit estimate: 11 MB
  • License: apache-2.0
  • Cost to run: none named, no API key or account
  • Data it reaches: it downloads model files from Hugging Face, and the script reads only the sentences you pass in
  • Not for: long documents, since text beyond 256 word pieces is cut by default

On Hugging Face, 13 November 2026

  • Task: sentence similarity
  • Library: sentence-transformers
  • Parameters: 22.7M
  • Weights: about 91 MB in F32; about 11 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 174,740,184
  • Likes: 6,104
  • License: apache-2.0
  • Languages: en
  • Based on: nreimers/MiniLM-L6-H384-uncased
  • Quantized versions: 137
  • Fine-tunes: 1,165
  • Tags: sentence-transformers, pytorch, rust, onnx, safetensors, openvino, bert, feature-extraction, sentence-similarity, transformers, text-embeddings-inference

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download sentence-transformers/all-MiniLM-L6-v2

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
all-MiniLM-L6-v2 This page174,740,1846,10422.7Mapache-2.0
paraphrase-multilingual-MiniLM-L12-v2Shares openvino · bert · sentence-similarity26,540,1251,505118Mapache-2.0
multilingual-e5-largeShares openvino · sentence-similarity · text-embeddings-inference7,120,5551,284560Mmit
bge-small-en-v1.5Shares bert · sentence-similarity · text-embeddings-inference45,750,54867133.4Mmit
bge-base-en-v1.5Shares bert · sentence-similarity · text-embeddings-inference8,508,165542109Mmit
bge-m3Shares sentence-similarity · text-embeddings-inference · sentence-transformers29,282,1673,989—mit
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

vpunaShow HN: Vpuna AI Search – A semantic search platformDear HN Community, I am a long time fan and first-time contributor. I just launched a developer focused semantic search platform and wanted to share it with the community. The idea is simple: upload structured or unstructured documents, select the fields you want to index and tag as metadata, and…9 points · 1 replyBreadbrowsermaking a good embedding model is like really hard, i'm just going to use "sentence-transformers/all-MiniLM-L6-v2"3 likesdo-meShow HN: SemanticFinder, semantic search in the browser with transformers.jsHi folks! I created a frontend-only live semantic search engine based on transformers.js and sentence-transformers/all-MiniLM-L6-v2. Simply pour in your text and a query term. Hit enter and watch the search engine in action! It's highly customizable and stores the embeddings in a variable so that…10 points@sm14yu.bsky.socialSemantic retrieval setup uses Sentence Transformers (all-MiniLM-L6-v2, 384D), ChromaDB, and similarity search. Pipeline: Text → Embeddings → Vector DB → Retrieval → LLM. Next focus is optimized chunking.blemisShow HN: We replaced 5 ML models with 1 shared encoder on an $11/month VPSWe were running 5 fine-tuned MiniLM models for a resume-to-job matching pipeline — 455MB on an $11/month VPS, one per task. I consolidated them into a single shared encoder with 5 lightweight heads: 25MB total, same latency, zero API calls. The matching score went up, not down. The 5 tasks: 1.…3 points · 1 replyデイリーHuggingFaceトレンド今日のHuggingFaceトレンド sentence-transformers/all-MiniLM-L6-v2 文章や段落を384次元の密ベクトルに変換するモデルの提供を目的としています。 主にクラスタリングや意味検索などのタスクに利用されます。pinnerAsk HN: Can RAG be used for recommendation system?I have already worked on this for a week, but it's very hard to define the needs. The idea was to create a fully customized feed (with privacy! nothing is sent to the server), across different platform. Here are some questions that I have encountered: 1. I'm using…2 points@anantahome.bsky.socialOne counterintuitive insight from my testing: using sentence-transformers (like all-MiniLM-L6-v2) can significantly reduce the memory requirements for large models, making them more feasible to run locally. https://anantatrade.com/blog/self-hosted-ai-stack-2026TaranovskiPython library for translating between embedding model vector spacesEmbeddingAdapters is a Python library for translating between embedding model vector spaces. It provides plug-and-play adapters that map embeddings produced by one model into the vector space of another — locally or via provider APIs — enabling cross-model retrieval, routing, interoperability, and…@anantatrade.bsky.socialOne counterintuitive insight from my testing: using sentence-transformers (like all-MiniLM-L6-v2) can significantly reduce the memory requirements for large models, making them more feasible to run locally. https://anantatrade.com/blog/self-hosted-ai-stack-2026techtalksweeklyAsk HN: What Are You Working On? (December 2025)that's a really cool project! I'm building something similar, but for conference talks and podcasts[1], but in a form of a newsletter. I use semantic search ocasionally when building extra editions and use a sentence transformer with all-MiniLM-L6-v2 model. How did you go about implementing…Arif SolmazThe Swiss Army knife of sentence embeddings: 150M downloads strong, this tiny transformer turns any text into semantic vectors that actually understand meaning, not just keywords. 🔗 https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2 #SentenceTransformers #SemanticSearch #NLP

Searched

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k