huggingface/text-embeddings-inference

A blazing fast inference solution for text embeddings models

What it solves

Text Embeddings Inference (TEI) provides a high-performance, production-ready way to deploy and serve open-source text embedding and sequence classification models. It eliminates the need for complex model graph compilation, allowing for faster setup and deployment.

How it works

TEI acts as a specialized server for your models. It uses optimized technologies like Flash Attention, Candle, and cuBLASLt to speed up inference. It supports token-based dynamic batching to maximize hardware usage and loads models using efficient formats like Safetensors and ONNX. You can run it via Docker containers, which are designed to be small and quick to boot, making them suitable for serverless environments.

Who it’s for

It is for developers and engineers who need to deploy embedding or classification models in production environments. It is ideal for those who want to serve popular models (such as BGE, GTE, or E5) with high throughput and low latency, while maintaining compatibility with standard tools like Prometheus for monitoring and OpenTelemetry for distributed tracing.

Highlights

  • No model graph compilation required.
  • Supports local execution on Apple Silicon (Metal).
  • Token-based dynamic batching for efficient hardware utilization.
  • Production-ready features including distributed tracing and Prometheus metrics.
  • Wide support for popular model architectures like Nomic, BERT, Mistral, and Qwen.
  • Optimized for various hardware backends, including NVIDIA GPUs and CPUs.

Related

  • Dispatch
  • Dispatch
  • Project
  • Project
  • Project