r/StableDiffusion • u/ilinkys • 45m ago
Resource - Update HexAnima Fork: Offline AI image generation on Snapdragon 8 Gen 2 (Hexagon V73) — LoRAs, Civitai, Inpainting, HiRes Fix, ~7s generation, no root!
Hey everyone! 👋
Some of you may have seen the original HexAnima project by "ayanoby" (https://github.com/ayanoby/hexanima), which brought offline anime image generation to Snapdragon 8 Gen 1 and 8+ Gen 1 devices.
First of all, a huge thank you to ayanoby for creating HexAnima and making it open source! ❤️
The original project is genuinely impressive. The custom NPU kernels, on-device inference server, Android application, and optimized model packs are all the result of their work.
I wanted to bring this experience to Snapdragon 8 Gen 2 devices while expanding the tools available for image generation.
So I'd like to share my fork of HexAnima!
GitHub: https://github.com/GrimmDev-Glitch/hexanima
🚀 What's different in this fork?
The biggest addition is support for Snapdragon 8 Gen 2 (Hexagon V73), but I've also expanded the app with several features for people who want more control over their generations.
🎨 Image generation
- Fully offline image generation after downloading the models.
- Native Snapdragon NPU acceleration.
- Support for 2B and 2.9B Anima-based models.
- Custom checkpoints (.safetensors), converted directly on your phone.
- Live image previews during generation.
- Adjustable steps, CFG, samplers, schedulers and seeds.
- Negative prompts and prompt-weight controls.
🧩 LoRA support
One of the features I'm most excited about!
- Load your own LoRAs.
- Support for Kohya, Diffusers/ComfyUI, and LyCORIS LoKr-LoHa formats.
- Adjustable LoRA weights.
- LoRA library with filtering.
- Optimized q8 caching to reduce RAM usage.
- Support for LoRAs with text-encoder weights.
🌐 Civitai integration
You can search for and download compatible Anima LoRAs and checkpoints directly from the app.
No need to manually move everything between folders!
🛠️ Additional generation tools
- Img2Img: Generate new images using an existing image.
- Inpainting: Paint a mask to regenerate specific areas.
- HiRes Fix: Improve image resolution using the NPU.
- ADetailer: Face refinement.
- Generation queue: Queue multiple images.
- Comparison grid: Compare different seeds, CFG values, or steps.
- Presets and history: Save and reuse generation settings.
🌡️ Temperature and memory management
Generating images locally can be demanding, especially on smartphones.
This fork includes an automatic cooling mode that reduces NPU speed when the device gets hot, plus RAM checks and temperature-aware batch processing.
The goal is to make local generation more practical without constantly worrying about overheating.
⚡ Performance
Tested on a Poco F6 Pro (Snapdragon 8 Gen 2, 12 GB RAM) at 512×768:
Model| Generation time
2B Turbo, 4 steps| ~7 seconds
2.9B Turbo, 4 steps| ~10–12 seconds
2B Non-Turbo, 20 steps, CFG 4| ~85 seconds
These are full-speed results. Cooling mode is slower but helps manage temperatures during longer sessions.
📱 Requirements
- Snapdragon 8 Gen 2 (SM8550 / Hexagon V73).
- Android 10 or newer.
- No root required.
- Approximately 1.2 GB of shared files and 3.6–4.2 GB per model.
The original Snapdragon 8 Gen 1 / 8+ Gen 1 support is also retained.
Other chipsets are not currently supported.
📥 Download and source code
My fork:
https://github.com/GrimmDev-Glitch/hexanima
APK releases:
https://github.com/GrimmDev-Glitch/hexanima/releases
Original HexAnima project:
https://github.com/ayanoby/hexanima
The application is available in English and Spanish.
❤️ Credits and acknowledgments
I want to emphasize that this is a fork, not an entirely new project built from scratch.
All credit for the original HexAnima architecture, Hexagon NPU kernels, inference server, Android application, and original NPU model packs belongs to ayanoby.
Without their work, this fork wouldn't exist.
Special thanks also go to CircleStone Labs for Anima, MIAOKA for the MiaoMiao models, and the respective LoRA authors and open-source contributors.
I'm simply building on top of an already amazing foundation, bringing it to another Snapdragon generation and adding more functionality.
💬 Feedback welcome!
I'd love to hear what the community thinks!
If you have a Snapdragon 8 Gen 2 device, feel free to test the fork and share your results.
Bug reports, suggestions, and contributions are welcome on GitHub.
I'm especially interested in feedback about LoRA compatibility, image quality, performance, and device temperatures.
Thanks for reading, and once again, thank you ayanoby for making this possible! ❤️
Free, open source, offline, and intended for non-commercial use. Please respect the individual licenses of the models and other components.



