Skip to content
redai-studioPublic

About

Nebula: Distributed Position-Independent Caching for LLM Serving

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Nebula

A Distributed Position-Independent Caching Framework for LLM Serving

English | 简体中文

Nebula Paper Quick Start Python 3.12 License: Apache 2.0


About

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.

Nebula system architecture, request execution timeline, and application-defined PIC segmentation

Getting Started

Installation

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 cmake

Run from the Nebula repository root:

python3 tools/install.py
source .venv/bin/activate-nebula

The installer installs the locked dependencies into a Python 3.12 environment, builds the SGLang and Dynamo forks pinned in versions.json, and installs Nebula.

Usage

The four examples cover:

  1. Single-node offline inference with Naive, HYPIC, CacheBlend, A³, EPIC or RedKnot.
  2. Single-node online serving and a completion client.
  3. Single-node distributed prefill/decode serving.
  4. Multi-node distributed serving.

See the algorithm guide for supported models and algorithms. Provide model weights and network connectivity between workers.

Development

Citation

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}
}

License

Nebula is licensed under the Apache License 2.0. See LICENSE for details.

About

Nebula: Distributed Position-Independent Caching for LLM Serving

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages