Skip to content

Commit

Permalink
fix: try disabling grad on chkpoint load
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Mar 12, 2024
1 parent d13e782 commit f3d5cc0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions hordelib/nodes/node_model_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@ def load_checkpoint(
SharedModelManager.manager._models_in_ram = {}

ckpt_path = folder_paths.get_full_path("checkpoints", ckpt_name)
result = comfy.sd.load_checkpoint_guess_config(
ckpt_path,
output_vae=True,
output_clip=True,
embedding_directory=folder_paths.get_folder_paths("embeddings"),
)
with torch.no_grad():
result = comfy.sd.load_checkpoint_guess_config(
ckpt_path,
output_vae=True,
output_clip=True,
embedding_directory=folder_paths.get_folder_paths("embeddings"),
)

SharedModelManager.manager._models_in_ram[horde_in_memory_name] = result, will_load_loras

Expand Down

0 comments on commit f3d5cc0

Please sign in to comment.