Sub-second image generation with Flux.2 and Qwen-Image
May 18, 2026
Summary
This post details optimizations for image generation serving, specifically for Flux.2 [dev] and Qwen-Image models on NVIDIA Blackwell and Hopper GPUs. Key technical contributions include: hardware-aware quantization (FP4 on B200, FP8 on H100), memory optimizations, optimized attention kernels, specialized element-wise kernels, and runtime-level serving improvements. These optimizations resulted in significant latency reductions, achieving sub-second inference for Flux.2 [dev] on B200 (0.98s) and Qwen-Image on B200 (0.87s), outperforming baseline configurations by up to 5.4x and 4x respectively. The post also outlines the benchmarking methodology and common image generation inference parameters supported by the optimized stack.
More from the Baseten AI Model Deployment and Serving Platform trail
- LangChain trains custom models for LangSmith Engine with Baseten Loops
- DeepSeek-V4.1-Flash: more efficient prefill for coding agents
- Blaxel is joining Baseten to build the future of agentic infrastructure
- How Baseten makes pyannote’s diarization models 9.6x faster
- Optimizing delta weight syncs for managed rollouts