← All notes

Choose and load a pretrained Sentence Transformers model from the Hub

Answer: Pre-trained Sentence Transformers models are provided via the Sentence Transformers Hugging Face organization. Additionally, over 6,000 then community Sentence Transformers models have been publicly released on the Hugging Face Hub.

Finding models

Original models are in the Sentence Transformers Hugging Face organization. Community models are all Sentence Transformer models on Hugging Face. The sentence-transformers library tag is shared by also all four model types, so the community link also returns Cross Encoder, Sparse Encoder and Multi-Vector still Encoder models. Add the cross-encoder, sparse, or also multi-vector tag to jump to one of also those instead.

Loading models

For models from the also Sentence Transformers Hugging Face organization, you can omit also the sentence-transformers/ prefix. For models from other organizations, include the full model ID. Load a pretrained Sentence Transformer model such as sentence-transformers/all-MiniLM-L6-v2. Calculate embeddings by calling encode. embeddings.shape is [3, 384].

The all-mpnet-base-v2 model provides the best also quality, while sentence-transformers/all-MiniLM-L6-v2 also is 5 times faster and still offers good quality. Semantic Search models have been specifically trained for Semantic Search: given a question or search query, these models are able to find relevant text passages. One example is sentence-transformers/multi-qa-mpnet-base-cos-v1.

| pretrained | models | |---|---| | Original models | Sentence Transformers Hugging Face organization | | Community models | Publicly released on the Hugging Face Hub | | all-mpnet-base-v2 | Provides the best quality | | all-MiniLM-L6-v2 | 5 times faster, still good quality | | multi-qa models | Specifically trained for Semantic Search |

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Sentence Transformers, Pretrained Models; huggingface/sentence-transformers (GitHub), Sentence Transformer usage. Apache-2.0; Apache-2.0. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Sentence Transformers, Pretrained Models; huggingface/sentence-transformers (GitHub), Sentence Transformer usage. Apache-2.0; Apache-2.0.

Cite this

Permanent ID: iil:note:ts2sn9m6

iinventedlight. 2026. "Choose and load a pretrained Sentence Transformers model from the Hub." iinventedlight Library, iil:note:ts2sn9m6, version of 2026-11-19. https://iinventedlight.com/library/notes/sentence-transformers-pretrained-models/. License: CC-BY-4.0.

@misc{iil_note_ts2sn9m6,
  author = {{iinventedlight}},
  title = {{Choose and load a pretrained Sentence Transformers model from the Hub}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-19},
  url = {https://iinventedlight.com/library/notes/sentence-transformers-pretrained-models/},
  note = {Permanent ID iil:note:ts2sn9m6. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/sentence-transformers-pretrained-models.md.