Text Embeddings Inference
Hugging Face's production server for open embedding, re-ranking and classification models.
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
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)
| License | Apache-2.0 |
|---|---|
| Type | Permissive: MIT / Apache-2.0: use, modify and sell with few obligations. |
| Internal business use | Allowed under the license text |
| What to watch | Permissive. 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
- Ollama The simplest way to download and run open-weight LLMs locally behind an API. Compare Ollama vs Text Embeddings Inference
- llama.cpp Lightweight C/C++ engine that runs quantized open models on CPU or GPU, with an OpenAI-compatible server. Compare llama.cpp vs Text Embeddings Inference
- vLLM High-throughput LLM inference server for GPUs with an OpenAI-compatible API. Compare Text Embeddings Inference vs vLLM
- LocalAI OpenAI-compatible API for LLMs, vision, voice and images on any hardware. Compare LocalAI vs Text Embeddings Inference
- TextGen (text-generation-webui) Local LLM app (formerly text-generation-webui) with a browser UI, OpenAI/Anthropic-compatible API and LoRA training. Compare Text Embeddings Inference vs TextGen (text-generation-webui)
- SGLang Fast serving engine for LLMs and multimodal models on GPU servers, with an OpenAI-style API. Compare SGLang vs Text Embeddings Inference
- llamafile Mozilla.ai's single-file executables that bundle an open LLM with llama.cpp and run on most OSes with no install. Compare llamafile vs Text Embeddings Inference
- KTransformers CPU and GPU inference kernels with a model-serving CLI and SGLang integration. Compare KTransformers vs Text Embeddings Inference
- TensorRT LLM NVIDIA GPU inference toolkit with an OpenAI-compatible serving command. Compare TensorRT LLM vs Text Embeddings Inference
- Xinference Model-serving platform for LLM, embedding, rerank, speech and image models behind one OpenAI-compatible API. Compare Text Embeddings Inference vs Xinference
- llama-swap Hot-swap proxy that runs many local AI servers behind one OpenAI- and Anthropic-compatible API. Compare llama-swap vs Text Embeddings Inference
- Lemonade Local OpenAI-compatible server for chat, speech and image models on CPU, GPU or AMD NPU. Compare Lemonade vs Text Embeddings Inference
- GPUStack GPU cluster manager that deploys vLLM, SGLang and other engines behind an OpenAI-compatible API. Compare GPUStack vs Text Embeddings Inference
- Harbor (local LLM stack) One CLI to start a pre-wired local AI stack, such as Open WebUI with llama.cpp, Ollama or vLLM, plus 50+ services. Compare Harbor (local LLM stack) vs Text Embeddings Inference
- RamaLama Run and serve AI models as OCI containers with Podman or Docker, using an image matched to your GPU. Compare RamaLama vs Text Embeddings Inference
- Infinity High-throughput REST server for embeddings, reranking and classification models. Compare Infinity vs Text Embeddings Inference
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
- GitHub repository: github.com/huggingface/text-embeddings-inference
- Official documentation: huggingface.co/docs/text-embeddings-inference/quick_tour
- License text: github.com/huggingface/text-embeddings-inference/blob/main/LICENSE
- Hardware requirements, Gotcha 2: github.com/huggingface/text-embeddings-inference#docker-images
- Deploy instructions, Gotcha 1, Gotcha 3: github.com/huggingface/text-embeddings-inference#docker
- Gotcha 4: github.com/huggingface/text-embeddings-inference#air-gapped-deployment
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
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.