Update model_optimization_nodes.py

This commit is contained in:
kijai 2025-03-01 12:41:50 +02:00
parent 6a16be7f21
commit 9a15e22f5e

View File

@ -210,6 +210,7 @@ class DiffusionModelLoaderKJ(BaseLoaderKJ):
model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options)
if dtype := DTYPE_MAP.get(compute_dtype):
model.set_model_compute_dtype(dtype)
model.force_cast_weights = False
self._patch_modules(patch_cublaslinear, sage_attention)
return (model,)