Skip to content

Commit 4504ee7

Browse files
Fix some fp8 scaled checkpoints no longer working. (#13239)
1 parent 94ab69f commit 4504ee7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

comfy/sd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,8 @@ def load_diffusion_model_state_dict(sd, model_options={}, metadata=None, disable
17241724
temp_sd = comfy.utils.state_dict_prefix_replace(sd, {diffusion_model_prefix: ""}, filter_keys=True)
17251725
if len(temp_sd) > 0:
17261726
sd = temp_sd
1727+
if custom_operations is None:
1728+
sd, metadata = comfy.utils.convert_old_quants(sd, "", metadata=metadata)
17271729

17281730
custom_operations = model_options.get("custom_operations", None)
17291731
if custom_operations is None:

0 commit comments

Comments
 (0)