Metadata-Version: 2.4
Name: xinference
Version: 4.3.0
Summary: Model Serving Made Easy
Author-email: Chris Qin <chris.qin@xinference.co>
Maintainer-email: Chris Qin <chris.qin@xinference.co>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/xorbitsai/inference
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: xoscar>=0.12.2
Requires-Dist: psutil>=5.9.0
Requires-Dist: torch
Requires-Dist: pillow
Requires-Dist: click<9,>=8.1
Requires-Dist: tqdm>=4.27
Requires-Dist: tabulate
Requires-Dist: requests
Requires-Dist: aiohttp
Requires-Dist: pydantic
Requires-Dist: anyio
Requires-Dist: fastapi<0.137,>=0.110.3
Requires-Dist: python-multipart>=0.0.18
Requires-Dist: orjson
Requires-Dist: uvicorn
Requires-Dist: websockets>=12
Requires-Dist: PyYAML
Requires-Dist: huggingface-hub>=0.19.4
Requires-Dist: filelock>=3.30.0
Requires-Dist: typing_extensions
Requires-Dist: modelscope>=1.21.0
Requires-Dist: sse_starlette>=1.6.5
Requires-Dist: openai>=1.40.0
Requires-Dist: anthropic>=0.25.0
Requires-Dist: python-jose[cryptography]
Requires-Dist: bcrypt>=4.0.0
Requires-Dist: aioprometheus[starlette]>=23.12.0
Requires-Dist: httpx
Requires-Dist: nvidia-ml-py
Requires-Dist: async-timeout
Requires-Dist: peft>=0.18.0
Requires-Dist: timm
Requires-Dist: setproctitle
Requires-Dist: uv>=0.10.9
Provides-Extra: xavier-lmcache
Requires-Dist: lmcache<0.6,>=0.5.6; (sys_platform == "linux" and python_version < "3.14") and extra == "xavier-lmcache"
Provides-Extra: dev
Requires-Dist: jsonschema<5,>=4.18; extra == "dev"
Requires-Dist: xxhash; extra == "dev"
Requires-Dist: cython>=0.29; extra == "dev"
Requires-Dist: pytest>=3.5.0; extra == "dev"
Requires-Dist: pytest-cov>=2.5.0; extra == "dev"
Requires-Dist: pytest-timeout>=1.2.0; extra == "dev"
Requires-Dist: pytest-forked>=1.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.14.0; extra == "dev"
Requires-Dist: pytest-mock>=3.11.1; extra == "dev"
Requires-Dist: ipython>=6.5.0; extra == "dev"
Requires-Dist: sphinx>=3.0.0; extra == "dev"
Requires-Dist: pydata-sphinx-theme>=0.3.0; extra == "dev"
Requires-Dist: sphinx-intl>=0.9.9; extra == "dev"
Requires-Dist: jieba>=0.42.0; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: openai>=1.40.0; extra == "dev"
Requires-Dist: anthropic; extra == "dev"
Requires-Dist: langchain; extra == "dev"
Requires-Dist: langchain-community; extra == "dev"
Requires-Dist: langchain-openai; extra == "dev"
Requires-Dist: sphinx-tabs; extra == "dev"
Requires-Dist: sphinx-design; extra == "dev"
Requires-Dist: pypdfium2; extra == "dev"
Requires-Dist: tomli; python_version < "3.11" and extra == "dev"
Provides-Extra: otel
Requires-Dist: opentelemetry-api>=1.20.0; extra == "otel"
Requires-Dist: opentelemetry-sdk>=1.20.0; extra == "otel"
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.20.0; extra == "otel"
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.20.0; extra == "otel"
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.41b0; extra == "otel"
Requires-Dist: opentelemetry-instrumentation-httpx>=0.41b0; extra == "otel"
Provides-Extra: guard
Requires-Dist: fastapi-guard<9.0.0,>=8.1.0; extra == "guard"
Provides-Extra: router
Requires-Dist: tokenizers<0.23.0,>=0.21.0; extra == "router"
Provides-Extra: all
Requires-Dist: xinference[anthropic]; extra == "all"
Requires-Dist: xinference[llama_cpp]; extra == "all"
Requires-Dist: xinference[transformers]; extra == "all"
Requires-Dist: xinference[vllm]; extra == "all"
Requires-Dist: xinference[mlx]; extra == "all"
Requires-Dist: xinference[embedding]; extra == "all"
Requires-Dist: xinference[rerank]; extra == "all"
Requires-Dist: xinference[image]; extra == "all"
Requires-Dist: xinference[video]; extra == "all"
Requires-Dist: xinference[audio]; extra == "all"
Requires-Dist: xinference[router]; extra == "all"
Provides-Extra: intel
Requires-Dist: torch==2.1.0a0; extra == "intel"
Requires-Dist: intel_extension_for_pytorch==2.1.10+xpu; extra == "intel"
Provides-Extra: llama-cpp
Requires-Dist: xllamacpp>=0.2.0; extra == "llama-cpp"
Provides-Extra: transformers
Requires-Dist: transformers>=4.53.3; extra == "transformers"
Requires-Dist: torch; extra == "transformers"
Requires-Dist: accelerate>=0.28.0; extra == "transformers"
Requires-Dist: sentencepiece; extra == "transformers"
Requires-Dist: transformers_stream_generator; extra == "transformers"
Requires-Dist: bitsandbytes; sys_platform == "linux" and extra == "transformers"
Requires-Dist: protobuf; extra == "transformers"
Requires-Dist: einops; extra == "transformers"
Requires-Dist: tiktoken; extra == "transformers"
Requires-Dist: optimum; extra == "transformers"
Requires-Dist: attrdict; extra == "transformers"
Requires-Dist: timm>=0.9.16; extra == "transformers"
Requires-Dist: torchvision; extra == "transformers"
Requires-Dist: peft; extra == "transformers"
Requires-Dist: eva-decord; extra == "transformers"
Requires-Dist: jj-pytorchvideo; extra == "transformers"
Requires-Dist: qwen-vl-utils!=0.0.9; extra == "transformers"
Requires-Dist: qwen_omni_utils; extra == "transformers"
Requires-Dist: audioread; extra == "transformers"
Requires-Dist: datamodel_code_generator; extra == "transformers"
Requires-Dist: jsonschema; extra == "transformers"
Requires-Dist: blobfile; extra == "transformers"
Provides-Extra: transformers-quantization
Requires-Dist: bitsandbytes; sys_platform == "linux" and extra == "transformers-quantization"
Requires-Dist: gptqmodel; extra == "transformers-quantization"
Requires-Dist: autoawq!=0.2.6; sys_platform != "darwin" and extra == "transformers-quantization"
Requires-Dist: datasets>=3.4.0; extra == "transformers-quantization"
Provides-Extra: vllm
Requires-Dist: vllm>=0.2.6; sys_platform == "linux" and extra == "vllm"
Requires-Dist: xxhash; extra == "vllm"
Provides-Extra: sglang
Requires-Dist: sglang[srt]>=0.4.2.post4; sys_platform == "linux" and extra == "sglang"
Provides-Extra: trt-llm
Requires-Dist: tensorrt-llm==1.2.1; sys_platform == "linux" and extra == "trt-llm"
Requires-Dist: xoscar[nixl]>=0.11.1; sys_platform == "linux" and extra == "trt-llm"
Requires-Dist: pyarrow==20.0.0; sys_platform == "linux" and extra == "trt-llm"
Provides-Extra: mlx
Requires-Dist: llguidance>=1.7.0; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Requires-Dist: mlx-lm>=0.31.3; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Requires-Dist: mlx-vlm>=0.3.4; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Requires-Dist: mlx-whisper; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Requires-Dist: f5-tts-mlx; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Requires-Dist: mlx-audio; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "mlx"
Requires-Dist: qwen_vl_utils!=0.0.9; extra == "mlx"
Requires-Dist: tomli; extra == "mlx"
Provides-Extra: embedding
Requires-Dist: sentence-transformers<6,>=3.1.0; extra == "embedding"
Requires-Dist: FlagEmbedding; extra == "embedding"
Requires-Dist: datasets>=3.4.0; extra == "embedding"
Provides-Extra: rerank
Requires-Dist: FlagEmbedding; extra == "rerank"
Requires-Dist: datasets>=3.4.0; extra == "rerank"
Provides-Extra: image
Requires-Dist: diffusers>=0.32.0; extra == "image"
Requires-Dist: controlnet_aux; extra == "image"
Requires-Dist: deepcache; extra == "image"
Requires-Dist: verovio>=4.3.1; extra == "image"
Requires-Dist: transformers>=4.53.3; extra == "image"
Requires-Dist: tiktoken>=0.6.0; extra == "image"
Requires-Dist: accelerate>=0.28.0; extra == "image"
Requires-Dist: torch; extra == "image"
Requires-Dist: torchvision; extra == "image"
Requires-Dist: gguf; extra == "image"
Requires-Dist: pypdfium2; extra == "image"
Provides-Extra: sdapi
Requires-Dist: xinference[image]; extra == "sdapi"
Requires-Dist: piexif; extra == "sdapi"
Requires-Dist: opencv-python-headless; extra == "sdapi"
Requires-Dist: scikit-image; extra == "sdapi"
Requires-Dist: einops; extra == "sdapi"
Requires-Dist: adetailer<27,>=26.2.0; extra == "sdapi"
Requires-Dist: spandrel>=0.4.1; extra == "sdapi"
Provides-Extra: video
Requires-Dist: diffusers>=0.32.0; extra == "video"
Requires-Dist: imageio-ffmpeg; extra == "video"
Provides-Extra: audio
Requires-Dist: funasr==1.2.7; extra == "audio"
Requires-Dist: omegaconf~=2.3.0; extra == "audio"
Requires-Dist: nemo_text_processing<=1.1.0; sys_platform == "linux" and extra == "audio"
Requires-Dist: WeText; extra == "audio"
Requires-Dist: librosa; extra == "audio"
Requires-Dist: xxhash; extra == "audio"
Requires-Dist: torch>=2.0.0; extra == "audio"
Requires-Dist: torchaudio>=2.0.0; extra == "audio"
Requires-Dist: ChatTTS>=0.2.1; extra == "audio"
Requires-Dist: tiktoken; extra == "audio"
Requires-Dist: lightning>=2.0.0; extra == "audio"
Requires-Dist: hydra-core>=1.3.2; extra == "audio"
Requires-Dist: inflect; extra == "audio"
Requires-Dist: conformer; extra == "audio"
Requires-Dist: diffusers>=0.32.0; extra == "audio"
Requires-Dist: gdown; extra == "audio"
Requires-Dist: pyarrow>=23.0.1; extra == "audio"
Requires-Dist: HyperPyYAML; extra == "audio"
Requires-Dist: onnxruntime>=1.16.0; extra == "audio"
Requires-Dist: pyworld>=0.3.4; extra == "audio"
Requires-Dist: loguru; extra == "audio"
Requires-Dist: natsort; extra == "audio"
Requires-Dist: loralib; extra == "audio"
Requires-Dist: ormsgpack; extra == "audio"
Requires-Dist: cachetools; extra == "audio"
Requires-Dist: silero-vad; extra == "audio"
Requires-Dist: vector-quantize-pytorch<=1.17.3,>=1.14.24; extra == "audio"
Requires-Dist: torchdiffeq; extra == "audio"
Requires-Dist: x_transformers>=1.31.14; extra == "audio"
Requires-Dist: pypinyin; extra == "audio"
Requires-Dist: tomli; extra == "audio"
Requires-Dist: vocos; extra == "audio"
Requires-Dist: librosa; extra == "audio"
Requires-Dist: jieba; extra == "audio"
Requires-Dist: pydub; extra == "audio"
Requires-Dist: soundfile; extra == "audio"
Requires-Dist: cached_path; extra == "audio"
Requires-Dist: unidic-lite; extra == "audio"
Requires-Dist: cn2an; extra == "audio"
Requires-Dist: mecab-python3; extra == "audio"
Requires-Dist: num2words; extra == "audio"
Requires-Dist: pykakasi; extra == "audio"
Requires-Dist: fugashi; extra == "audio"
Requires-Dist: g2p_en; extra == "audio"
Requires-Dist: anyascii; extra == "audio"
Requires-Dist: gruut[de,es,fr]; extra == "audio"
Requires-Dist: kokoro>=0.7.15; extra == "audio"
Requires-Dist: misaki[en,zh]>=0.7.15; extra == "audio"
Requires-Dist: preshed!=3.0.14; extra == "audio"
Requires-Dist: langdetect; extra == "audio"
Requires-Dist: pyloudnorm; extra == "audio"
Requires-Dist: json5; extra == "audio"
Requires-Dist: munch; extra == "audio"
Requires-Dist: matplotlib; extra == "audio"
Requires-Dist: flatten_dict; extra == "audio"
Requires-Dist: julius; extra == "audio"
Requires-Dist: tensorboard; extra == "audio"
Requires-Dist: randomname; extra == "audio"
Requires-Dist: argbind; extra == "audio"
Requires-Dist: ffmpy; extra == "audio"
Provides-Extra: doc
Requires-Dist: ipython>=6.5.0; extra == "doc"
Requires-Dist: sphinx>=3.0.0; extra == "doc"
Requires-Dist: pydata-sphinx-theme>=0.3.0; extra == "doc"
Requires-Dist: sphinx-intl>=0.9.9; extra == "doc"
Requires-Dist: sphinx-tabs; extra == "doc"
Requires-Dist: sphinx-design; extra == "doc"
Requires-Dist: prometheus_client; extra == "doc"
Requires-Dist: timm; extra == "doc"
Provides-Extra: musa
Requires-Dist: mthreads-ml-py>=2.2.8; extra == "musa"
Requires-Dist: torchada>=0.1.11; extra == "musa"
Provides-Extra: benchmark
Requires-Dist: psutil; extra == "benchmark"
Provides-Extra: anthropic
Requires-Dist: anthropic; extra == "anthropic"
Dynamic: license-file

# ![Xinference](assets/xinference-banner-platform-types.webp)

**Xinference (Xorbits Inference) is an open-source distributed inference platform.**

Deploy and run models on heterogeneous hardware, from a local machine to a distributed cluster. Xinference includes 300+ built-in models for language, vision, embeddings, reranking, image, audio, video, and experimental world generation. Register your own models, including traditional ML models through the Flexible type. Manage deployments in the Web UI and use models through OpenAI-compatible APIs, the Python SDK, or the CLI.

[Quick start](#quick-start) · [Key features](#key-features) · [Comparison](#how-xinference-compares) · [Self-hosting](https://inference.readthedocs.io/en/latest/getting_started/installation.html) · [Documentation](https://inference.readthedocs.io/en/latest/) · [Model catalog](https://inference.readthedocs.io/en/latest/models/builtin/index.html) · [Releases](https://github.com/xorbitsai/inference/releases) · [Xinference Enterprise](https://xinference.co/enterprise.html)

[![GitHub release](https://img.shields.io/github/v/release/xorbitsai/inference?logo=github&label=release&style=flat-square)](https://github.com/xorbitsai/inference/releases)
[![PyPI version](https://img.shields.io/pypi/v/xinference?logo=pypi&style=flat-square)](https://pypi.org/project/xinference/)
[![Docker tag](https://img.shields.io/docker/v/xprobe/xinference?sort=semver&logo=docker&label=docker%20tag&style=flat-square)](https://hub.docker.com/r/xprobe/xinference/tags)
[![Python versions](https://img.shields.io/pypi/pyversions/xinference?logo=python&style=flat-square)](https://pypi.org/project/xinference/)
[![Python CI](https://img.shields.io/github/actions/workflow/status/xorbitsai/inference/python.yaml?branch=main&label=CI&style=flat-square)](https://github.com/xorbitsai/inference/actions/workflows/python.yaml)

[![Apache 2.0 license](https://img.shields.io/github/license/xorbitsai/inference?label=license&style=flat-square)](https://github.com/xorbitsai/inference/blob/main/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/xorbitsai/inference?logo=github&label=stars&style=flat-square)](https://github.com/xorbitsai/inference/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/xorbitsai/inference?logo=github&label=forks&style=flat-square)](https://github.com/xorbitsai/inference/forks)
[![Contributors](https://img.shields.io/github/contributors/xorbitsai/inference?style=flat-square)](https://github.com/xorbitsai/inference/graphs/contributors)
[![Docker pulls](https://img.shields.io/docker/pulls/xprobe/xinference?logo=docker&label=docker%20pulls&style=flat-square)](https://hub.docker.com/r/xprobe/xinference)
[![Discord community](https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/Xw9tszSkr5)
[![Telegram community](https://img.shields.io/badge/Telegram-join-26A5E4?logo=telegram&logoColor=white&style=flat-square)](https://t.me/+nCNpwmySwk9iYmI1)
[![Follow Xinference on X](https://img.shields.io/badge/X-follow-171717?logo=x&logoColor=white&style=flat-square)](https://x.com/Xinference_ai)

**Languages** · **English** · [日本語](./READMES/README_ja_JP.md) · [한국어](./READMES/README_ko.md) · [Deutsch](./READMES/README_de.md) · [Français](./READMES/README_fr.md) · [Español](./READMES/README_es.md) · [Italiano](./READMES/README_it.md) · [Português](./READMES/README_pt_BR.md) · [繁體中文](./READMES/README_zh_TW.md) · [简体中文](./READMES/README_zh_CN.md)

## Quick start

### 1. Start the server

Xinference downloads the model and installs any needed engine dependencies on the first launch.

```bash
pip install xinference
xinference-local --host 127.0.0.1
```

Open [http://127.0.0.1:9997](http://127.0.0.1:9997). On a fresh instance, use the setup token printed in the server log to create an administrator account, then sign in. [First-run setup](https://inference.readthedocs.io/en/latest/user_guide/auth_system.html#initial-admin-account)

### 2. Launch a chat model

In **Launch Model**, search for `qwen3.5` and open its launch form. Click **Recommend configuration** to fill in settings for your hardware. Review the recommendation and click **Deploy**.

![Full Qwen3.5 launch form with the recommended configuration applied](assets/guide-launch-recommend-auto.webp)

### 3. Make your first request

Open the deployed model in **Running Models** to try a prompt in the Web UI. The first instance uses `qwen3.5` as its Model UID. If your instance shows a different UID, use that value for `model` below. Create a key under **API Key Management** to call the API.

```bash
export XINFERENCE_API_KEY="<your-api-key>"
curl --fail-with-body http://127.0.0.1:9997/v1/chat/completions \
  -H "Authorization: Bearer $XINFERENCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.5",
    "messages": [{"role": "user", "content": "Translate this sentence into Spanish: The model is ready."}],
    "enable_thinking": false,
    "max_tokens": 96
  }'
```

![The qwen3.5 chat playground showing a completed response](assets/guide-chat-en.webp)

## Key features

| Area | What Xinference supports |
| --- | --- |
| Model catalog | 300+ built-in models across language, vision, embeddings, reranking, images, audio, video, and experimental world generation. Register your own models, including Flexible models for traditional ML. [Model catalog](https://inference.readthedocs.io/en/latest/models/builtin/index.html) |
| Engines and hardware | Choose vLLM, SGLang, TRT-LLM, Transformers, llama.cpp, or MLX for supported LLMs. Hardware support varies by engine and includes CPU, GPUs, Apple Silicon, and supported MLU configurations. [Backends](https://inference.readthedocs.io/en/latest/user_guide/backends.html) · [MLU support](https://github.com/xorbitsai/inference/pull/3693) |
| Distributed serving | Run on one machine, add workers and replicas, or run a large model across workers with a supported engine. Compatible deployments support heterogeneous prefill/decode separation. [Distributed inference](https://inference.readthedocs.io/en/latest/user_guide/distributed_inference.html) · [P/D separation](https://inference.readthedocs.io/en/latest/user_guide/pd_separation.html) |
| APIs and tools | OpenAI- and Anthropic-compatible endpoints, with streaming and tool calling where supported. Deploy and manage models through the Web UI, CLI, or Python SDK. [Client guide](https://inference.readthedocs.io/en/latest/user_guide/client_api.html) · [Tool calling](https://inference.readthedocs.io/en/latest/models/model_abilities/tools.html) |
| Performance and operations | Benchmark running chat models in the Web UI. Supported deployments can share prefix caches with Xavier, change selected runtime settings, and reload replicas one at a time. [Performance tests](https://inference.readthedocs.io/en/latest/user_guide/benchmarks.html) · [Runtime configuration](https://inference.readthedocs.io/en/latest/user_guide/launch.html#reconfigure-without-reloading-weights) |
| Languages | Use the Web UI in English, Simplified Chinese, Traditional Chinese, Japanese, or Korean. The README is available in ten languages. |

## How Xinference compares

| Capability | **Xinference** | LocalAI | KServe | NVIDIA Dynamo |
| --- | :---: | :---: | :---: | :---: |
| **Standalone (no Kubernetes)** | ![Supported][compare-supported] | ![Supported][compare-supported] | ![No documented support][compare-undocumented] | ![Supported][compare-supported] |
| **Multi-node inference** | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Supported][compare-supported] |
| **CPU / GPU / Apple Metal** | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Partial or via integration][compare-partial] | ![Partial or via integration][compare-partial] |
| **llama.cpp / vLLM / SGLang** | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Partial or via integration][compare-partial] | ![Partial or via integration][compare-partial] |
| **CUDA ↔ Metal prefill/decode** | ![Supported][compare-supported] | ![No documented support][compare-undocumented] | ![No documented support][compare-undocumented] | ![No documented support][compare-undocumented] |
| **Mixed engines under one model ID** | ![Supported][compare-supported] | ![Partial or via integration][compare-partial] | ![Partial or via integration][compare-partial] | ![Partial or via integration][compare-partial] |
| **Rolling reconfiguration with GPU weight reuse** | ![Supported][compare-supported] | ![No documented support][compare-undocumented] | ![No documented support][compare-undocumented] | ![No documented support][compare-undocumented] |
| Model catalog | ![Supported][compare-supported] 300+ | ![Supported][compare-supported] | ![Partial or via integration][compare-partial] | ![Partial or via integration][compare-partial] |
| Model deployment Web UI | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Partial or via integration][compare-partial] | ![No documented support][compare-undocumented] |
| Embeddings and reranking | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Supported][compare-supported] | ![Supported][compare-supported] |
| Image and video generation | ![Supported][compare-supported] | ![Supported][compare-supported] | ![No documented support][compare-undocumented] | ![Supported][compare-supported] |
| Speech recognition and synthesis | ![Supported][compare-supported] | ![Supported][compare-supported] | ![No documented support][compare-undocumented] | ![Partial or via integration][compare-partial] |

![][compare-supported] Supported · ![][compare-partial] Partial or via integration · ![][compare-undocumented] No documented support

<details>
<summary>Scope and sources</summary>

Based on documented features in the open-source releases. Engine and hardware support varies by model. CUDA ↔ Metal prefill/decode requires a compatible model and engine pair.

Xinference can serve replicas with different engines concurrently under one model ID. LocalAI uses an ordered failover chain under one model name and sends requests to the first available target. KServe and Dynamo can route across separate deployments. GPU weight reuse applies to supported vLLM and SGLang configurations.

- **Xinference** · [Model catalog](https://inference.readthedocs.io/en/latest/models/builtin/index.html) · [Backends](https://inference.readthedocs.io/en/latest/user_guide/backends.html) · [Distributed inference](https://inference.readthedocs.io/en/latest/user_guide/distributed_inference.html) · [Cross-engine P/D on CUDA and Metal](https://inference.readthedocs.io/en/latest/user_guide/pd_separation.html#nvidia-and-mlx-cross-engine-p-d) · [Replica engine overrides](https://inference.readthedocs.io/en/latest/user_guide/launch.html#replica) · [Rolling reconfiguration](https://inference.readthedocs.io/en/latest/user_guide/launch.html#reconfigure-and-upgrade-running-models)
- **LocalAI** · [Model and deployment features](https://localai.io/docs/features/index.html) · [Backends and hardware](https://localai.io/docs/reference/index.print.html) · [Distributed mode](https://localai.io/docs/features/distributed-mode/) · [Model aliases and failover](https://localai.io/docs/features/model-failover/index.html)
- **KServe** · [Deployment and hardware](https://kserve.github.io/website/docs/intro) · [Built-in generative runtimes](https://kserve.github.io/website/docs/model-serving/generative-inference/overview) · [Kubeflow model catalog](https://www.kubeflow.org/docs/components/hub/installation/) · [Kubeflow Web UI](https://www.kubeflow.org/docs/ecosystem/kserve/webapp/) · [Canary deployments](https://kserve.github.io/website/docs/model-serving/generative-inference/llmisvc/canary-rollout-observability)
- **NVIDIA Dynamo** · [Deployment, hardware, and engines](https://docs.dynamo.nvidia.com/dynamo) · [Deployment recipes](https://docs.dynamo.nvidia.com/dynamo/recipes/browse) · [Image, video, and speech generation](https://docs.dynamo.nvidia.com/dynamo/diffusion/overview) · [Embedding and reranking support](https://docs.dynamo.nvidia.com/dynamo/reference/releases/v1-6-0) · [Multi-deployment routing](https://docs.dynamo.nvidia.com/dynamo/reference/components/global-router-configuration)

</details>

[compare-supported]: assets/compare-supported.svg
[compare-partial]: assets/compare-partial.svg
[compare-undocumented]: assets/compare-undocumented.svg

## Recent updates

[Read the v4.2.0 release notes](https://github.com/xorbitsai/inference/releases/tag/v4.2.0)

<details>
<summary>Built-in models added in the last two releases (v4.1 and v4.2)</summary>

- Built-in support for [Audio8-TTS-Realistic-0.6b](https://huggingface.co/Edge0/Audio8-TTS-Realistic-0.6b): [#6003](https://github.com/xorbitsai/inference/pull/6003)
- Built-in support for [MiniCPM-OCR-1.0](https://huggingface.co/openbmb/MiniCPM-OCR-1.0): [#5916](https://github.com/xorbitsai/inference/pull/5916)
- Built-in support for [OvisOCR3](https://huggingface.co/ATH-MaaS/OvisOCR3): [#5914](https://github.com/xorbitsai/inference/pull/5914)
- Built-in support for [Unlimited-OCR-2](https://huggingface.co/baidu/Unlimited-OCR-2): [#5913](https://github.com/xorbitsai/inference/pull/5913)
- Built-in support for [FLUX 3 Image Klein](https://huggingface.co/black-forest-labs/flux-3-image-klein): [#5792](https://github.com/xorbitsai/inference/pull/5792)
- Built-in support for FIBO 2.0 series ([Dev](https://huggingface.co/briaai/Fibo-2.0-dev), [Edit Turbo](https://huggingface.co/briaai/Fibo-2.0-edit-turbo)): [#5790](https://github.com/xorbitsai/inference/pull/5790)
- Built-in support for Ming-3.0 TTS series ([Tiny](https://huggingface.co/inclusionAI/Ming-3.0-tts-tiny), [0.5B](https://huggingface.co/inclusionAI/Ming-3.0-tts-0.5B)): [#5788](https://github.com/xorbitsai/inference/pull/5788)
- Built-in support for [Xiaomi-OCR-0](https://huggingface.co/SeerRay-Lab/Xiaomi-OCR-0): [#5764](https://github.com/xorbitsai/inference/pull/5764)
- Built-in support for [MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT): [#5755](https://github.com/xorbitsai/inference/pull/5755)
- Built-in support for [DeepSeek-V4.1-Flash-1017](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017): [#5753](https://github.com/xorbitsai/inference/pull/5753)
- Built-in support for Iris-3B series ([Base](https://huggingface.co/speridlabs/iris-3b), [Turbo](https://huggingface.co/speridlabs/iris-3b/tree/main/turbo)): [#5686](https://github.com/xorbitsai/inference/pull/5686)
- Built-in support for MiniCPM-V-4.7 series ([1B](https://huggingface.co/openbmb/MiniCPM-V-4.7-1B), [35B-A3B](https://huggingface.co/openbmb/MiniCPM-V-4.7-35B-A3B)): [#5676](https://github.com/xorbitsai/inference/pull/5676)
- Built-in support for Qwen3.8-Flash-Next series ([Base](https://huggingface.co/Qwen/Qwen3.8-Flash-Next), [FP8](https://huggingface.co/Qwen/Qwen3.8-Flash-Next-FP8)): [#5673](https://github.com/xorbitsai/inference/pull/5673)
- Built-in support for GLM-5.3 series ([BF16](https://huggingface.co/zai-org/GLM-5.3-BF16), [FP8](https://huggingface.co/zai-org/GLM-5.3)): [#5666](https://github.com/xorbitsai/inference/pull/5666)
- Built-in support for [Qwen-Image-2.1-Turbo](https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo): [#5665](https://github.com/xorbitsai/inference/pull/5665)
- Built-in support for [DeepSeek-V4.1-Flash](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash): [#5661](https://github.com/xorbitsai/inference/pull/5661)

</details>

## Model performance tests

Open **Performance Tests**, pick a running chat model, and set the concurrency levels you want to test. Compare throughput, time to first token, and time per output token before choosing a serving configuration. [Benchmark guide](https://inference.readthedocs.io/en/latest/user_guide/benchmarks.html)

![Web UI benchmark charts comparing throughput and latency at different concurrency levels](assets/guide-benchmark-en.webp)

*Example from a local Qwen3.5-0.8B run. Performance depends on the hardware, engine, and workload.*

## Using Xinference

| If you want to… | Start here |
| --- | --- |
| Install on Linux, macOS, or Windows | [One-command installer](https://inference.readthedocs.io/en/latest/getting_started/installation.html#one-line-install) · [Installation guide](https://inference.readthedocs.io/en/latest/getting_started/installation.html) |
| Run in a container or on Kubernetes | [Docker](https://inference.readthedocs.io/en/latest/getting_started/using_docker_image.html) · [Kubernetes](https://inference.readthedocs.io/en/latest/getting_started/using_kubernetes.html) |
| Register your own model | [Custom models](https://inference.readthedocs.io/en/latest/models/custom.html) |
| Connect an application | [OpenAI-compatible APIs](https://inference.readthedocs.io/en/latest/user_guide/client_api.html#openai-client) · [Xagent](https://github.com/xorbitsai/xagent) · [Dify](https://marketplace.dify.ai/plugin/langgenius/xinference) |

**Apps and frameworks** · [LangChain](https://reference.langchain.com/python/langchain-community/llms/xinference/Xinference) · [LlamaIndex](https://developers.llamaindex.ai/python/framework/integrations/llm/xinference_local_deployment/) · [FastGPT](https://doc.fastgpt.io/en/self-host/custom-models/xinference) · [RAGFlow](https://github.com/infiniflow/ragflow) · [MaxKB](https://github.com/1Panel-dev/MaxKB) · [Chatbox](https://chatboxai.app/)

### Xinference Enterprise

Deploy Xinference Enterprise in your own cloud or data center. Xinference Cloud offers managed dedicated deployments, and the Model API provides hosted model endpoints. [Enterprise overview](https://xinference.co/enterprise.html)

**Business enquiries** · [info@xinference.co](mailto:info@xinference.co?subject=%5BGitHub%5DBusiness%20License%20Inquiry)

## Getting involved

| Platform | What it's for |
| --- | --- |
| [GitHub Issues](https://github.com/xorbitsai/inference/issues) | Report bugs and request features. |
| [Discord](https://discord.gg/Xw9tszSkr5) | Ask questions and discuss Xinference with other users. |
| [Telegram](https://t.me/+nCNpwmySwk9iYmI1) | Chat with the Xinference community. |
| [X](https://x.com/Xinference_ai) | Follow project news and releases. |

## Citation

If you use Xinference in your research, please cite [Xinference: Making Large Model Serving Easy](https://aclanthology.org/2024.emnlp-demo.30/).

```bibtex
@inproceedings{lu2024xinference,
    title = "Xinference: Making Large Model Serving Easy",
    author = "Lu, Weizheng and Xiong, Lingfeng and Zhang, Feng and Qin, Xuye and Chen, Yueguo",
    booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.emnlp-demo.30",
    pages = "291--300",
}
```

## Contributors

Thank you to everyone who helps build Xinference. Open your first pull request to add a model, improve the docs, or fix a bug. [Read the contribution guide](https://inference.readthedocs.io/en/latest/development/contributing_codebase.html).

[![Xinference contributor avatar wall](https://contrib.rocks/image?repo=xorbitsai/inference)](https://github.com/xorbitsai/inference/graphs/contributors)
