Inference frameworks
NVIDIA Details TensorRT LLM VisualGen Speeding Up FLUX 3 Image Klein on Blackwell
An NVIDIA tutorial reports TensorRT LLM VisualGen uses NVFP4, fused GEMM kernels, FP8 and sparse attention plus caching to make FLUX 3 Image Klein up to 3.46x faster for text-to-image and 4.45x for image-to-image on one B200.
NVIDIA published a developer tutorial on November 6 describing how to accelerate Black Forest Labs' FLUX 3 Image Klein image generation and editing model with the TensorRT LLM VisualGen runtime on Blackwell GPUs. According to NVIDIA, the model was trained on GB200 NVL72 and ships in Base and distilled checkpoints aimed at different latency and fidelity needs.
The architecture combines Qwen3-VL-4B-Instruct for text conditioning, a diffusion transformer that refines image latents, and an autoencoder that decodes latents and encodes image-to-image reference inputs. NVIDIA reports that at 2048x2048 on a single B200 with NVFP4, vanilla attention and torch.compile, Base text-to-image takes about 14.70 seconds end to end, with denoising accounting for 96.8 percent; image-to-image takes about 40.29 seconds, with denoising at 97.8 percent. Optimization therefore concentrates on the diffusion transformer.
VisualGen supported BF16, FP8 and NVFP4 at launch. NVIDIA says NVFP4 delivered up to 1.62x faster text-to-image and 1.58x faster image-to-image than BF16. The FlashInfer PrimsTS FP8/NVFP4 GEMM kernels, built with CUTLASS Primitives and Task Scheduling, fuse SwiGLU and QKV projections with normalization and rotary position embeddings, and ran 1.02x to 1.10x faster than the autotuned TensorRT LLM NVFP4 GEMM on B200.
Attention is the other bottleneck. NVIDIA says vanilla BF16 attention accounted for roughly 60 percent of DiT kernel time in its 2048x2048 NVFP4 tests. Among quantized options, cuDNN FP8 gave 1.08x to 1.09x speedups with LPIPS of 0.072 and 0.161, while VC-Attention FP8 with a repair budget of 0.005 reached 1.18x and 1.16x with LPIPS of 0.086 and 0.151. Sol-Attention sparsity at tau 1.0 made Base denoising plus decoding 1.24x faster with 16 initial dense steps and 1.30x faster with 12, though fewer dense steps raised perceptual distance.
Cache-DiT, which reuses intermediate transformer outputs across denoising steps, nearly halved Base latency: 1.97x at 1024x1024 and 1.94x at 2048x2048, with LPIPS of 0.038 and 0.033, and smaller gains for the distilled model. For multi-GPU, Base uses classifier-free guidance plus Ulysses parallelism while the distilled model uses Ulysses alone. Scaling from one to eight GPUs on DGX B200 cut median text-to-image latency from 14.90 to 3.00 seconds for Base and from 2.73 to 1.08 seconds for distilled, with denoising speedups of 6.01x and 4.44x. NVIDIA notes that roughly half of eight-GPU distilled time sits outside denoising, limiting end-to-end gains.
Cumulatively, at 2048x2048 on one B200, compilation plus NVFP4 with PrimsTS GEMMs, Sol-Attention and Cache-DiT reduced text-to-image from 22.36 to 6.46 seconds (3.46x) and image-to-image from 54.64 to 12.28 seconds (4.45x), while the 16-step distilled model reached up to 2.34x end-to-end. On a single RTX PRO 6000 Blackwell Server Edition GPU, compilation, NVFP4 with CuTe DSL kernels and Cache-DiT yielded 1.73x to 3.25x speedups.
These figures come from NVIDIA's own benchmarks, exclude prompt upsampling, and each optimization introduces measurable perceptual differences; the tutorial supplies YAML configurations for reproduction. For teams running image editors or visual production pipelines, the practical implication is that quantization, sparse attention and step caching can buy several times the throughput at adjustable quality, but the settings should be re-evaluated for each resolution and fidelity target.