Skip to content

Commit a2d3cbc

Browse files
committed
connectors
1 parent d73e6b7 commit a2d3cbc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ def rename_for_ltx2_connector(key):
410410
# Handle FF
411411
key = key.replace("ff.net.0.proj", "ff.proj1")
412412
key = key.replace("ff.net.2", "ff.proj2")
413+
# Handle to_out
414+
key = key.replace("to_out.0", "to_out")
413415

414416
# Validation/Weight suffix
415417
if key.endswith(".weight"):

src/maxdiffusion/models/ltx2/text_encoders/text_encoders_ltx2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
# Feature Extractor Config
3939
gemma_dim: int = 3840, # Gemma-3-12b
4040
gemma_layers: int = 49, # Gemma-3 has 48 layers + 1 embedding layer output = 49 hidden states
41-
projection_dim: int = 3840, # LTX-2 conditioning dim
41+
projection_dim: int = 4096, # LTX-2 conditioning dim
4242
# Connector Config
4343
connector_heads: int = 32,
4444
connector_head_dim: int = 128,
@@ -98,7 +98,7 @@ def __init__(
9898
# Feature Extractor Config (Shared)
9999
gemma_dim: int = 3840, # Gemma-3-12b
100100
gemma_layers: int = 49, # Gemma-3 has 48 layers + 1 embedding layer output = 49 hidden states
101-
projection_dim: int = 3840,
101+
projection_dim: int = 4096,
102102
# Connector Config
103103
connector_heads: int = 32,
104104
connector_head_dim: int = 128,

0 commit comments

Comments
 (0)