Model reference · open weights

e5-small

e5-small is an open-weight embedding model from intfloat, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings intfloat 1 variants 666k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What e5-small is

E5-small-v2 Text Embeddings by Weakly-Supervised Contrastive Pre-training. Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022 This model has 12 layers and the embedding size is 384. Usage Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset. Training Details Please refer to our paper at https://arxiv.org/pdf/2212.03533.pdf. Benchmark Evaluation Check out unilm/e5 to reproduce evaluation results on the BEIR and MTEB benchmark. Support for Sentence Transformers Below is an example for usage with sentencetransformers. Package requirements pip install sentencetransformers~=2.2.2 Contributors: michaelfeil FAQ 1. Do I need to add the prefix "query: " and "passage: " to input texts? Yes, this is how the model is trained, otherwise you will see a performance degradation. Here are some rules of thumb: - Use "query: " and "passage: " correspondingly for asymmetric tasks such as passage retrieval in open QA, ad-hoc information retrieval. - Use "query: " prefix for symmetric tasks such as semantic similarity, paraphrase retrieval. - Use "query: " prefix if you want to use embeddings as features, such as linear probing classification, clustering. 2. Why are my reproduced results slightly different from reported in the model card? Different versions of transformers and pytorch could cause negligible but non-zero performance differences. 3. Why does the cosine similarity scores distribute around 0.7 to 1.0? This is a known and expected behavior as we use a low temperature 0.01 for InfoNCE contrastive loss. For text embedding tasks like text retrieval or semantic similarity, what matters is the relative order of the scores instead of the absolute values, so this should not be an issue. Citation If you find our paper or models helpful, please consider cite as follows: Limitations This model only works for English texts. Long texts will be truncated to at most 512 tokens.

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makerintfloat
TypeEmbedding models
Parameters (lead)33M
Context512 tokens
Variants1
Runs withsentence-transformers
Released2023-05-19
Popularity666k downloads / month
Likes122
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
e5-small-v233MBF16~0.1 GBWeights ↗

Benchmarks

Reported results

As published on the model card — the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
ClassificationMTEB AmazonCounterfactualClassification (en)accuracy77.597
ClassificationMTEB AmazonCounterfactualClassification (en)ap41.671
ClassificationMTEB AmazonCounterfactualClassification (en)f171.865
ClassificationMTEB AmazonPolarityClassificationaccuracy91.266
ClassificationMTEB AmazonPolarityClassificationap87.676
ClassificationMTEB AmazonPolarityClassificationf191.243
ClassificationMTEB AmazonReviewsClassification (en)accuracy45.882
ClassificationMTEB AmazonReviewsClassification (en)f145.081
RetrievalMTEB ArguAnamap_at_120.697
RetrievalMTEB ArguAnamap_at_1033.975
RetrievalMTEB ArguAnamap_at_10035.223
RetrievalMTEB ArguAnamap_at_100035.26
RetrievalMTEB ArguAnamap_at_329.777
RetrievalMTEB ArguAnamap_at_532.035
RetrievalMTEB ArguAnamrr_at_120.982
RetrievalMTEB ArguAnamrr_at_1034.094
RetrievalMTEB ArguAnamrr_at_10035.343
RetrievalMTEB ArguAnamrr_at_100035.38
RetrievalMTEB ArguAnamrr_at_329.884
RetrievalMTEB ArguAnamrr_at_532.142
RetrievalMTEB ArguAnandcg_at_120.697
RetrievalMTEB ArguAnandcg_at_1041.668
RetrievalMTEB ArguAnandcg_at_10047.397
RetrievalMTEB ArguAnandcg_at_100048.305

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys e5-small for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (e5-small below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"e5-small","input":"text to embed"}'

Details

Languages, data & research

Languages

en

Tags

sentence-transformers pytorch tf onnx safetensors openvino bert mteb Sentence Transformers sentence-similarity en model-index text-embeddings-inference endpoints_compatible

Papers

Licence

Open weights

Open weights under mit — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want e5-small on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms