Commit 0fbf767
committed
feat(ltx2): extend support for LTX-2.3 LoRA support
Adds LoRA support for **LTX-2.3 (22b)** in the LTX-2 pipeline by extending the NNX→Diffusers LoRA key-translation map and clarifying the loader's diagnostics.
- Map extensions (`loaders/lora_conversion_utils.py`):
- `to_gate_logits` for every attention family
- `prompt_adaln` / `audio_prompt_adaln` → the model's `prompt_adaln_single` / `audio_prompt_adaln_single`.
- Loader logging/diagnostics (`loaders/ltx2_lora_nnx_loader.py`):
- a missing LoRA weight name returns early with one clear message.
- a missing `transformer` and a missing `connectors` each get their own message.
- a LoRA carrying keys outside the two routed prefixes (`diffusion_model.` / `text_embedding_projection.`) is now warned about.
- Example config (`configs/ltx2_3_video.yml`):
- Point the example `lora_config` at a valid 22b adapter (colorization IC-LoRA) instead of the prior 19b entry.1 parent 9616d1c commit 0fbf767
3 files changed
Lines changed: 42 additions & 19 deletions
File tree
- src/maxdiffusion
- configs
- loaders
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
| 725 | + | |
724 | 726 | | |
725 | 727 | | |
726 | 728 | | |
727 | 729 | | |
728 | 730 | | |
| 731 | + | |
729 | 732 | | |
730 | 733 | | |
731 | 734 | | |
732 | 735 | | |
733 | 736 | | |
| 737 | + | |
734 | 738 | | |
735 | 739 | | |
736 | 740 | | |
737 | 741 | | |
738 | 742 | | |
| 743 | + | |
739 | 744 | | |
740 | 745 | | |
741 | 746 | | |
742 | 747 | | |
743 | 748 | | |
| 749 | + | |
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
| |||
778 | 784 | | |
779 | 785 | | |
780 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
781 | 794 | | |
782 | 795 | | |
783 | 796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | | - | |
57 | 62 | | |
58 | | - | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
65 | | - | |
66 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
0 commit comments