Skip to content

WanVideoSampler - "Dynamo failed to run FX node with fake tensors:" - First Generation only #1846

@HallettVisual

Description

@HallettVisual

An odd bug I'm getting on first generation, once I gen the 2nd time it disappears.

WanVideoSampler

Dynamo failed to run FX node with fake tensors: call_function <built-in method addcmul of type object at 0x00007FFACDD05A80>(*(FakeTensor(..., device='cuda:0', size=(1, 1, 5120), dtype=torch.float16), FakeTensor(..., device='cuda:0', size=(1, 55860, 5120)), FakeTensor(..., device='cuda:0', size=(1, 1, 5120), dtype=torch.float16)), **{}): got RuntimeError('Unexpected floating ScalarType in at::autocast::prioritize')

from user code:
File "E:\SD MATRIX2\Data\Packages\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 1052, in forward
input_x = self.modulate(self.norm1(x.to(shift_msa.dtype)), shift_msa, scale_msa, seg_idx=self.seg_idx).to(input_dtype)
File "E:\SD MATRIX2\Data\Packages\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 975, in modulate
return torch.addcmul(shift_msa, norm_x, 1 + scale_msa)

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions