[chore] add _repeated_blocks for regional compilation support (#1642)
Signed-off-by: Lancer <maruixiang6688@gmail.com>
This commit is contained in:
1 parent
f9ec07f0e2
commit
4082202484
2 files changed
+4
No files matched your search
@@ -544,6 +544,8 @@ class GlmImageTransformer2DModel(CachedTransformer):
|
||||
`od_config.tf_model_config`.
|
||||
"""
|
||||
|
||||
_repeated_blocks = ["GlmImageTransformerBlock"]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
od_config: OmniDiffusionConfig,
|
||||
|
||||
@@ -509,6 +509,8 @@ class LongCatImageTransformer2DModel(nn.Module):
|
||||
Supports Sequence Parallelism (Ulysses and Ring) when configured via OmniDiffusionConfig.
|
||||
"""
|
||||
|
||||
_repeated_blocks = ["LongCatImageTransformerBlock", "LongCatImageSingleTransformerBlock"]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
od_config: OmniDiffusionConfig,
|
||||
|
||||
Reference in new issue
Block a user