Skip to content
llmmodels
Embedding modelOpen weightsFree tier

All-MiniLM-L12-v2

by Sentence Transformers · Aug 30, 2021

All-MiniLM-L12-v2 is an open-weight embedding model from Sentence Transformers, released Aug 30, 2021. It has a 128-token context window.

Released
Aug 30, 2021
Type
Embedding model
Parameters
Undisclosed
Context window
128 tokens
Max output
384 tokens
Input
text
Output
text
Weights
Open weights
License
—
Knowledge cutoff
—
Status
Available via API

About All-MiniLM-L12-v2

Embedding model for semantic search, retrieval, clustering, and ranking pipelines

Where to run All-MiniLM-L12-v2 — API providers & pricing

ProviderInput $/1MOutput $/1MCached inputContext
InfomaniakFreeFree—128

Open weights: you can also run All-MiniLM-L12-v2 locally with Ollama, LM Studio, llama.cpp or vLLM.

All-MiniLM-L12-v2 vs alternatives

Alternatives to All-MiniLM-L12-v2
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
hubert-large-ll60kopenMetaMar 2022—————
bart-baseopenMetaMar 2022139M————
canine-copenGoogle DeepMindMar 2022132M————
wavlm-largeopenMicrosoftMar 2022—————
wavlm-base-plusopenMicrosoftMar 2022—————
Multi-QA-mpnet-base-dot-v1openSentence TransformersAug 2021—512$0.009Free—
All-MiniLM-L6-v2openSentence TransformersAug 2021—256$0.009Free—
bge-small-en-v1.5openBAAISep 202333M————

More models from Sentence Transformers

All Sentence Transformers models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Multi-QA-mpnet-base-dot-v1openAug 2021—512$0.009Free
All-MiniLM-L6-v2openAug 2021—256$0.009Free

Frequently asked questions

Who made All-MiniLM-L12-v2?

All-MiniLM-L12-v2 was developed by Sentence Transformers. It was released on Aug 30, 2021.

What is the context window of All-MiniLM-L12-v2?

All-MiniLM-L12-v2 supports a context window of 128 tokens (128) and can generate up to 384 output tokens per response.

Is All-MiniLM-L12-v2 open source?

Yes. All-MiniLM-L12-v2's weights are publicly available, so you can download and run it yourself.

Where can I use All-MiniLM-L12-v2?

All-MiniLM-L12-v2 is available via 1 API provider, and you can also self-host it with tools like vLLM, Ollama or LM Studio.

Sources: models.dev. Last updated 2026-11-22.