Home

Awesome

<div align="center"> <img src="./assets/xorbits-logo.png" width="180px" alt="xorbits" />

Xorbits Inference: Model Serving Made Easy πŸ€–

PyPI Latest Release License Build Status Slack Twitter

English | 中文介绍 | ζ—₯本θͺž

</div> <br />

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.

<div align="center"> <i><a href="https://join.slack.com/t/xorbitsio/shared_invite/zt-1z3zsm9ep-87yI9YZ_B79HLB2ccTq4WA">πŸ‘‰ Join our Slack community!</a></i> </div>

πŸ”₯ Hot Topics

Framework Enhancements

New Models

Integrations

Key Features

🌟 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.

Why Xinference

FeatureXinferenceFastChatOpenLLMRayLLM
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)βœ…βŒβŒβŒ

Getting Started

Please give us a star before you begin, and you'll receive instant notifications for every new release on GitHub!

Jupyter Notebook

The lightest way to experience Xinference is to try our Jupyter Notebook on Google Colab.

Docker

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

K8s via helm

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.

Quick Start

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.

web UI

Getting involved

PlatformPurpose
Github IssuesReporting bugs and filing feature requests.
SlackCollaborating with other Xorbits users.
TwitterStaying up-to-date on new features.

Contributors

<a href="https://github.com/xorbitsai/inference/graphs/contributors"> <img src="https://contrib.rocks/image?repo=xorbitsai/inference" /> </a>