> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sglang.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Disaggregation of Diffusion Pipeline

## Quick Start

Please follow the [NPU installation guide](https://docs.sglang.io/docs/hardware-platforms/ascend-npus/getting-started/installation.md) first.

Then install Mooncake from sources.

```bash theme={null}
git clone https://github.com/kvcache-ai/Mooncake.git
cd Mooncake
git checkout v0.3.10.post2
bash dependencies.sh
mkdir build
cd build
export GLOG_logtostderr=1
cmake -DUSE_ASCEND_DIRECT=ON ..
make -j
make install
cd ../mooncake-wheel/
pip install .
```

Before run servers ensure that \*.so files of mooncake in LD\_LIBRARY\_PATH

```bash theme={null}
export LD_LIBRARY_PATH=/usr/local/python3.11.14/lib/python3.11/site-packages/mooncake:$LD_LIBRARY_PATH
```

## Examples

For usage examples please follow the [main disaggregation guide](https://docs.sglang.io/docs/sglang-diffusion/disaggregation.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.