ComfyUI-WanVideoWrapper icon indicating copy to clipboard operation
ComfyUI-WanVideoWrapper copied to clipboard

Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"

Open bhuvanesh006 opened this issue 1 year ago • 5 comments

Dynamo failed to run FX node with fake tensors: call_function (*(FakeTensor(..., device='cuda:0', size=(1, 48360, 5120), dtype=torch.float16), Parameter(FakeTensor(..., size=(5120, 5120), dtype=torch.float16, requires_grad=True)), Parameter(FakeTensor(..., size=(5120,), dtype=torch.float16, requires_grad=True))), **{}): got RuntimeError('Unhandled FakeTensor Device Propagation for aten.mm.default, found two different devices cuda:0, cpu')

bhuvanesh006 avatar Jun 27 '25 17:06 bhuvanesh006

I've got the same issue after I change my working workflow a little bit. Would you believe the cause of the issue "keep_proportion" property in a resize node?! For my start image I set width 480 and "keep_proportion" to "Resize". The image was resized into 410 and it broke the workflow. Seems "410" pixels is not acceptable for 14B models. After I changed the "keep_proportion" to "crop" I got "480" pixels width and the workflow is working again.

NotDimon avatar Jul 02 '25 17:07 NotDimon

I've got the same issue after I change my working workflow a little bit. Would you believe the cause of the issue "keep_proportion" property in a resize node?! For my start image I set width 480 and "keep_proportion" to "Resize". The image was resized into 410 and it broke the workflow. Seems "410" pixels is not acceptable for 14B models. After I changed the "keep_proportion" to "crop" I got "480" pixels width and the workflow is working again.

Fixed my problem, thanks!

ghost avatar Sep 14 '25 15:09 ghost

I'm having trouble with my Triton.

CalledProcessError: Command '['E:\ComfyUI-StableDif-t27-p312-cu128-v2.1\python_embeded\Lib\site-packages\triton\runtime\tcc\tcc.exe', 'C:\Users\DanielW\AppData\Local\Temp\tmp00c7u6ez\__triton_launcher.c', '-O3', '-shared', '-Wno-psabi', '-o', 'C:\Users\DanielW\AppData\Local\Temp\tmp00c7u6ez\__triton_launcher.cp312-win_amd64.pyd', '-fPIC', '-lcuda', '-lpython3', '-LE:\ComfyUI-StableDif-t27-p312-cu128-v2.1\python_embeded\Lib\site-packages\triton\backends\nvidia\lib', '-LC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\lib\x64', '-IE:\ComfyUI-StableDif-t27-p312-cu128-v2.1\python_embeded\Lib\site-packages\triton\backends\nvidia\include', '-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\include', '-IC:\Users\DanielW\AppData\Local\Temp\tmp00c7u6ez', '-IE:\ComfyUI-StableDif-t27-p312-cu128-v2.1\python_embeded\Include']' returned non-zero exit status 1.

Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"

norter69 avatar Oct 01 '25 08:10 norter69

I had also the Triton issue; my system/setup:

Platform: Windows Python version: 3.13.9 Python executable: D:\ComfyUI_windows_portable\python_embeded\python.exe Total VRAM 16303 MB, total RAM 32557 MB pytorch version: 2.9.1+cu130 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5080 : cudaMallocAsync

I got my solution via the bat with the following settings:

`@echo off setlocal

:: Set working directory to script location cd /d "%~dp0"

:: Disable PyTorch Inductor (critical for RTX 5080 / CC 12.0) set TORCHINDUCTOR_DISABLE=1

:: Optional: Also disable Dynamo if needed (redundant but safe) set TORCHDYNAMO_DISABLE=1

:: Launch ComfyUI with embedded Python call python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --disable-pinned-memory

pause`

maybe888 avatar Jan 15 '26 19:01 maybe888

Image

PepeMania007 avatar Jan 15 '26 19:01 PepeMania007