Text Embeddings Inference

Hugging Face's production server for open embedding, re-ranking and classification models.

Active Local model runtimes Apache-2.0

Quick answer

Text Embeddings Inference is a hugging Face's production server for open embedding, re-ranking and classification models, listed under Local model runtimes. A typical small-business use: self-hosted embeddings for a RAG knowledge base so documents never go to an embedding API. The project publishes no official RAM figure, so we do not estimate a monthly server cost. License: Apache-2.0, which allows internal business use.

Last updated · facts verified against official docs on · sources

GitHub stars5.1k
Forks470
Latest releasev1.9.4Sep 15, 2026
Last commitNov 16, 2026
Est. server cost—

Activity data comes from GitHub and was last refreshed Nov 23, 2026.

What is Text Embeddings Inference?

Text Embeddings Inference (TEI) is Hugging Face's Rust server for deploying open-source text embedding, re-ranker, sequence classification and SPLADE models such as Qwen3-Embedding, BGE and GTE. It batches requests dynamically, exposes HTTP and gRPC APIs with OpenAPI docs, and ships Docker images per hardware target (CPU, NVIDIA generations, AMD Instinct), with OpenTelemetry tracing and Prometheus metrics.

Where it fits in a 10–200 person business

  • Self-hosted embeddings for a RAG knowledge base so documents never go to an embedding API
  • Re-ranking search results with a BGE or GTE re-ranker before sending them to an LLM
  • Air-gapped embedding service with weights mounted from a local folder

These use cases are our editorial suggestions, not claims made by the project.

Can a business use Text Embeddings Inference? (license)

LicenseApache-2.0
TypePermissive: MIT / Apache-2.0: use, modify and sell with few obligations.
Internal business useAllowed under the license text
What to watchPermissive. Internal and commercial use allowed; keep the license and NOTICE files. Each model you serve keeps its own license.

This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.

Data & compliance: does Text Embeddings Inference phone home?

Telemetry (usage data sent to the vendor) Not documented
Other calls home by default (updates, marketplaces, default cloud services) Yes, by default

With a Hugging Face model id, the weights are downloaded from the Hugging Face Hub (HF_TOKEN for gated models). The README documents an air-gapped setup with locally mounted weights.

How to turn it off: Download the weights in advance and pass the local path as --model-id.

Source: github.com/huggingface/text-embeddings-inference#air-gapped-deployment

Single sign-on (OIDC / SAML / LDAP) Not documented
Audit log Not documented
Role-based access control (RBAC) Not documented
Data residency / GDPR notes from the project Not documented

Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.

What hardware does Text Embeddings Inference need?

The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.

GPU: Optional. Official CPU images are published for x86_64 and aarch64; NVIDIA images need CUDA 12.2+ compatible drivers and compute capability 7.5 or newer (Volta and GTX 1000 series are not supported).

No official CPU, RAM or disk figures are published; memory use depends on the model and on --max-batch-tokens, which the project says it cannot infer automatically.

Source: github.com/huggingface/text-embeddings-inference#docker-images

How much does it cost to host Text Embeddings Inference per month?

The project publishes no RAM figure we could verify, so we do not estimate a cost.

How to deploy Text Embeddings Inference

Method: Docker

model=Qwen/Qwen3-Embedding-0.6B
volume=$PWD/data
docker run --gpus all -p 8080:80 -v $volume:/data --pull always ghcr.io/huggingface/text-embeddings-inference:cuda-1.9 --model-id $model

From the official instructions: github.com/huggingface/text-embeddings-inference#docker. Always check the source for the current version before you run it.

Known gotchas when self-hosting Text Embeddings Inference

  • By default the server answers every request. Set --api-key (API_KEY) to require a Bearer token before exposing the port. source
  • Pick the image tag for your hardware: the generic cuda image is for current NVIDIA cards, Turing (T4, RTX 2000) is experimental with Flash Attention off by default for precision reasons, and GPUs below compute capability 7.5 are not supported at all. source
  • Tune --max-batch-tokens (default 16384) for your model and GPU. The project calls it a critical control and cannot size it automatically because memory overhead depends on the model. source
  • Mount a volume at /data, or weights are downloaded again on every run. For air-gapped servers, download the model first and point --model-id at the mounted folder. source

Alternatives in Local model runtimes

Text Embeddings Inference FAQ

How much RAM does Text Embeddings Inference need?

Text Embeddings Inference does not publish an official RAM figure, so we do not state one.

Does Text Embeddings Inference need a GPU?

Optional. Official CPU images are published for x86_64 and aarch64; NVIDIA images need CUDA 12.2+ compatible drivers and compute capability 7.5 or newer (Volta and GTX 1000 series are not supported).

How much does it cost to self-host Text Embeddings Inference?

The software is free to download. The project publishes no official RAM figure, so we do not estimate a monthly server cost.

Is Text Embeddings Inference free for commercial use?

Text Embeddings Inference is licensed under Apache-2.0 (Permissive). Internal business use is allowed under the license text. Permissive. Internal and commercial use allowed; keep the license and NOTICE files. Each model you serve keeps its own license. This is a summary, not legal advice.

What are common problems when self-hosting Text Embeddings Inference?

By default the server answers every request. Set --api-key (API_KEY) to require a Bearer token before exposing the port. Pick the image tag for your hardware: the generic cuda image is for current NVIDIA cards, Turing (T4, RTX 2000) is experimental with Flash Attention off by default for precision reasons, and GPUs below compute capability 7.5 are not supported at all. Tune --max-batch-tokens (default 16384) for your model and GPU. The project calls it a critical control and cannot size it automatically because memory overhead depends on the model. Mount a volume at /data, or weights are downloaded again on every run. For air-gapped servers, download the model first and point --model-id at the mounted folder.

Is Text Embeddings Inference still maintained?

Yes, it is actively developed. Last commit: Nov 16, 2026. Latest release: v1.9.4 (Sep 15, 2026). Checked Nov 23, 2026.

How do I install Text Embeddings Inference?

The official method is Docker. The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/huggingface/text-embeddings-inference#docker

What are self-hosted alternatives to Text Embeddings Inference?

Other apps in Local model runtimes: Ollama, llama.cpp, vLLM, LocalAI, TextGen (text-generation-webui), SGLang, llamafile, KTransformers, TensorRT LLM, Xinference, llama-swap, Lemonade, GPUStack, Harbor (local LLM stack), RamaLama, Infinity.

Sources

Facts on this page were checked against the project's own repository and docs on 2026-11-10. Spotted something out of date? Tell us.