Infinity
High-throughput REST server for embeddings, reranking and classification models.
Quick answer
Infinity is a high-throughput REST server for embeddings, reranking and classification models, listed under Local model runtimes. A typical small-business use: self-hosted embedding endpoint for a RAG stack instead of a paid embeddings API. It needs a GPU server; we do not estimate that cost because GPU prices vary too much by card and provider. License: Infinity Restricted MIT License 1.0 (v3); MIT (Python packages), 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 Infinity?
Infinity serves embedding, reranking, classification and token-classification models through a REST API with an OpenAI-compatible /v1/embeddings endpoint. Version 3 is a native Rust server using LibTorch; the earlier Python server (infinity-emb, v2) is still documented separately. It loads Hugging Face checkpoints or local model folders, supports dense, multimodal, late-interaction and SPLADE sparse embeddings, and runs a full model replica on each visible GPU.
Where it fits in a 10–200 person business
- Self-hosted embedding endpoint for a RAG stack instead of a paid embeddings API
- Rerank search results from an internal knowledge base
- Run text classification or entity extraction models behind one API
These use cases are our editorial suggestions, not claims made by the project.
Can a business use Infinity? (license)
| License | Infinity Restricted MIT License 1.0 (v3); MIT (Python packages) |
|---|---|
| Type | Custom / conditional: Apache- or BSD-based with extra conditions (branding, multi-tenant SaaS, derivatives). |
| Internal business use | Allowed under the license text |
| What to watch | Custom source-available license based on MIT for the v3 server: use, modification, resale and private changes are allowed with no revenue threshold, but any use on the 25 cloud providers listed in its Appendix A (for example Modal) is prohibited for every purpose. Your own hardware and unlisted clouds such as AWS, Azure or GCP are allowed. The Python v2 packages stay MIT; model weights have their own licenses. |
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 Infinity phone home?
| Telemetry (usage data sent to the vendor) | Not documented |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Not documented |
| Single sign-on (OIDC / SAML / LDAP) | Not documented The only documented access control is an optional bearer API key. Source: github.com/michaelfeil/infinity/blob/main/libs/infinity-v3/README.md |
| 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 Infinity need?
The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.
GPU: The official v3 Docker image needs an NVIDIA GPU with compute capability SM80 (Ampere) or newer and the NVIDIA Container Toolkit; Turing (SM75) is unsupported. Hosts without a supported GPU need a CPU build.
No RAM or disk figure is published. Each GPU must fit the full model, including all experts for MoE checkpoints.
How much does it cost to host Infinity per month?
Needs a GPU server for practical use. Not estimated, because GPU prices vary too much by card and provider.
How to deploy Infinity
Method: Docker (NVIDIA GPU)
docker run --rm --gpus all -p 8000:8000 -v infinity-cache:/data \
ghcr.io/michaelfeil/infinity_v3:nvidia-3.0.0 \
--model-id sentence-transformers/all-MiniLM-L6-v2 \
--torch-device cuda --dtype bfloat16 \
--hostname 0.0.0.0 --port 8000 From the official instructions: github.com/michaelfeil/infinity#run-with-docker. Always check the source for the current version before you run it.
Known gotchas when self-hosting Infinity
- The v3 license bans use on 25 listed providers (including private endpoints and rented GPUs on Modal) for every purpose, including testing. Check the list before deploying on a GPU cloud. source
- CUDA inference needs SM80 (Ampere) or newer, so T4-class (Turing) GPUs are unsupported; use a CPU build on such hosts. source
- The server binds to 0.0.0.0 by default and the API key is optional (--api-key or INFINITY_API_KEY). Set a key or firewall the port before exposing it. source
- v3 is a rewrite: the infinity-emb Python package and the infinity_emb v2 command belong to the older server, so v2 guides and flags do not apply to v3. source
Alternatives in Local model runtimes
- Ollama The simplest way to download and run open-weight LLMs locally behind an API. Compare Infinity vs Ollama
- llama.cpp Lightweight C/C++ engine that runs quantized open models on CPU or GPU, with an OpenAI-compatible server. Compare Infinity vs llama.cpp
- vLLM High-throughput LLM inference server for GPUs with an OpenAI-compatible API. Compare Infinity vs vLLM
- LocalAI OpenAI-compatible API for LLMs, vision, voice and images on any hardware. Compare Infinity vs LocalAI
- TextGen (text-generation-webui) Local LLM app (formerly text-generation-webui) with a browser UI, OpenAI/Anthropic-compatible API and LoRA training. Compare Infinity vs TextGen (text-generation-webui)
- SGLang Fast serving engine for LLMs and multimodal models on GPU servers, with an OpenAI-style API. Compare Infinity vs SGLang
- llamafile Mozilla.ai's single-file executables that bundle an open LLM with llama.cpp and run on most OSes with no install. Compare Infinity vs llamafile
- KTransformers CPU and GPU inference kernels with a model-serving CLI and SGLang integration. Compare Infinity vs KTransformers
- TensorRT LLM NVIDIA GPU inference toolkit with an OpenAI-compatible serving command. Compare Infinity vs TensorRT LLM
- Xinference Model-serving platform for LLM, embedding, rerank, speech and image models behind one OpenAI-compatible API. Compare Infinity vs Xinference
- llama-swap Hot-swap proxy that runs many local AI servers behind one OpenAI- and Anthropic-compatible API. Compare Infinity vs llama-swap
- Lemonade Local OpenAI-compatible server for chat, speech and image models on CPU, GPU or AMD NPU. Compare Infinity vs Lemonade
- GPUStack GPU cluster manager that deploys vLLM, SGLang and other engines behind an OpenAI-compatible API. Compare GPUStack vs Infinity
- Text Embeddings Inference Hugging Face's production server for open embedding, re-ranking and classification models. Compare Infinity 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 Infinity
- RamaLama Run and serve AI models as OCI containers with Podman or Docker, using an image matched to your GPU. Compare Infinity vs RamaLama
Infinity FAQ
How much RAM does Infinity need?
Infinity does not publish an official RAM figure, so we do not state one. No RAM or disk figure is published. Each GPU must fit the full model, including all experts for MoE checkpoints.
Does Infinity need a GPU?
For practical use, yes. The official v3 Docker image needs an NVIDIA GPU with compute capability SM80 (Ampere) or newer and the NVIDIA Container Toolkit; Turing (SM75) is unsupported. Hosts without a supported GPU need a CPU build.
How much does it cost to self-host Infinity?
The software is free to download. It needs a GPU server; we do not estimate that cost because GPU prices vary too much by card and provider.
Is Infinity free for commercial use?
Infinity is licensed under Infinity Restricted MIT License 1.0 (v3); MIT (Python packages) (Custom / conditional). Internal business use is allowed under the license text. Custom source-available license based on MIT for the v3 server: use, modification, resale and private changes are allowed with no revenue threshold, but any use on the 25 cloud providers listed in its Appendix A (for example Modal) is prohibited for every purpose. Your own hardware and unlisted clouds such as AWS, Azure or GCP are allowed. The Python v2 packages stay MIT; model weights have their own licenses. This is a summary, not legal advice.
What are common problems when self-hosting Infinity?
The v3 license bans use on 25 listed providers (including private endpoints and rented GPUs on Modal) for every purpose, including testing. Check the list before deploying on a GPU cloud. CUDA inference needs SM80 (Ampere) or newer, so T4-class (Turing) GPUs are unsupported; use a CPU build on such hosts. The server binds to 0.0.0.0 by default and the API key is optional (--api-key or INFINITY_API_KEY). Set a key or firewall the port before exposing it. v3 is a rewrite: the infinity-emb Python package and the infinity_emb v2 command belong to the older server, so v2 guides and flags do not apply to v3.
Is Infinity still maintained?
Yes, it is actively developed. Last commit: Nov 12, 2026. Latest release: v3.0.0. Checked Nov 23, 2026.
How do I install Infinity?
The official method is Docker (NVIDIA GPU). The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/michaelfeil/infinity#run-with-docker
What are self-hosted alternatives to Infinity?
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, Text Embeddings Inference, Harbor (local LLM stack), RamaLama.
Sources
- GitHub repository: github.com/michaelfeil/infinity
- Official documentation: michaelfeil.eu/infinity/main/v3/quickstart/
- License text, Gotcha 1: github.com/michaelfeil/infinity/blob/main/libs/infinity-v3/LICENSING.md
- Hardware requirements, Deploy instructions: github.com/michaelfeil/infinity#run-with-docker
- Gotcha 2: github.com/michaelfeil/infinity/blob/main/libs/infinity-v3/docs/cli.md
- Gotcha 3: github.com/michaelfeil/infinity/blob/main/libs/infinity-v3/README.md
- Gotcha 4: github.com/michaelfeil/infinity#readme
- 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-12. Spotted something out of date? Tell us.