Commit 40ac134c authored by Kohaku-Blueleaf's avatar Kohaku-Blueleaf

Fix pre-fp8

parent f5d719d1
......@@ -357,7 +357,7 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
sd_model_hash = checkpoint_info.calculate_shorthash()
timer.record("calculate hash")
if not check_fp8(model) and devices.fp8:
if devices.fp8:
# prevent model to load state dict in fp8
model.half()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment