fix tiling, rope precision and weights
This commit is contained in:
@@ -147,11 +147,13 @@ class LTXModelConfig(BaseModelConfig):
|
||||
if self.audio_positional_embedding_max_pos is None:
|
||||
self.audio_positional_embedding_max_pos = [20]
|
||||
|
||||
# PyTorch LTX-2 configurator has a bug: it reads "frequencies_precision"
|
||||
# instead of "rope_double_precision" from the config, so double_precision_rope
|
||||
# is always False in PyTorch regardless of what the config file says. Since the
|
||||
# model was trained with this behavior, we must match it.
|
||||
self.double_precision_rope = False
|
||||
# PyTorch LTX-2 configurator reads "frequencies_precision" (not
|
||||
# "double_precision_rope") from the config. For LTX-2 (no prompt adaln)
|
||||
# the key is absent, so double_precision_rope = False. For LTX-2.3
|
||||
# (has_prompt_adaln=True) the safetensors config has
|
||||
# frequencies_precision="float64", so double_precision_rope = True.
|
||||
if not self.has_prompt_adaln:
|
||||
self.double_precision_rope = False
|
||||
|
||||
# Convert string enum values if loading from dict
|
||||
if isinstance(self.model_type, str):
|
||||
|
||||
Reference in New Issue
Block a user