Does NVFP4 work on an RTX 4090?

last edited

NVFP4 does not work natively on an RTX 4090: files can load, but the fast tensor-core path needs Blackwell, so the card gains memory savings and little speed. The RTX 3090 shares that limit. See formats, speed test and conversion.

no fp4 corertx 20no fp4 corertx 30no fp4 corertx 40fp4 corertx 50

Why does NVFP4 need Blackwell?

sm 7.5turingsm 8.6amperesm 8.9adasm 10.0blackwellfp8 kernelsnvfp4rtx 4090 stops here

Comfy Kitchen lists the NVFP4 layout as SM 10.0 or newer. Its FP8 layout needs only SM 8.9, which an Ada card meets. The NVFP4 matrix multiply exists only in the eager and CUDA backends, with no fallback backend listed.

What happens to an NVFP4 file in ComfyUI on Ada?

nvfp4 filefp4 path blockedbf16 matmul

The ComfyUI format notes say native kernels run where supported. Otherwise weights are dequantized for compute-dtype execution. A 4090 therefore loads the checkpoint but multiplies at wider speed. See also ComfyUI ecosystem.

What replaces NVFP4 on older cards?

nf4 baselineint4 svdquantsame 4090, 3.0x speed ratio
architecturefp4 hardwareuse instead
older cardsnoneINT4 Nunchaku
AdaFP8 onlyINT4 Nunchaku or FP8
newest cardsSM 10.0+ tensor coresNVFP4

The Nunchaku README says a January release added INT4 for older cards. It lists NVFP4 speedups for the RTX 5090 only. On a desktop 4090 the MIT Han Lab method runs triple the speed of the older baseline. AMD, Intel and Apple lack FP4 too, see Intel and Apple playgrounds. Training with MiniMax H3 can stay on wider weights.

Do vLLM and llama.cpp run NVFP4 on a 4090?

w4a4 fp4 kernelw4a16 marlinw16a16 denseneeds sm 10.0ampere and ada okfallback order on a 4090

The vLLM docs say a W4A4 request falls back to a weight-only Marlin kernel when activation kernels are missing. It then runs as W4A16, saving memory only.

The llama.cpp pull request merged NVFP4 scale support on Nov 27. One user benchmarked a dual-4090 box: prompt reading gained about half, while generation slowed slightly against a Q4 file.

Sources