From 96f08043a392b4ab234dff06e0ddcd511fcdb4eb Mon Sep 17 00:00:00 2001 From: sayakpaul Date: Thu, 15 Jan 2026 20:00:45 +0530 Subject: [PATCH] fix group offloading. --- src/diffusers/hooks/_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/diffusers/hooks/_common.py b/src/diffusers/hooks/_common.py index ca7934e5c3..52e3508846 100644 --- a/src/diffusers/hooks/_common.py +++ b/src/diffusers/hooks/_common.py @@ -44,6 +44,7 @@ _GO_LC_SUPPORTED_PYTORCH_LAYERS = ( torch.nn.ConvTranspose2d, torch.nn.ConvTranspose3d, torch.nn.Linear, + torch.nn.Embedding, # TODO(aryan): look into torch.nn.LayerNorm, torch.nn.GroupNorm later, seems to be causing some issues with CogVideoX # because of double invocation of the same norm layer in CogVideoXLayerNorm )