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 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
- Docker image: #855
- Support multimodal: #829
- Built-in support for Qwen2: #1509
- Built-in support for ChatTTS: #1578
- Built-in support for GLM-4 & GLM-4V: #1584
- Built-in support for Mistral-7B-Instruct-v0.3: #1576
- Built-in support for Codestral-22B-v0.1: #1575
- Built-in support for MiniCPM-Llama3-V 2.5: #1577
- Built-in support for CogVLM2: #1551
- Built-in support for InternVL-Chat-V1-5: #1536
- 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) | β | β | β | β |
Please give us a star before you begin, and you'll receive instant notifications for every new release on GitHub!
The lightest way to experience Xinference is to try our Juypter 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
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. |