Skip to content

inference

Distributed platform for serving LLMs and other models behind OpenAI-compatible APIs

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

82

Health

Thriving

Overview

Stars

9,668

Last commit

today

Nov 2026

Repository age

3 years

since Jun 2023

Latest version

v4.2.0

Nov 2026

Contributors

–

16 active in 90 days

Releases

24

last 12 months

Language

Python

Xinference is an inference platform for running models on a single machine or across a cluster. It ships with more than 300 built-in models covering language, vision, embeddings, reranking, image, audio and video. You can also register your own models, including traditional ML models.

You manage deployments in a Web UI and call models through OpenAI- and Anthropic-compatible endpoints, a Python SDK or a CLI. For language models you can pick an engine such as vLLM, SGLang, TRT-LLM, Transformers, llama.cpp or MLX. Hardware support varies by engine and includes CPU, GPUs and Apple Silicon. It can add workers and replicas, or spread a large model across workers.

The Web UI is available in English, Chinese, Japanese and Korean. It is written in Python under Apache-2.0 and had 24 releases in the last year. It works as a self-hosted replacement for paid hosted model APIs.

Who it's for

Teams hosting models on their own GPUs

It serves many model types through OpenAI-compatible endpoints, so existing clients keep working.

Skip if: You only want a simple desktop chat app for one model.

Developers moving off hosted model APIs

Compatible endpoints let you point existing code at your own server.

Skip if: You need frontier proprietary models that cannot run locally.

Infrastructure engineers scaling across machines

It supports workers, replicas and running large models across workers.

Skip if: You already run Kubernetes-native serving and want to stay there.

The problem it solves

Using hosted model APIs sends your data to a third party and bills per request. This lets you run open models on your own hardware and use them through the same API style your tools already speak.

Strengths

  • 300+ built-in models across text, image, audio and video
  • OpenAI- and Anthropic-compatible endpoints with streaming
  • Choice of engines including vLLM, llama.cpp and MLX
  • Runs on one machine or a cluster with workers and replicas
  • 24 releases in the last year, 16 recent contributors

Trade-offs

  • Hardware support differs by engine
  • Model weights download on first launch, which takes time and disk
  • Distributed setups need more configuration than a single node
  • Tool calling works only where the engine supports it

Self-host inference

Self-hostable
Yes

Quick start

pip install xinference
xinference-local --host 127.0.0.1

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

How do I install it?

Run pip install xinference, then start the server with xinference-local.

Is it OpenAI API compatible?

Yes. It exposes OpenAI-compatible and Anthropic-compatible endpoints, plus a Python SDK and CLI.

Can it run without a GPU?

Yes, CPU is supported, though support varies by engine.

How is it licensed?

It uses the Apache-2.0 license.

Can I run my own models?

Yes. You can register custom models, including traditional ML models through the Flexible type.

Similar tools in Local LLM runtimes

ds4

Local LLM runtimes

Native inference engine for running a few large open-weight models on Macs and CUDA boxes

24k 2.4k 20 days ago Slowing MIT

omlx

Local LLM runtimes

Menu bar LLM server for Apple Silicon Macs with continuous batching and SSD KV cache

24k 2.2k today Thriving Apache-2.0

mistral.rs

Local LLM runtimes

Rust LLM inference engine with OpenAI and Anthropic compatible APIs for local models

7.9k 774 3 days ago Thriving MIT

dynamo

Local LLM runtimes

Multi-node LLM serving layer for GPU clusters, built on vLLM, SGLang and TensorRT-LLM

8.6k 1.9k today Active Apache-2.0

magnitude

Local LLM runtimes

8.2k 589 today Active Apache-2.0

ollaya

Local LLM runtimes

Local server for decision models that answer typed questions in milliseconds

1.5k 93 2 days ago Thriving Apache-2.0

Replaces Jev