From bc11af31e4e720e6926a0612e88b65c3d1c49fc7 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Thu, 6 Mar 2025 02:07:00 +0200 Subject: [PATCH] Update nodes.py --- nodes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 2accc68..1483424 100644 --- a/nodes.py +++ b/nodes.py @@ -308,8 +308,11 @@ class WanVideoModelLoader: else: raise ValueError("torch.backends.cuda.matmul.allow_fp16_accumulation is not available in this version of torch, requires torch 2.7.0.dev2025 02 26 nightly minimum currently") else: - if hasattr(torch.backends.cuda.matmul, "allow_fp16_accumulation"): - torch.backends.cuda.matmul.allow_fp16_accumulation = False + try: + if hasattr(torch.backends.cuda.matmul, "allow_fp16_accumulation"): + torch.backends.cuda.matmul.allow_fp16_accumulation = False + except: + pass model_path = folder_paths.get_full_path_or_raise("diffusion_models", model) sd = load_torch_file(model_path, device=transformer_load_device, safe_load=True)