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)