Skip to content

Commit e9fb4a8

Browse files
committed
Hot FixL: Revert aggresive memory management until a more targeted approach can be developed. This was causing OOMs on models that should load normally using the normal loader.
Update version to 2.4.4.
1 parent e1635e9 commit e9fb4a8

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

distorch_2.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,12 @@ def new_partially_load(self, device_to, extra_memory=0, full_load=False, force_p
6767
allocations = safetensor_allocation_store.get(debug_hash)
6868

6969
if not hasattr(self.model, '_distorch_high_precision_loras') or not allocations:
70-
mm.unload_all_models()
71-
soft_empty_cache_multigpu(logger)
7270
result = original_partially_load(self, device_to, extra_memory, force_patch_weights)
7371
if hasattr(self, '_distorch_block_assignments'):
7472
del self._distorch_block_assignments
7573
return result
7674

77-
mm.unload_all_models()
78-
soft_empty_cache_multigpu(logger)
75+
# soft_empty_cache_multigpu(logger)
7976

8077
mem_counter = 0
8178

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-multigpu"
33
description = "Provides a suite of custom nodes to manage multiple GPUs for ComfyUI, including advanced model offloading for both GGUF and Safetensor formats with DisTorch, and bespoke MultiGPU support for WanVideoWrapper and other custom nodes."
4-
version = "2.4.3"
4+
version = "2.4.4"
55
license = {file = "LICENSE"}
66

77
[project.urls]

0 commit comments

Comments
 (0)