Xorbits Inference(Xinference) is a powerful and versatile library designed to serve language, speech recognition, and multimodal models. With Xorbits Inference, you can effortlessly deploy and serve your or state-of-the-art built-in models using just a single command. Whether you are a researcher, developer, or data scientist, Xorbits Inference empowers you to unleash the full potential of cutting-edge AI models.
- Support Continuous batching for Transformers engine: #1724
- Support MLX backend for Apple Silicon chips: #1765
- Support specifying worker and GPU indexes for launching models: #1195
- Support SGLang backend: #1161
- Support LoRA for LLM and image models: #1080
- Support speech recognition model: #929
- Metrics support: #906
- Built-in support for Qwen 2.5 Series: #2325
- Built-in support for Fish Speech V1.4: #2295
- Built-in support for DeepSeek-V2.5: #2292
- Built-in support for Qwen2-Audio: #2271
- Built-in support for Qwen2-vl-instruct: #2205
- Built-in support for MiniCPM3-4B: #2263
- Built-in support for CogVideoX: #2049
- Built-in support for flux.1-schnell & flux.1-dev: #2007
- Dify: an LLMOps platform that enables developers (and even non-developers) to quickly build useful applications based on large language models, ensuring they are visual, operable, and improvable.
- FastGPT: a knowledge-based platform built on the LLM, offers out-of-the-box data processing and model invocation capabilities, allows for workflow orchestration through Flow visualization.
- Chatbox: a desktop client for multiple cutting-edge LLM models, available on Windows, Mac and Linux.
- RAGFlow: is an open-source RAG engine based on deep document understanding.
๐ Model Serving Made Easy: Simplify the process of serving large language, speech recognition, and multimodal models. You can set up and deploy your models for experimentation and production with a single command.
โก๏ธ State-of-the-Art Models: Experiment with cutting-edge built-in models using a single command. Inference provides access to state-of-the-art open-source models!
๐ฅ Heterogeneous Hardware Utilization: Make the most of your hardware resources with ggml. Xorbits Inference intelligently utilizes heterogeneous hardware, including GPUs and CPUs, to accelerate your model inference tasks.
โ๏ธ Flexible API and Interfaces: Offer multiple interfaces for interacting with your models, supporting OpenAI compatible RESTful API (including Function Calling API), RPC, CLI and WebUI for seamless model management and interaction.
๐ Distributed Deployment: Excel in distributed deployment scenarios, allowing the seamless distribution of model inference across multiple devices or machines.
๐ Built-in Integration with Third-Party Libraries: Xorbits Inference seamlessly integrates with popular third-party libraries including LangChain, LlamaIndex, Dify, and Chatbox.
Feature | Xinference | FastChat | OpenLLM | RayLLM |
---|---|---|---|---|
OpenAI-Compatible RESTful API | โ | โ | โ | โ |
vLLM Integrations | โ | โ | โ | โ |
More Inference Engines (GGML, TensorRT) | โ | โ | โ | โ |
More Platforms (CPU, Metal) | โ | โ | โ | โ |
Multi-node Cluster Deployment | โ | โ | โ | โ |
Image Models (Text-to-Image) | โ | โ | โ | โ |
Text Embedding Models | โ | โ | โ | โ |
Multimodal Models | โ | โ | โ | โ |
Audio Models | โ | โ | โ | โ |
More OpenAI Functionalities (Function Calling) | โ | โ | โ | โ |
-
Cloud
We host a Xinference Cloud service for anyone to try with zero setup. -
Self-hosting Xinference Community Edition
Quickly get Xinference running in your environment with this starter guide. Use our documentation for further references and more in-depth instructions. -
Xinference for enterprise / organizations
We provide additional enterprise-centric features. send us an email to discuss enterprise needs.
Star Xinference on GitHub and be instantly notified of new releases.
The lightest way to experience Xinference is to try our Jupyter Notebook on Google Colab.
Nvidia GPU users can start Xinference server using Xinference Docker Image. Prior to executing the installation command, ensure that both Docker and CUDA are set up on your system.
docker run --name xinference -d -p 9997:9997 -e XINFERENCE_HOME=/data -v </on/your/host>:/data --gpus all xprobe/xinference:latest xinference-local -H 0.0.0.0
Ensure that you have GPU support in your Kubernetes cluster, then install as follows.
# add repo
helm repo add xinference https://xorbitsai.github.io/xinference-helm-charts
# update indexes and query xinference versions
helm repo update xinference
helm search repo xinference/xinference --devel --versions
# install xinference
helm install xinference xinference/xinference -n xinference --version 0.0.1-v<xinference_release_version>
For more customized installation methods on K8s, please refer to the documentation.
Install Xinference by using pip as follows. (For more options, see Installation page.)
pip install "xinference[all]"
To start a local instance of Xinference, run the following command:
$ xinference-local
Once Xinference is running, there are multiple ways you can try it: via the web UI, via cURL, via the command line, or via the Xinferenceโs python client. Check out our docs for the guide.
Platform | Purpose |
---|---|
Github Issues | Reporting bugs and filing feature requests. |
Slack | Collaborating with other Xorbits users. |
Staying up-to-date on new features. |