Skip to content
AI Learning Ground Start learning

News ·

Speed Up Image Generation with FLUX 3 Image Klein on NVIDIA Blackwell GPUs

NVIDIA shows how TensorRT LLM VisualGen accelerates FLUX 3 Image Klein on Blackwell GPUs, reaching up to 3.46x faster text-to-image and 4.45x faster image-to-image generation at 2048x2048 on a single B200.

Two generated images of a red fox beside a moss-covered fallen tree in an autumn forest.
Image: NVIDIA

NVIDIA published a tutorial on running FLUX 3 Image Klein, Black Forest Labs' image generation and editing model, in TensorRT LLM VisualGen on NVIDIA Blackwell GPUs. The model combines Qwen3-VL-4B-Instruct for text conditioning, a diffusion transformer, and an autoencoder, and comes in Base and distilled checkpoints. At 2048x2048 on a single B200, combined optimizations delivered up to 3.46x faster text-to-image and 4.45x faster image-to-image generation versus uncompiled BF16 inference.

The optimizations stack several techniques. NVFP4 quantization with FlashInfer's fused PrimsTS GEMM kernels gave up to 1.62x faster T2I and 1.58x faster I2I over BF16. Quantized attention options include cuDNN FP8 and VC-Attention FP8, the latter reaching 1.18x speedup with LPIPS scores of 0.086 and 0.151 at 2048x2048. Sol-Attention sparse attention with 12 initial dense steps gave 1.30x faster denoising and decoding for Base. Cache-DiT step caching nearly halved latency, hitting 1.94x at 2048x2048 with LPIPS of 0.033. On eight B200 GPUs with CFG and Ulysses parallelism, median T2I latency dropped from 14.90 to 3.00 seconds for Base and from 2.73 to 1.08 seconds for distilled.

Attention dominates high-resolution generation, accounting for roughly 60% of DiT GPU kernel time in the reported tests, which is why quantized and sparse attention matter most. For developers deploying diffusion models in design tools or visual production workflows, the tutorial provides YAML configurations and end-to-end inference examples, and the runtime supports BF16, FP8, and NVFP4 variants, letting you trade latency against fidelity with measurable quality metrics.

References

  • NVIDIA · developer.nvidia.com

Read the full story at NVIDIA ↗Like, save or discuss on Buzz

#hardware #inference