Skip to content

Commit

Permalink
fix load keys in forge
Browse files Browse the repository at this point in the history
  • Loading branch information
hako-mikan committed Jan 22, 2025
1 parent e946d3c commit 5a0f745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/supermerger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ def modeltype(sd):
def loadkeys(model_a, lora):
if lora:
import lora
sd = sd_models.read_state_dict(lora.available_loras[model_a].filename,"cpu")
sd = load_torch_file(lora.available_loras[model_a].filename, device = torch.device("cpu")) if forge else sd_models.read_state_dict(lora.available_loras[model_a].filename,"cpu")
else:
sd = loadmodel(model_a)
keys = []
Expand Down

0 comments on commit 5a0f745

Please sign in to comment.