The message
RuntimeError: torch._scaled_mm is only supported on CUDA devices with compute capability >= 9.0 or 8.9, or ROCm MI300+
Affects: ComfyUI
Why is this happening?
Models in fp8 format can be loaded in a memory-saving way on any current NVIDIA card. The extra fast mode (usually …_fast in load nodes, e.g. fp8_e4m3fn_fast) also computes in fp8, and that requires Compute Capability 8.9 or higher, so RTX 40 and newer. Cards in the RTX 30, RTX 20, and GTX series do not support this. Most often, the error comes from Custom Nodes such as the video wrappers (WanVideo, HunyuanVideo, CogVideoX, PyramidFlow), which do not check for the fast mode first.
How to fix it
- Check your graphics card: RTX 40 and RTX 50 can use the fast mode, RTX 30 and older cannot.
- Open the model’s load node (e.g. „WanVideo Model Loader“) and set
quantizationorweight_dtypeto the version without_fastinstead offp8_e4m3fn_fast, sofp8_e4m3fn. The same applies tofp8_e5m2_fastand…_scaled_fast. - Run the workflow again. The model stays small in memory, but computation is a bit slower.
- If you start ComfyUI with the
--supports-fp8-computeoption, remove it. It forces ComfyUI to use fp8 computing even on cards that cannot handle it. Normally, ComfyUI checks this itself. - If you have an RTX 40 or newer and still get the error, update PyTorch. ComfyUI only uses fp8 computing on RTX 40 starting with PyTorch 2.3.
Better not: Do not reinstall CUDA Toolkit or cuDNN: the limit is in the card’s hardware, not the software.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- CUDAExecutionProvider is not in available provider names (onnxruntime runs only on the CPU)
- no kernel image is available (graphics card does not match the PyTorch version)
- RuntimeError: CUDA error: an illegal memory access was encountered – the graphics card accessed invalid memory
- The NVIDIA driver on your system is too old
- AMD Radeon is not being used, PyTorch is running on the CPU
Sources
- https://github.com/kijai/ComfyUI-PyramidFlowWrapper/issues/43
- https://github.com/kijai/ComfyUI-HunyuanVideoWrapper/issues/364
- https://github.com/kijai/ComfyUI-WanVideoWrapper/blob/main/nodes_model_loading.py
- https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/model_management.py
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.