NanoFLUX: Distillation-Driven Compression of Large Text-to-Image Generation Models for Mobile Devices
Abstract
Lay Summary
State-of-the-art AI models capable of generating images from text have advanced considerably in recent years. However, their substantial size means they typically require powerful servers to operate, raising concerns around cost, accessibility and privacy. This study introduces NanoFLUX, a compressed AI image-generation model derived from the state-of-the-art model FLUX.1-Schnell. Through distillation, a process used to train a compact student model to replicate the performance of its much larger teacher, we reduced the system to roughly one-seventh of its original size while preserving image quality. Consequently, NanoFLUX is capable of generating high-quality images in approximately 2.5 seconds on mobile devices, without requiring an internet connection. We believe this work will serve as a methodological reference for distillation researchers and engineers in the future.