Skip to content

Commit aff7aa3

Browse files
committed
weight loading for tokenizer
1 parent 1d0ae41 commit aff7aa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def load_vae_weights(
328328

329329
flax_key, flax_tensor = rename_key_and_reshape_tensor(pt_tuple_key, tensor, random_flax_state_dict)
330330
flax_key = _tuple_str_to_int(flax_key)
331-
max_logging.log(f"Mapped key: {pt_key} -> {flax_key}")
331+
332332

333333
if resnet_index is not None:
334334
str_flax_key = tuple([str(x) for x in flax_key])

src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def load_tokenizer(cls, config: HyperParameters):
307307
def load_text_encoder(cls, config: HyperParameters):
308308
max_logging.log("Loading Gemma3 Text Encoder...")
309309
text_encoder = Gemma3ForConditionalGeneration.from_pretrained(
310-
config.pretrained_model_name_or_path,
310+
"Lightricks/LTX-2",
311311
subfolder="text_encoder",
312312
torch_dtype=torch.bfloat16,
313313
)

0 commit comments

Comments
 (0)