mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-09-06 05:56:57 +08:00
Update model_optimization_nodes.py
This commit is contained in:
parent
6a16be7f21
commit
9a15e22f5e
@ -210,6 +210,7 @@ class DiffusionModelLoaderKJ(BaseLoaderKJ):
|
|||||||
model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options)
|
model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options)
|
||||||
if dtype := DTYPE_MAP.get(compute_dtype):
|
if dtype := DTYPE_MAP.get(compute_dtype):
|
||||||
model.set_model_compute_dtype(dtype)
|
model.set_model_compute_dtype(dtype)
|
||||||
|
model.force_cast_weights = False
|
||||||
self._patch_modules(patch_cublaslinear, sage_attention)
|
self._patch_modules(patch_cublaslinear, sage_attention)
|
||||||
|
|
||||||
return (model,)
|
return (model,)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user