mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-05 08:42:14 -08:00
ignore mps for fp8
This commit is contained in:
parent
bf5067f50c
commit
dda067f64d
1 changed files with 3 additions and 1 deletions
|
|
@ -392,7 +392,9 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
|
|||
devices.dtype_unet = torch.float16
|
||||
timer.record("apply half()")
|
||||
|
||||
if shared.cmd_opts.opt_unet_fp8_storage:
|
||||
if devices.get_optimal_device_name() == "mps":
|
||||
enable_fp8 = False
|
||||
elif shared.cmd_opts.opt_unet_fp8_storage:
|
||||
enable_fp8 = True
|
||||
elif model.is_sdxl and shared.cmd_opts.opt_unet_fp8_storage_xl:
|
||||
enable_fp8 = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue