MCPcopy
hub / github.com/city96/ComfyUI-GGUF / load_data

Method load_data

nodes.py:223–233  ·  view source on GitHub ↗
(self, ckpt_paths)

Source from the content-addressed store, hash-verified

221 return sorted(files)
222
223 def load_data(self, ckpt_paths):
224 clip_data = []
225 for p in ckpt_paths:
226 if p.endswith(".gguf"):
227 sd = gguf_clip_loader(p)
228 else:
229 sd = comfy.utils.load_torch_file(p, safe_load=True)
230 if "scaled_fp8" in sd: # NOTE: Scaled FP8 would require different custom ops, but only one can be active
231 raise NotImplementedError(f"Mixing scaled FP8 with GGUF is not supported! Use regular CLIP loader or switch model(s)\n({p})")
232 clip_data.append(sd)
233 return clip_data
234
235 def load_patcher(self, clip_paths, clip_type, clip_data):
236 clip = comfy.sd.load_text_encoder_state_dicts(

Callers 4

load_clipMethod · 0.95
load_clipMethod · 0.80
load_clipMethod · 0.80
load_clipMethod · 0.80

Calls 1

gguf_clip_loaderFunction · 0.85

Tested by

no test coverage detected