Skip to main content

Quick Start

By default, the diffusion server loads the PE model in-process with SGLang’s native Ministral3 implementation. Deploy the PE model as a separate SGLang server when it needs independent resources or scaling. This document uses baidu/ERNIE-Image as an example. Run the model with the built-in native PE implementation (default):
Run the model with an SGLang-served PE model (high performance):
For a memory-constrained in-process deployment, the native PE decoder supports layerwise offload:
This option streams PE decoder layers from CPU and can increase prompt-enhancement latency. It does not apply when --pe-server-url selects an external PE server.

Support matrix

Ascend NPU Environment

See Diffusion models with AR stage like GLM-Image.