Skip to content

Commit

Permalink
Support non-quantized bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonrising committed Sep 3, 2024
1 parent 10f0ff7 commit f4abfd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invokeai/backend/model_manager/load/model_loaders/flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def _load_from_singlefile(
with SilenceWarnings():
model = Flux(params[config.config_path])
sd = load_file(model_path)
if "model.diffusion_model.double_blocks.0.img_attn.norm.key_norm.scale" in sd:
sd = convert_bundle_to_flux_transformer_checkpoint(sd)
model.load_state_dict(sd, assign=True)
return model

Expand Down

0 comments on commit f4abfd2

Please sign in to comment.