Modal Blog· Will Shainin·· 2025-06-18AI score58
Modal shows how to run FLUX.1-dev three times faster
Run FLUX.1-dev three times faster
AI summary
Modal engineers describe making Black Forest Labs' FLUX.1-dev run about three times faster as an autoscaling service, cutting a 1024x1024 image from roughly 6.75 seconds to under three. Standard optimizations, namely the Torch compiler with max-autotune, fused QKV attention and channels-last memory layout, gave about 1.5x, while First Block Caching from the ParaAttention repo, based on the TEACache paper, added another 2x at a threshold of 0.12. Compile caches and Modal Memory Snapshots cut cold start latency by 30x.
Source:Modal Blog · modal.com