Skip to content

Commit 6901ef4

Browse files
committed
update
1 parent 9710bbc commit 6901ef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/hooks/group_offloading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
_GROUP_OFFLOADING = "group_offloading"
3737
_LAYER_EXECUTION_TRACKER = "layer_execution_tracker"
3838
_LAZY_PREFETCH_GROUP_OFFLOADING = "lazy_prefetch_group_offloading"
39-
GROUP_ID_LAZY_LEAF = "lazy_leafs"
39+
_GROUP_ID_LAZY_LEAF = "lazy_leafs"
4040
_SUPPORTED_PYTORCH_LAYERS = (
4141
torch.nn.Conv1d, torch.nn.Conv2d, torch.nn.Conv3d,
4242
torch.nn.ConvTranspose1d, torch.nn.ConvTranspose2d, torch.nn.ConvTranspose3d,
@@ -792,7 +792,7 @@ def _apply_group_offloading_leaf_level(
792792
record_stream=False,
793793
low_cpu_mem_usage=low_cpu_mem_usage,
794794
onload_self=True,
795-
group_id=GROUP_ID_LAZY_LEAF,
795+
group_id=_GROUP_ID_LAZY_LEAF,
796796
)
797797
_apply_lazy_group_offloading_hook(module, unmatched_group, None)
798798

0 commit comments

Comments
 (0)