aicoolies logoaicoolies logo
Hugging Face logo

Text Embeddings Inference

Hugging Face's open-source inference server for embeddings, rerankers, and classifiers

at a glance
verified specs
Pricing Model
open-source
License
Open Source
Telemetry
Clean
Last Verified
Aug 26, 2026
Supported Platforms
Containerized or locally built inference server for CPU and supported NVIDIA/AMD/Metal environments, with embedding, reranking and classifier APIs, dynamic batching, Prometheus and optional OTLP export.
Primary Categories
Model Providers, AI Data Tools, Self-Hosted Platforms
Key Use Cases
Data Engineering, Self-Hosted Deployment, API Integration, AI Model Training
Tags
Open Source, Self-Hosted, Embeddings, Model Serving, AI Inference

Text Embeddings Inference is Hugging Face's Apache-2.0 server for high-throughput embedding, reranking, and sequence-classification models. TEI packages token-based dynamic batching, optimized Transformers kernels, Safetensors loading, OpenAI-compatible embedding endpoints, Prometheus metrics, and configurable OpenTelemetry tracing in deployable CPU and GPU images.

Text Embeddings Inference, usually shortened to TEI, is Hugging Face's open-source serving engine for embedding, reranking and sequence-classification workloads. It is deliberately separate from Text Generation Inference: TEI turns text into vectors or relevance scores for retrieval, semantic search, clustering, recommendations and RAG pipelines, while TGI focuses on generating text. Official documentation lists support across BERT-family models, Nomic, E5, GTE, Qwen, ModernBERT, Gemma and several reranker families. The server can expose OpenAI-compatible embedding endpoints, load private or gated Hub models with an HF token, and run from published Docker images or local builds.

TEI's production value comes from its serving controls rather than a claim that one embedding model is universally best. It uses token-based dynamic batching, Safetensors weight loading, optimized Transformers code, Flash Attention, Candle and cuBLASLt where supported. Operators can set maximum concurrent requests, batch-token budgets, request size, input truncation, pooling strategy, API-key authorization and model revision. Prometheus metrics and optional OpenTelemetry export support observability without requiring a Hugging Face hosted endpoint. Current hardware docs include CPU images and NVIDIA generations from Turing through Blackwell, with explicit caveats: Volta-class CUDA devices are unsupported and some newer architecture images remain experimental.

TEI is a strong fit when a team wants a self-hosted, repeatable embedding or reranking service that integrates cleanly with Hugging Face model artifacts. The Apache-2.0 engine is free, but the organization still pays for compute and must comply with each selected model's license. Hugging Face Inference Endpoints can run TEI as a separate managed, usage-priced service; those endpoint charges are not a license fee for TEI itself. Teams should compare TEI with general serving engines such as vLLM or Ollama when they need mixed generation workloads, and with Text Generation Inference when the primary requirement is token generation rather than vector extraction or reranking.

Pricing & Platform Specs

Pricing Summary

Text Embeddings Inference (TEI) is free and open-source under the Apache License 2.0. It can be deployed on self-hosted GPU/CPU infrastructure with no software licensing fees.

full pricing breakdown →

Supported Platforms

Containerized or locally built inference server for CPU and supported NVIDIA/AMD/Metal environments, with embedding, reranking and classifier APIs, dynamic batching, Prometheus and optional OTLP export.

Hugging Face's production LLM serving framework

Text Generation Inference (TGI) is Hugging Face's production-ready serving framework for large language models. It features flash attention, continuous batching, tensor parallelism, quantization via GPTQ/AWQ/EETQ, and Safetensors support. Powers Hugging Face's Inference API and Inference Endpoints, with an OpenAI-compatible API and Docker deployment. Supports LLaMA, Mistral, Falcon, and other popular model architectures.

Open Source

High-throughput LLM serving engine

vLLM is an Apache-2.0 LLM inference and serving engine focused on high-throughput self-hosted model APIs. It combines PagedAttention, continuous batching, prefix caching, quantization options, OpenAI-compatible serving, structured outputs, metrics, Docker/Kubernetes deployment guidance and integrations with agent and LLM frameworks.

Open Source

Run LLMs locally with one command

Tool for running large language models locally on your machine with a simple CLI interface. Download and run Llama 3, Mistral, Gemma, Phi, Code Llama, and dozens of other open-source models with a single command. Features model management, GPU acceleration (NVIDIA/AMD/Apple Silicon), OpenAI-compatible API server, Modelfile for customization, and multi-model switching. Ideal for offline AI development, privacy-sensitive use cases, and local testing. 120K+ GitHub stars.

Open Source

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Text Embeddings Inference?

Text Embeddings Inference is Hugging Face's Apache-2.0 server for high-throughput embedding, reranking, and sequence-classification models. TEI packages token-based dynamic batching, optimized Transformers kernels, Safetensors loading, OpenAI-compatible embedding endpoints, Prometheus metrics, and configurable OpenTelemetry tracing in deployable CPU and GPU images.

Is Text Embeddings Inference free?

Yes — Text Embeddings Inference is open source and free to use. Text Embeddings Inference (TEI) is free and open-source under the Apache License 2.0. It can be deployed on self-hosted GPU/CPU infrastructure with no software licensing fees.

Is Text Embeddings Inference open source?

Yes — Text Embeddings Inference is open source.

Is Text Embeddings Inference still maintained?

Yes — Text Embeddings Inference is active. Its listing was last verified on August 26, 2026.

What are the best Text Embeddings Inference alternatives?

The first editor-selected Text Embeddings Inference alternatives are Text Generation Inference, vLLM, Ollama.