DreamShaper XL VAE encoder for Snapdragon NPU
Encoders for mobile chips
2 min readupdated
This release features a set of quantized (compressed) VAE (autoencoder) binary files from the popular DreamShaper XL v2 Turbo model. They are converted specifically to run on the neural processing units (NPUs) of Snapdragon mobile chipsets via Qualcomm QNN. The files are designed for use in the LATAS Android app to run image-to-image generation directly on a smartphone at 768 and 1024 pixel resolutions. The model is based on the SDXL architecture and optimized for specific generations of Hexagon processors.
Key features
- NPU optimization: Binary files compiled for specific generations of Snapdragon chips (from 8 Gen 2 to 8 Elite Gen 5).
- Quantization: Weights are quantized to 8-bit and activations to 16-bit using Qualcomm QAIRT tools.
- Fixed resolutions: Builds available for square images at 768x768 and 1024x1024 pixel sizes.
- SDXL compatibility: Uses a latent space structure and scaling different from older SD 1.x models.
What you can do
- LATAS integration: Apply the files in the mobile app to run a local image-to-image pipeline on a supported smartphone.
- Performance testing: Use ready-made context binaries for experiments with the Qualcomm Hexagon NPU.
- Build from source: Use scripts from the LATAS repository for independent conversion and compilation for other parameters.
Example
The model is designed for use in the infrastructure of the LATAS Android app. The repository features files for SM8550, SM8650, SM8750, and SM8850 series chips, each tied to a specific Hexagon version (v73, v75, v79, and v81) and a fixed grid size.
Read more
Details• Quality metrics (x86 HTP simulator for 768 px): cosine similarity of 0.9991, relative error around 4.0-4.2%.
• Hardware requirements: Snapdragon-based devices with Qualcomm NPU support (QNN runtime).
• License: CreativeML Open RAIL++-M with use restrictions from Appendix A.
• Notes: 1024 px versions and variants for newer chips were not tested on real devices before release.










Comments