---
title: "Speed Up Image Generation with FLUX 3 Image Klein on NVIDIA Blackwell GPUs"
description: "FLUX 3 Image Klein from Black Forest Labs is an image editing and generation model for design and production workflows. This tutorial explains how to configure it in NVIDIA TensorRT LLM VisualGen on Blackwell GPUs to reduce inference latency through multiple optimizations. These include NVFP4 quantization for the diffusion transformer, fused GEMM kernels with epilogue fusion, quantized attention via cuDNN FP8 or VC-Attention FP8, sparse attention with Sol-Attention, and step caching with Cache-DiT that reuses intermediate outputs. At 2048x2048 resolution on a single NVIDIA B200 GPU, combining these optimizations delivered up to 3.46x faster text-to-image and 4.45x faster image-to-image generation for the Base checkpoint compared to uncompiled BF16 VANILLA inference. The tutorial provides deployment instructions and YAML configuration files to replicate these results."
---

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

[NVIDIA](https://yomu.fyi/company/nvidia-developer-blog) · Olivia Stoner · Nov 6, 2026

**Type:** Tutorial

## Summary

FLUX 3 Image Klein from Black Forest Labs is an image editing and generation model for design and production workflows. This tutorial explains how to configure it in NVIDIA TensorRT LLM VisualGen on Blackwell GPUs to reduce inference latency through multiple optimizations. These include NVFP4 quantization for the diffusion transformer, fused GEMM kernels with epilogue fusion, quantized attention via cuDNN FP8 or VC-Attention FP8, sparse attention with Sol-Attention, and step caching with Cache-DiT that reuses intermediate outputs. At 2048x2048 resolution on a single NVIDIA B200 GPU, combining these optimizations delivered up to 3.46x faster text-to-image and 4.45x faster image-to-image generation for the Base checkpoint compared to uncompiled BF16 VANILLA inference. The tutorial provides deployment instructions and YAML configuration files to replicate these results.

## Context

Deploying diffusion models in design tools, image editors, and visual production workflows requires managing inference latency from multiple sequential passes through a model with billions of parameters.

## Approach / What changed

Configuring FLUX 3 Image Klein in NVIDIA TensorRT LLM VisualGen on Blackwell GPUs and applying optimizations including NVFP4 quantization, fused GEMM kernels, quantized attention (cuDNN FP8 or VC-Attention FP8), sparse attention (Sol-Attention), and step caching (Cache-DiT) via YAML configuration files.

## Takeaways

- Combined optimizations on a single NVIDIA B200 GPU at 2048x2048 resolution achieved up to 3.46x faster text-to-image and 4.45x faster image-to-image generation for FLUX 3 Image Klein Base compared with uncompiled BF16 VANILLA inference.
- VC-Attention FP8 provided a 1.18x speedup over VANILLA BF16 attention for Base NVFP4 inference with a perceptual difference (LPIPS) of 0.086.
- Cache-DiT with a residual-difference threshold of 0.24 nearly halved the NVFP4 Base text-to-image latency at both 1024x1024 and 2048x2048 resolutions.

## FAQ

### What speedups can be achieved with FLUX 3 Image Klein on a single B200 GPU?

Combined optimizations delivered up to 3.46x faster text-to-image and 4.45x faster image-to-image generation compared to uncompiled BF16 inference at 2048x2048 resolution.

### How do I configure quantized attention in TensorRT LLM VisualGen?

Replace the attention\_config in the YAML with either cuDNN FP8 or VC-Attention FP8 settings. For VC-Attention FP8, set backend: TRTLLM, quant\_attention\_config with qk\_dtype and v\_dtype as fp8, vc\_attention: true, and vc\_repair\_budget: 0.005.

### What is Cache-DiT and how does it reduce latency?

Cache-DiT reduces inference latency by reusing intermediate transformer outputs across denoising steps without retraining or modifying model weights. A residual-difference threshold controls when cached outputs are reused, allowing adjustment between speed and quality.

**Tags:** [GPU](https://yomu.fyi/topic/gpu), [Inference](https://yomu.fyi/topic/inference), [NVIDIA](https://yomu.fyi/topic/nvidia), [Quantization](https://yomu.fyi/topic/quantization), [TensorRT LLM](https://yomu.fyi/topic/tensorrt-llm)

- Source: [NVIDIA](https://developer.nvidia.com/blog/speed-up-image-generation-with-flux-3-image-klein-on-nvidia-blackwell-gpus)
- Source URL: https://developer.nvidia.com/blog/speed-up-image-generation-with-flux-3-image-klein-on-nvidia-blackwell-gpus
- Ingested by Yomu: 2026-11-07T00:00:16.964Z

[Read original post](https://developer.nvidia.com/blog/speed-up-image-generation-with-flux-3-image-klein-on-nvidia-blackwell-gpus)
