| Documentation | Paper | Discord | WeChat |
ServerlessLLM
ServerlessLLM (sllm, pronounced "slim") is an open-source serverless framework designed to make custom and elastic LLM deployment easy, fast, and affordable. As LLMs grow in size and complexity, deploying them on AI hardware has become increasingly costly and technically challenging, limiting custom LLM deployment to only a select few. ServerlessLLM solves these challenges with a full-stack, LLM-centric serverless system design, optimizing everything from checkpoint formats and inference runtimes to the storage layer and cluster scheduler.
Curious about how it works under the hood? Check out our System Walkthrough for a deep dive into the technical design—perfect if you're exploring your own research or building with ServerlessLLM.
News
- [03/25] We're excited to share that we'll be giving a ServerlessLLM tutorial at the SESAME workshop, co-located with ASPLOS/EuroSys 2025 in Rotterdam, Netherlands, on March 31. Slides | More info
- [11/24] We have added experimental support of fast checkpoint loading for AMD GPUs (ROCm) when using with vLLM, PyTorch and HuggingFace Accelerate. Please refer to the documentation for more details.
- [10/24] ServerlessLLM was invited to present at a global AI tech vision forum in Singapore.
- [10/24] We hosted the first ServerlessLLM developer meetup in Edinburgh, attracting over 50 attendees both offline and online. Together, we brainstormed many exciting new features to develop. If you have great ideas, we’d love for you to join us!
- [10/24] We made the first public release of ServerlessLLM. Check out the details of the release here.
- [09/24] ServerlessLLM now supports embedding-based RAG + LLM deployment. We’re preparing a blog and demo—stay tuned!
- [08/24] ServerlessLLM added support for vLLM.
- [07/24] We presented ServerlessLLM at Nvidia's headquarters.
- [06/24] ServerlessLLM officially went public.
Goals
ServerlessLLM is designed to support multiple LLMs in efficiently sharing limited AI hardware and dynamically switching between them on demand, which can increase hardware utilization and reduce the cost of LLM services. This multi-LLM scenario, commonly referred to as Serverless, is highly sought after by AI practitioners, as seen in solutions like Serverless Inference, Inference Endpoints, and Model Endpoints. However, these existing offerings often face performance overhead and scalability challenges, which ServerlessLLM effectively addresses through three key capabilities:
ServerlessLLM is Fast:
- Supports leading LLM inference libraries like vLLM and HuggingFace Transformers. Through vLLM, ServerlessLLM can support various types of AI hardware (summarized by vLLM at here)
- Achieves 5-10X faster loading speeds compared to Safetensors and the PyTorch Checkpoint Loader.
- Features an optimized model loading scheduler, offering 5-100X lower start-up latency than Ray Serve and KServe.
ServerlessLLM is Cost-Efficient:
- Allows multiple LLM models to share GPUs with minimal model switching overhead and supports seamless inference live migration.
- Maximizes the use of local storage on multi-GPU servers, reducing the need for expensive storage servers and excessive network bandwidth.
ServerlessLLM is Easy-to-Use:
- Simplifies deployment through Ray Cluster and Kubernetes via KubeRay.
- Supports seamless deployment of HuggingFace Transformers and custom LLM models.
- Supports NVIDIA and AMD GPUs
- Easily integrates with the OpenAI Query API.
Getting Started
- Install ServerlessLLM with pip or from source.
conda create -n sllm python=3.10 -y
conda activate sllm
pip install serverless-llm
-
Start a local ServerlessLLM cluster using the Quick Start Guide.
-
Want to try fast checkpoint loading in your own code? Check out the ServerlessLLM Store Guide.
Documentation
To install ServerlessLLM, please follow the steps outlined in our documentation. ServerlessLLM also offers Python APIs for loading and unloading checkpoints, as well as CLI tools to launch an LLM cluster. Both the CLI tools and APIs are demonstrated in the documentation.
Benchmark
Benchmark results for ServerlessLLM can be found here.
Community
ServerlessLLM is maintained by a global team of over 10 developers, and this number is growing. If you're interested in learning more or getting involved, we invite you to join our community on Discord and WeChat. Share your ideas, ask questions, and contribute to the development of ServerlessLLM. For becoming a contributor, please refer to our Contributor Guide.
Citation
If you use ServerlessLLM for your research, please cite our paper:
@inproceedings{fu2024serverlessllm,
title={ServerlessLLM: Low-Latency Serverless Inference for Large Language Models},
author={Fu, Yao and Xue, Leyang and Huang, Yeqi and Brabete, Andrei-Octavian and Ustiugov, Dmitrii and Patel, Yuvraj and Mai, Luo},
booktitle={18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24)},
pages={135--153},
year={2024}
}
Metadata
Release files for serverless-llm 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serverless_llm-0.8.0.tar.gz | 48.4 kB | Without provenance | Details for serverless_llm-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serverless_llm-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for serverless_llm-0.8.0-py3-none-any.whl |
Total release size: 119.1 kB
Release files / serverless_llm-0.8.0.tar.gz
| Download URL | serverless_llm-0.8.0.tar.gz |
|---|---|
| Size | 48.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e59033d57ea5e82bc0cacb5c3294ce71ba154948f2fb673f8085f09bfaecda79
|
|
BLAKE2b-256 checksum How to use checksums |
fedbe12484d1b8d9448b9fb4c562130ac997d897ffe55d027d6797f2c0e68663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / serverless_llm-0.8.0-py3-none-any.whl
| Download URL | serverless_llm-0.8.0-py3-none-any.whl |
|---|---|
| Size | 70.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f782573bc3f74dfdf09621691cf92948a3c9750a060f463f8632c90a067c7943
|
|
BLAKE2b-256 checksum How to use checksums |
0733252159cebfa50b4bba0a6cfe3b3a25e2607471b936ecb0a90a1a77d1b9b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for serverless-llm 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.