Edge 2026
developer-tools Empirical Specification

FlashAttention-3 vs FlashAttention-2: Hopper Asynchronous WGMMA & FP8 Tensor Cores

Asynchronous warp-group matrix multiply-accumulate versus synchronous register tiling

Governing Equation & Conversion Identity Deterministic Formula
Kernel Throughput = (4 * Batch * Seq^2 * Heads * Dim) / Execution_Time_Seconds; FLOP/s Utilization: FA3 up to 85% Hopper Theoretical vs FA2 55%

FlashAttention-3 is redesigned from the ground up to exploit NVIDIA Hopper H100/H200 GPU architecture innovations. By utilizing asynchronous Warp-Group Matrix Multiply-Accumulate (WGMMA) instructions, hardware asynchronous memory copies (TMA), ping-pong scheduling, and low-precision FP8 tensor core accumulation with block scaling, FlashAttention-3 achieves 1.5x to 2.0x higher throughput over FlashAttention-2, reaching up to 85% of theoretical H100 compute utilization.

Technical Tradeoff & Benchmark Matrix

GPU Kernel Dimension FlashAttention-3 (Hopper Optimized) FlashAttention-2 (Ampere / Ada Baseline)
Target GPU Architecture NVIDIA Hopper (SM90 H100, H200) and Blackwell (SM100 B200) NVIDIA Ampere (SM80 A100), Ada Lovelace (SM89), and Hopper
Matrix Multiplication Instruction Asynchronous WGMMA via Tensor Memory Accelerator (TMA) Synchronous mma.sync warp-level instructions
GEMM & Softmax Overlap Asynchronous ping-pong scheduling overlaps GEMM-1, Softmax, and GEMM-2 Sequential barrier synchronization between tiled GEMM and Softmax passes
FP8 Precision Support Native FP8 GEMM with block-level scaling to prevent underflow FP16 and BF16 execution only (no native FP8 kernel acceleration)
Peak Theoretical Utilization Reaches up to 80% - 85% of theoretical Hopper FP16/FP8 TFLOPs Reaches 50% - 55% of theoretical Hopper TFLOPs (register bottlenecked)
Shared Memory Bank Conflicts Hardware swizzling via TMA virtually eliminates bank conflict penalties Software layout transformations and padding required to mitigate conflicts

Interactive Calculation Engines

Calculate empirical values directly using our zero-latency edge computational models:

Frequently Asked Questions & Technical Analysis

Q: Can FlashAttention-3 run on NVIDIA A100 or consumer RTX 4090 GPUs?

No. FlashAttention-3 relies strictly on hardware instructions unique to NVIDIA Hopper (SM90) and later architectures, specifically WGMMA and Tensor Memory Accelerator (TMA). For A100 or RTX 4090 GPUs, FlashAttention-2 remains the fastest available exact attention kernel.

Q: How does FlashAttention-3 maintain numerical stability in FP8 precision?

Rather than quantizing the entire matrix with a single scalar factor, FlashAttention-3 applies block-level scaling factors across small tiles of tokens and feature dimensions. Intermediate Softmax accumulations are preserved in higher-precision FP32/FP16 registers before down-converting to FP8 for the value GEMM.

Related Architectural & Empirical Matrices