DreamShaper XL Lightning (Pre-compiled for Snapdragon X Elite NPU)
This repository provides a pre-compiled, optimized version of DreamShaper XL Lightning running in fp16 precision, specifically designed to run 100% locally on the Snapdragon X Elite NPU via ONNX Runtime with the QNN Execution Provider (QNN EP).
To bypass hardware compiler constraints and memory limits, the core UNet architecture has been meticulously split into 5 distinct sub-models.
π Key Features
- 100% NPU Execution: Unlike other hybrid approaches, every single componentβincluding both Text Encoders, the 5-split UNet, and the VAEβruns natively on the Hexagon NPU.
- Bypassed Size Ceilings: The UNet is split into 5 fragments to stay under the 2 GB Google Protobuf.
- Sequential Load-on-Demand Pipeline: To manage the strict memory overhead on ARM Windows, the script utilizes an aggressive memory management strategy:
- Loads
Text_Encoder&Text_Encoder_2into RAM/NPU β‘οΈ Processes β‘οΈ Flushes from memory. - Loads the 5
UNetparts into RAM/NPU β‘οΈ Processes β‘οΈ Flushes from memory. - Loads
VAEinto RAM/NPU β‘οΈ Decodes the final image.
- Loads
- Performance: Generates 1024x1024 images around 62 to 68 seconds (with 6 steps / Guidance Scale 2.0).
π οΈ How to Use & Implementation Details
All the necessary Python execution scripts, environment setup requirements (requirements.txt), the original UNet splitting pipeline, and step-by-step instructions are hosted on GitHub.
Since this project requires specific pipeline orchestration to sequentially load and flush the models, please refer to our GitHub repository for the full guide and inference scripts:
π GitHub: buuta-buta-butaata/SDXL-with-Snapdragon-X-Elite-NPU
π₯ Credits & Disclaimer
- Base Model: Huge thanks to Lykon for the amazing DreamShaper XL Lightning.
- Project Context: This repository is a Proof of Concept (PoC) co-created by a human developer and Google Gemini (AI collaborator).
- Safety Notice: This model card does not bundle a safety checker/NSFW filter. Please use the generation outputs responsibly.
Model tree for Buuta/dreamshaper-xl-lightning-for-Snapdragon-X-Elite
Base model
Lykon/dreamshaper-xl-lightning