Skip to content

Models

glitchdata/all-minilm-l6-v2

For machines ♡ Like 0
Sentence similarity Sentence Transformers licence: Apache-2.0 text embeddings onnx english

Maps sentences and short paragraphs to 384-dimensional vectors for semantic search, clustering and similarity. Small and fast.

About

A six-layer MiniLM model fine-tuned by the Sentence Transformers project on over a billion sentence pairs. It turns text into a 384-dimensional vector so that similar meanings land close together — the usual starting point for semantic search and retrieval-augmented generation. Input longer than 256 word pieces is truncated.

Use it

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
vectors = model.encode(["A man is eating food.", "Someone is having a meal."])

The ONNX export (onnx/model.onnx) runs without PyTorch, for example with ONNX Runtime; pair it with tokenizer.json and apply mean pooling and normalisation yourself.

Files

Files link to the original repository on Hugging Face. English only.

Licence

Apache-2.0, from the Sentence Transformers project.

Share X LinkedIn Reddit Bluesky Email

Learn with this model

Courses and guides on this site that work with it.

Related models

Browse models →

Classifies English text as positive or negative. DistilBERT fine-tuned on the Stanford Sentiment Treebank.

Text classification · Updated 10h ago · ↓ 14 For machines

A ResNet-50 v2 trained on ImageNet, exported to ONNX: classifies an image into one of 1,000 categories.

Image classification · Updated 1w ago · ↓ 6 For machines

Object detection model from morsetechlab, built for Ultralytics. 75.5k downloads on Hugging Face in the last month.

Object detection · Updated 4mos ago · ↓ 0 For machines

Image generation model from commaai, built for Transformers. 563 downloads on Hugging Face in the last month.

Image generation · Updated 1mo ago · ↓ 0 For machines

Sentence similarity model from intfloat, built for Sentence Transformers. 10.9M downloads on Hugging Face in the last month.

Sentence similarity · Updated 6mos ago · ↓ 0 For machines

Sentence similarity model from nomic-ai, built for Sentence Transformers. 13M downloads on Hugging Face in the last month.

Sentence similarity · Updated 6mos ago · ↓ 0 For machines