expected scalar type Half but found Float (number formats do not match)
In a node, numbers in half precision (fp16) and full precision (fp32) meet, and PyTorch refuses to calculate with them.
The message
RuntimeError: expected scalar type Half but found Float | RuntimeError: expected scalar type Float but found Half
Affects: ComfyUI
Why is this happening?
Depending on the graphics card, models run in fp16, bf16, or fp32. A node has to convert all data to the same format before computing. If it forgets, PyTorch stops with this message. This is almost always a program bug in the affected node, often in a Custom Node, and it often happens after an update of ComfyUI or PyTorch when the Custom Node has not yet been adapted. Older cards like the GTX 16 series are especially often affected.
How to fix it
- Read the last lines of the error trace in the console. If you see a path with
custom_nodes\…, the error is in this Custom Node; otherwise, it is in ComfyUI itself. - Update ComfyUI. Portable: run
update\update_comfyui.batin theComfyUI_windows_portablefolder. Desktop app: Manage → Update tab. Manual installation: activate the venv, rungit pullin theComfyUIfolder, thenpip install -r requirements.txt. - Update the affected Custom Node in the ComfyUI Manager. Example: For AnimateDiff-Evolved and Advanced-ControlNet, the error is fixed starting with version 1.5.7.
- As a workaround, start ComfyUI with
--force-fp32. Portable:.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --force-fp32. This uses more VRAM and is slower. - If none of that helps, report the error with the console log, workflow, and graphics card on the GitHub page of the Custom Node or at ComfyUI. Until it is fixed, an older version of the Custom Node may help.
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
- Expected all tensors to be on the same device (data partly on GPU, partly on CPU)
- Cannot execute because a node is missing the class_type property (Node not loaded or wrong workflow format)
- Prompt outputs failed validation: Required input is missing (Required input not connected)
- Windows SmartScreen or Defender blocks an installer or .exe
- torch._scaled_mm is only supported on CUDA devices with compute capability >= 9.0 or 8.9 (fp8 fast mode needs RTX 40 or newer)
Sources
- https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved/issues/569
- https://github.com/Comfy-Org/ComfyUI/issues/12933
- https://github.com/Comfy-Org/ComfyUI/issues/14873
- https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.