File tree Expand file tree Collapse file tree
src/maxdiffusion/models/ltx2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ):
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments