VRAM & CUDA Tuning
Enabling --fast fp8_matrix_mult on Ada Lovelace (L4 & L40S)
Unlock native 4th-gen Tensor Core FP8 accumulation on NVIDIA L4 and L40S GPUs while avoiding slow emulation on Ampere A16/A40/A100 cards.
+22% Speed on L4/L40S · Disable on Ampere A16/A40/A100
Compute Capability 8.9 Requirement
Hardware FP8 matrix multiplication requires Ada Lovelace (SM 8.9) or Hopper (SM 9.0). Enabling --fast fp8_matrix_mult on Ampere A100/A40 falls back to software unpacking or errors.
Combining FP8 Matmul With SageAttention
On Vultr L4 and L40S, stacking --fast fp8_matrix_mult with --use-sage-attention delivers the fastest Flux.1-dev generation cost per dollar.
Measured Thresholds & ComfyUI Configuration Matrix
| GPU Architecture | Native FP8 Tensor Cores? | Recommended ComfyUI Flag |
|---|---|---|
| NVIDIA L4 / L40S (Ada Lovelace) | Yes (Compute 8.9) | --fast fp8_matrix_mult --fp8_e4m3fn-unet |
| NVIDIA A16 / A40 / A100 (Ampere) | No (Compute 8.0/8.6) | Omit --fast fp8_matrix_mult (use BF16/FP8 cast) |
| Hopper H100 / H200 | Yes (Compute 9.0) | --fast fp8_matrix_mult |