Skip to content

Commit

Permalink
Update probe to always use cpu for loading models
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonrising committed Apr 3, 2024
1 parent 7da04b8 commit c301735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invokeai/backend/model_manager/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def _scan_and_load_checkpoint(cls, model_path: Path) -> CkptType:
with SilenceWarnings():
if model_path.suffix.endswith((".ckpt", ".pt", ".pth", ".bin")):
cls._scan_model(model_path.name, model_path)
model = torch.load(model_path)
model = torch.load(model_path, map_location="cpu")
assert isinstance(model, dict)
return model
else:
Expand Down

0 comments on commit c301735

Please sign in to comment.