Skip to content

Commit e2ddf28

Browse files
Fix some fp8 scaled checkpoints no longer working. (Comfy-Org#13239)
1 parent 076639f commit e2ddf28

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
@@ -1745,6 +1745,8 @@ def load_diffusion_model_state_dict(sd, model_options={}, metadata=None, disable
17451745
temp_sd = comfy.utils.state_dict_prefix_replace(sd, {diffusion_model_prefix: ""}, filter_keys=True)
17461746
if len(temp_sd) > 0:
17471747
sd = temp_sd
1748+
if custom_operations is None:
1749+
sd, metadata = comfy.utils.convert_old_quants(sd, "", metadata=metadata)
17481750

17491751
parameters = comfy.utils.calculate_parameters(sd)
17501752
weight_dtype = comfy.utils.weight_dtype(sd)

0 commit comments

Comments
 (0)