Nebula is a distributed position-independent caching (PIC) framework for LLM serving. It enables cross-worker reuse of non-prefix caches and intra-request segment-level prefill parallelism for RAG and agent workloads. The former reduces computation and improves throughput through a new cache reuse paradigm; the latter reduces tail TTFT through a new prefill computation pattern.
Nebula separates PIC algorithms from resource management: pluggable algorithm backends determine cache reuse and recomputation, the engine execution layer adapts PIC forward computation and storage, and the cluster control plane coordinates cache capacity, placement, transfer, and PIC-aware scheduling. Nebula integrates with SGLang and NVIDIA Dynamo through dedicated adapters and thin forks, leveraging PIC for efficient single-node and distributed serving.
Requires Ubuntu 24.04 x86_64, CUDA Toolkit 13.0.3 with a compatible NVIDIA driver, uv, and rustup. Install the build prerequisites:
sudo apt-get update
sudo apt-get install -y build-essential libhwloc-dev libudev-dev pkg-config libclang-dev protobuf-compiler python3-dev cmakeRun from the Nebula repository root:
python3 tools/install.py
source .venv/bin/activate-nebulaThe installer installs the locked dependencies into a Python 3.12 environment, builds the SGLang and Dynamo forks pinned in versions.json, and installs Nebula.
The four examples cover:
- Single-node offline inference with Naive, HYPIC, CacheBlend, A³, EPIC or RedKnot.
- Single-node online serving and a completion client.
- Single-node distributed prefill/decode serving.
- Multi-node distributed serving.
See the algorithm guide for supported models and algorithms. Provide model weights and network connectivity between workers.
- Architecture: algorithm, engine and cluster boundaries.
- SGLang integration: forward/storage contracts and ownership.
- Dynamo integration: routing, feedback and build instructions.
- Tests: dependencies and targeted checks.
- Validation: validation guide.
Nebula builds on research in position-independent caching, including cache reuse, cache management, and distributed serving. If you use Nebula in your research, please cite the Nebula paper and related work.
@misc{liu2026nebula,
title = {{Nebula}: Distributed Position-Independent Caching for LLM Serving},
author = {Yifei Liu and Junbin Pan and Junhao Hu and Yang Liu and Junyi Chen and Juntong Wu and Chen Chen and Haiyuan Zhao and Xiaoxu Chen and Weihang Chen},
year = {2026},
eprint = {2611.09474},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/2611.09474}
}Related papers
@inproceedings{liu2026hypic,
title = {{HYPIC}: Position-Independent Caching for Hybrid-Attention {LLM} Serving},
author = {Yifei Liu and Juntong Wu and Yang Liu and Junhao Hu and Minghao Li and Xiaoxu Chen and Weihang Chen},
booktitle = {Proceedings of the 2026 ACM SIGOPS Annual Technical Conference},
series = {SIGOPS ATC 2026},
publisher = {ACM},
year = {2026},
pages = {1990--2005},
doi = {10.1145/3828523.3857127},
url = {https://doi.org/10.1145/3828523.3857127}
}Nebula is licensed under the Apache License 2.0. See LICENSE for details.

