From e29f526c6826f06166d1ad81910b60d28b19cf8b Mon Sep 17 00:00:00 2001 From: City <125218114+city96@users.noreply.github.com> Date: Wed, 16 Apr 2025 16:07:51 +0200 Subject: [PATCH] Disable mixing scaled FP8 + GGUF --- nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes.py b/nodes.py index b967b96..f82469a 100644 --- a/nodes.py +++ b/nodes.py @@ -227,6 +227,8 @@ class CLIPLoaderGGUF: sd = gguf_clip_loader(p) else: sd = comfy.utils.load_torch_file(p, safe_load=True) + if "scaled_fp8" in sd: # NOTE: Scaled FP8 would require different custom ops, but only one can be active + raise NotImplementedError(f"Mixing scaled FP8 with GGUF is not supported! Use regular CLIP loader or switch model(s)\n({p})") clip_data.append(sd) return clip_data