With this fix, I've verified that the SDXL was saved correctly.
[x] sdxl with --medvram-sdxl works
[x] SD1.5 also works fine.
[x] support load already loaded or merged model from shared.sd_model
@@ -823,8 +823,16 @@ class ModelMixerScript(scripts.Script):
metadata["sd_merge_models"] = json.dumps(metadata["sd_merge_models"])
if shared.sd_model is not None:
With this fix, I've verified that the SDXL was saved correctly.
--medvram-sdxl
works[x] support load already loaded or merged model from
shared.sd_model
save to cpu
restore to gpu