yuzhewu207 commited on
Commit
1290198
·
verified ·
1 Parent(s): 68c1aac

LTX-2.5 LoRA: three example cases, license file, inference code mirror (ltx/)

Browse files
code/README.md CHANGED
@@ -127,8 +127,9 @@ DiT checkpoints fine-tuned from Wan2.2-TI2V-5B, in the `weights/` folder of
127
  **Other base models.** The approach is not tied to Wan: the visual proxy, the reference binding and the training recipe
128
  carry over to other video backbones. We also trained it on [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B)
129
  as a LoRA: [`weights/ltx25_lora/`](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora)
130
- (an earlier proxy format without tiers or memory; its inference code, a modified LTX-2 pipeline with the
131
- reference-image conditioning, is not part of this repository).
 
132
 
133
  ## Data
134
 
 
127
  **Other base models.** The approach is not tied to Wan: the visual proxy, the reference binding and the training recipe
128
  carry over to other video backbones. We also trained it on [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B)
129
  as a LoRA: [`weights/ltx25_lora/`](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora)
130
+ (an earlier proxy format without tiers or memory). Its inference code, a patch to LTX-2 with the reference-image
131
+ binding plus a runner, is in [`ltx/`](ltx/README.md) with three ready-made cases; that folder and the LoRA are under the
132
+ LTX-2.x Community License.
133
 
134
  ## Data
135
 
code/ltx/LICENSE-LTX-2.x.txt ADDED
@@ -0,0 +1,580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LTX-2.x Community License Agreement
2
+ License date: August 11, 2026
3
+
4
+
5
+ By downloading, using, accessing or distributing any portion or
6
+ element of LTX-2.x, you agree that you have read and accepted to be
7
+ bound by this Agreement.
8
+
9
+ 1. Definitions
10
+
11
+ 1.1 "Agreement" means the terms and conditions for this LTX-2.x
12
+ Community License Agreement and the exhibits, attachments, and
13
+ Complementary Materials, as specified in this document.
14
+
15
+ 1.2 "Complementary Materials" means the accompanying
16
+ documentation, tutorials, examples, configuration files and
17
+ other materials made available by Licensor together with the
18
+ LTX-2.x model weights and parameters, in each case as
19
+ distributed by Licensor.
20
+
21
+ 1.3 "Control" means the direct or indirect ownership of more than
22
+ fifty percent (50%) of the voting securities or other
23
+ ownership interests, or the power to direct the management and
24
+ policies of such Entity through voting rights, contract, or
25
+ otherwise.
26
+
27
+ 1.4 "Data" means a collection of information and/or content
28
+ extracted from the dataset used with LTX-2.x, including to
29
+ train, pretrain, or otherwise evaluate LTX-2.x. The Data is
30
+ not licensed under this Agreement.
31
+
32
+ 1.5 "Derivatives of LTX-2.x" means all modifications to LTX-2.x,
33
+ works based on LTX-2.x, or any other model which is created or
34
+ initialized by transfer of patterns of the weights,
35
+ parameters, activations or output of LTX-2.x, to the other
36
+ model, in order to cause the other model to perform similarly
37
+ to LTX-2.x, including - but not limited to - distillation
38
+ methods entailing the use of intermediate data representations
39
+ or methods based on the generation of synthetic data by
40
+ LTX-2.x for training the other model. For clarity, Derivatives
41
+ of LTX-2.x include: (i) any fine-tuned or adapted weights,
42
+ parameters, or checkpoints derived from LTX-2.x; (ii)
43
+ derivative model architectures that incorporate or are based
44
+ upon LTX-2.x's architecture; and (iii) any modified or
45
+ extended versions of the Complementary Materials.
46
+
47
+ 1.6 "Entity" means any individual, corporation, partnership,
48
+ limited liability company, or other legal entity. For purposes
49
+ of this Agreement, an Entity shall be deemed to include, on an
50
+ aggregative basis, all subsidiaries, affiliates, and other
51
+ companies under common Control with such Entity. When
52
+ determining whether an Entity meets any threshold under this
53
+ Agreement (including revenue thresholds in Section 2.1), all
54
+ subsidiaries, affiliates, and companies under common Control
55
+ shall be considered collectively.
56
+
57
+ 1.7 "Harm" includes but is not limited to physical, mental,
58
+ psychological, financial and reputational damage, pain, or
59
+ loss.
60
+
61
+ 1.8 "Licensor" or "LTX" means the owner that is granting the
62
+ license under this Agreement. For the purposes of this
63
+ Agreement, the Licensor is Lightricks Ltd.
64
+
65
+ 1.9 "LTX-2.x" means the large generative models,
66
+ text/image/video/audio/3D generation models, and multimodal
67
+ large language models and their software and algorithms,
68
+ including trained model weights, parameters (including
69
+ optimizer states), machine-learning model code,
70
+ inference-enabling code, training-enabling code, fine-tuning
71
+ enabling code, accompanying source code, scripts, and all
72
+ other elements of the foregoing distributed and made publicly
73
+ available by LTX (including, for example, at
74
+ https://github.com/Lightricks/LTX-2). This license is
75
+ applicable to all LTX-2.5 versions released since August 11,
76
+ 2026, and all future releases of LTX-2.x under this license.
77
+
78
+ 1.10 "Output" means the results of operating LTX-2.x as embodied
79
+ in informational content resulting therefrom.
80
+
81
+ 1.11 "you" (or "your") means an individual or legal Entity
82
+ licensing LTX-2.x in accordance with this Agreement and/or
83
+ otherwise downloading, accessing, distributing or using
84
+ LTX-2.x for whichever purpose and in any field of use,
85
+ including usage of LTX-2.x in an end-use application - e.g.
86
+ chatbot, translator, image generator.
87
+
88
+ 2. Grant of License.
89
+
90
+ 2.1 Subject to your compliance with the terms and conditions of
91
+ this Agreement, you are granted a non-exclusive, worldwide,
92
+ non-transferable and royalty-free limited license under
93
+ Licensor's intellectual property or other rights owned by
94
+ Licensor embodied in LTX-2.x to use, reproduce, prepare,
95
+ distribute, publicly display, publicly perform, sublicense,
96
+ copy, create derivative works of, and make modifications to
97
+ LTX-2.x, for any purpose, subject to the restrictions set
98
+ forth in Attachment A; provided however, that Entities with
99
+ annual revenues of at least $10,000,000 (the "Commercial
100
+ Entities") are required to obtain a paid license for any use
101
+ (excluding use solely for a Non-Commercial Purpose as set
102
+ forth in Section 2.2) of LTX-2.x and Derivatives of LTX-2.x
103
+ (such paid license referred to herein as a "Commercial Use
104
+ Agreement"), as will be provided by the Licensor. Commercial
105
+ Entities interested in such a commercial license are required
106
+ to contact Licensor (ltxv-licensing@lightricks.com). Any use
107
+ of LTX-2.x or Derivatives of LTX-2.x by Commercial Entities
108
+ not in accordance with this Agreement and/or the Commercial
109
+ Use Agreement is strictly prohibited and shall be deemed a
110
+ material breach of this Agreement. In the event of such
111
+ material breach, and without limiting Licensor's right to
112
+ terminate the Agreement or to pursue any other remedies
113
+ available at law or in equity, you shall pay Licensor the
114
+ license fees owed for the period such Commercial Entity used
115
+ LTX-2.x (calculated at Licensor's standard commercial license
116
+ fees, in effect during the relevant period or, absent
117
+ published standard fees, a reasonable market rate for a
118
+ comparable license), within thirty (30) days of Licensor's
119
+ written demand.
120
+
121
+ 2.2 Notwithstanding the foregoing or anything to the contrary in
122
+ this Agreement, a Commercial Entity may download and use
123
+ LTX-2.x and Derivatives of LTX-2.x without obtaining the
124
+ Commercial Use Agreement solely for a Non-Commercial Purpose.
125
+ "Non-Commercial Purpose" means any of the following uses, but
126
+ only so far as such Commercial Entity does not receive any
127
+ direct or indirect payment arising from the use of LTX-2.x or
128
+ Derivatives of LTX-2.x: (i) use by an individual acting in a
129
+ personal capacity for research, experimentation, learning,
130
+ private study, hobby or recreational projects, or personal
131
+ entertainment, in each case where such use is not connected,
132
+ directly or indirectly, to any commercial activity, business
133
+ operation, or the performance of duties for an employer or any
134
+ other Entity; and (ii) use by a Commercial Entity for testing,
135
+ evaluation, or non-commercial research and development in a
136
+ non-production or development environment. For clarity, use
137
+ (a) for revenue-generating activity in any manner, whether
138
+ direct or indirect, (b) in direct interactions with or that
139
+ has impact on end users, or (c) to train, fine-tune, or
140
+ distill any model (including any Derivative of LTX-2.x) for
141
+ commercial use, in each case, is not a Non-Commercial Purpose
142
+ and requires all Commercial Entities to obtain a paid license
143
+ under the Commercial Use Agreement prior to such use. For the
144
+ avoidance of doubt, the permission granted under this Section
145
+ 2.2 is a limited right of use only and does not convey or
146
+ transfer any ownership right, title, or interest in or to
147
+ LTX-2.x or any Derivatives of LTX-2.x, and all Derivatives of
148
+ LTX-2.x created or used pursuant to this Section 2.2 remain
149
+ subject to the terms of this Agreement, including Section 1.5.
150
+
151
+ 3. Distribution and Redistribution. You may host for third parties
152
+ remote access purposes (e.g. software-as-a-service), reproduce and
153
+ distribute copies of LTX-2.x or Derivatives of LTX-2.x thereof in
154
+ any medium, with or without modifications, provided that you meet
155
+ the following conditions:
156
+
157
+ 3.1 Use-based restrictions as referenced in Section 4 and all
158
+ provisions of Attachment A MUST be included as an enforceable
159
+ provision by you in any type of legal agreement (e.g. a
160
+ license) governing the use and/or distribution of LTX-2.x or
161
+ Derivatives of LTX-2.x, and you shall give notice to
162
+ subsequent users you distribute to, that LTX-2.x or
163
+ Derivatives of LTX-2.x are subject to Section 4 and Attachment
164
+ A in their entirety, including all use restrictions and
165
+ acceptable use policies;
166
+
167
+ 3.2 You must provide any third-party recipients of LTX-2.x or
168
+ Derivatives of LTX-2.x a copy of this Agreement, including all
169
+ attachments and use policies. Any Derivative of LTX-2.x (as
170
+ defined in Section 1.5, including but not limited to
171
+ fine-tuned weights, modified training code, models trained on
172
+ Outputs, or any other derivative) must be distributed
173
+ exclusively under the terms of this Agreement, subject to
174
+ Section 3.6, with a complete copy of this Agreement included;
175
+
176
+ 3.3 You must cause any modified files to carry prominent notices
177
+ stating that you changed the files;
178
+
179
+ 3.4 You must retain all copyright, patent, trademark, and
180
+ attribution notices excluding those notices that do not
181
+ pertain to any part of LTX-2.x, Derivatives of LTX-2.x.
182
+
183
+ 3.5 Transfer of Derivatives. No transfer of any Derivative of
184
+ LTX-2.x (including any fine-tuned weights, LoRA adapters, or
185
+ similar adaptations) to a third party shall grant such third
186
+ party any right, title, license, or authorization to access,
187
+ use, reproduce, distribute, or exploit LTX-2.x, or any
188
+ Derivative of LTX-2.x beyond the rights granted under this
189
+ Agreement. If the transferee is a Commercial Entity (as
190
+ defined in Section 2), it must obtain a paid license from
191
+ Licensor prior to any use of any Derivative of LTX-2.x,
192
+ regardless of who created such Derivative. Prior to or at the
193
+ time of any such transfer, you shall notify the transferee in
194
+ writing that (i) use of such Derivative of LTX-2.x is subject
195
+ to the terms of this Agreement, and (ii) if the transferee is
196
+ a Commercial Entity, it must obtain a separate paid license to
197
+ LTX-2.x from Licensor. You shall not transfer any Derivative
198
+ of LTX-2.x to a Commercial Entity unless such Commercial
199
+ Entity has obtained the required paid license from Licensor
200
+ prior to any use, and unless the proposed transferee has been
201
+ so informed. You and the transferee shall each be responsible
202
+ for ensuring the transferee obtains the required license from
203
+ Licensor prior to any use of LTX-2.x or Derivative of LTX-2.x.
204
+ Nothing in this Section 3.5 shall require a Commercial Entity
205
+ to obtain a paid license for use solely for a Non-Commercial
206
+ Purpose as permitted under Section 2.2.
207
+
208
+ 3.6 You may add your own copyright statement to your modifications
209
+ and may provide additional license terms and conditions -
210
+ respecting Section 3.1 - for use, reproduction, or
211
+ distribution of your modifications, or for any such
212
+ Derivatives of LTX-2.x as a whole, provided your use,
213
+ reproduction, and distribution of LTX-2.x otherwise complies
214
+ with the conditions stated in this Agreement, and you provide
215
+ a complete copy of this Agreement with any such use,
216
+ reproduction and distribution of LTX-2.x and any Derivatives
217
+ thereof; provided that any such additional terms shall be
218
+ additive only and shall not derogate from, conflict with,
219
+ waive, or purport to modify any term of this Agreement, and
220
+ this Agreement shall govern in the event of any conflict.
221
+
222
+ 4. Use-based restrictions. The restrictions set forth in Attachment A
223
+ are considered Use-based restrictions. Therefore, you cannot use
224
+ LTX-2.x and the Derivatives of LTX-2.x in violation of the
225
+ specified restricted uses. You may use LTX-2.x subject to this
226
+ Agreement, only for lawful purposes and in accordance with the
227
+ Agreement. "Use" may include creating any content with,
228
+ fine-tuning, updating, running, training, evaluating and/or
229
+ re-parametrizing LTX-2.x. You shall require all of your users who
230
+ use LTX-2.x or a Derivative of LTX-2.x to comply with the terms of
231
+ this Section 4.
232
+
233
+ 5. The Output You Generate. Except as set forth herein, Licensor
234
+ claims no rights in the Output you generate using LTX-2.x. You are
235
+ accountable for input you insert into LTX-2.x, the Output you
236
+ generate and its subsequent uses. No use of the Output can
237
+ contravene any provision as stated in the Agreement.
238
+
239
+ 6. Updates and Runtime Restrictions; AI Regulations. To the maximum
240
+ extent permitted by law, Licensor reserves the right to restrict
241
+ (remotely or otherwise) usage of LTX-2.x in violation of this
242
+ Agreement, update LTX-2.x through electronic means, or modify the
243
+ Output of LTX-2.x based on updates. You shall undertake reasonable
244
+ efforts to use the latest version of LTX-2.x. Any use of the
245
+ non-current version of LTX-2.x is done solely at your risk. To the
246
+ extent applicable to you, you shall comply with all laws and
247
+ regulations governing artificial intelligence that apply to your
248
+ use, deployment, or distribution of LTX-2.x, Derivatives of
249
+ LTX-2.x, or Outputs, including Regulation (EU) 2024/1689 (the "EU
250
+ AI Act") and the California AI Transparency Act (Cal. Bus. & Prof.
251
+ Code § 22757 et seq.), each as amended from time to time and any
252
+ other applicable laws, regulations, or binding guidance relating
253
+ to artificial intelligence, transparency, content provenance, or
254
+ synthetic media, together with any documentation made available by
255
+ Licensor regarding compliance with the same (collectively, "AI
256
+ Regulations"). You shall maintain (including within any
257
+ application or service through which LTX-2.x, any Derivative of
258
+ LTX-2.x, or any Output is made available), and shall not remove,
259
+ disable, alter, or circumvent, any safety or security measures,
260
+ disclosures, metadata, watermarking, content provenance, latent
261
+ disclosure, or other transparency features or functionalities
262
+ included or embedded within LTX-2.x or any Derivative of LTX-2.x,
263
+ or applied to any Output, in furtherance of AI Regulations,
264
+ including any capability of LTX-2.x to include latent disclosures
265
+ in Outputs, and you shall include equivalent obligations in any
266
+ agreement governing your distribution of LTX-2.x or any Derivative
267
+ of LTX-2.x. You are solely responsible for any transparency,
268
+ disclosure, marking, or labeling obligations applicable to you
269
+ under AI Regulations as a provider or deployer of LTX-2.x, any
270
+ Derivative of LTX-2.x, or any system incorporating any of the
271
+ foregoing, including any obligation to disclose that content is
272
+ artificially generated or manipulated. If Licensor knows or
273
+ reasonably believes that you have modified LTX-2.x or any
274
+ Derivative of LTX-2.x such that it is no longer capable of
275
+ including any disclosure required by AI Regulations in Outputs, or
276
+ that you have otherwise removed, disabled, or circumvented any
277
+ feature or functionality described in this Section, Licensor may
278
+ in its sole discretion revoke the license granted under this
279
+ Agreement effective immediately upon notice to you, and upon such
280
+ revocation you shall immediately cease all use of LTX-2.x and
281
+ Derivatives of LTX-2.x. Licensor makes no representation or
282
+ warranty that LTX-2.x, any Derivative of LTX-2.x, or any Output
283
+ complies with any AI Regulations applicable to your specific use
284
+ case or deployment, and you are solely responsible for determining
285
+ the applicability of, and ensuring your compliance with, all AI
286
+ Regulations. You shall indemnify, defend, and hold harmless
287
+ Licensor and its affiliates from and against any and all claims,
288
+ liabilities, losses, damages, costs, and expenses (including
289
+ reasonable attorneys' fees) arising out of or relating to your
290
+ use, deployment, distribution, or modification of LTX-2.x, any
291
+ Derivative of LTX-2.x, or any Output in violation of, or your
292
+ other failure to comply with, any AI Regulations.
293
+
294
+ For purposes of the EU AI Act, Licensor makes LTX-2.x openly
295
+ available under this community license and intends that LTX-2.x be
296
+ treated as a free and open-source general purpose AI model within
297
+ the meaning of Article 53(2) of the EU AI Act. You acknowledge and
298
+ agree that (a) to the extent the free and open source derogations
299
+ under Article 53(2) of the EU AI Act apply, Licensor's obligations
300
+ under the EU AI Act with respect to LTX-2.x are limited to those
301
+ applicable to providers of free and open source general purpose AI
302
+ models (it being acknowledged that such derogations do not extend
303
+ to the obligations under Article 53(1)(c) and (d)), (b) you
304
+ acknowledge that LTX-2.x is not intended to be integrated into a
305
+ high risk AI system, and shall be fully and solely responsible for
306
+ any obligation resulting from such integration, (c) if you
307
+ integrate LTX-2.x or any Derivative of LTX-2.x into a high-risk AI
308
+ system you shall be solely responsible for all provider
309
+ obligations that would otherwise apply to Licensor under the EU AI
310
+ Act, and (d) you shall not take any action, or omit to take any
311
+ action, that would cause Licensor to lose the benefit of the free
312
+ and open source derogations under the EU AI Act, and you shall
313
+ indemnify and hold Licensor harmless from any liability, costs, or
314
+ expenses arising from your breach of this Section.
315
+
316
+ 7. Export Controls and Sanctions Compliance. You acknowledge that
317
+ LTX-2.x, Derivatives of LTX-2.x may be subject to export control
318
+ laws and regulations, including but not limited to the U.S. Export
319
+ Administration Regulations and sanctions programs administered by
320
+ the Office of Foreign Assets Control (OFAC). You represent and
321
+ warrant that you and any users of LTX-2.x are not (i) located in,
322
+ organized under the laws of, or ordinarily resident in any country
323
+ or territory subject to comprehensive sanctions; (ii) identified
324
+ on any U.S. government restricted party list, including the
325
+ Specially Designated Nationals and Blocked Persons List; or (iii)
326
+ otherwise prohibited from receiving LTX-2.x under applicable law.
327
+ You shall not export, re-export, or transfer LTX-2.x, directly or
328
+ indirectly, in violation of any applicable export control or
329
+ sanctions laws or regulations. You agree to comply with all
330
+ applicable trade control laws and shall indemnify and hold
331
+ Licensor harmless from any claims arising from your failure to
332
+ comply with such laws.
333
+
334
+ 8. Trademarks; Reservation of Rights. Nothing in this Agreement
335
+ permits you to make use of Licensor's trademarks, trade names,
336
+ logos or to otherwise suggest endorsement or misrepresent the
337
+ relationship between the parties; and any rights not expressly
338
+ granted herein are reserved by the Licensor. Except as expressly
339
+ set forth in this Agreement, Licensor does not grant, directly or
340
+ by implication, estoppel, statute or otherwise, any right or
341
+ license in its, or its affiliates', intellectual property rights
342
+ or other proprietary rights. For avoidance of doubt, all
343
+ intellectual property rights in Derivatives of LTX-2.x shall be
344
+ subject to the terms of this Agreement, and you acquire no right,
345
+ title, or interest in or to LTX-2.x itself, which is and remains
346
+ the exclusive property of Licensor. You shall not assert any
347
+ ownership or other right in LTX-2.x or any Derivative of LTX-2.x
348
+ in any manner that restricts, encumbers, or is inconsistent with
349
+ the rights retained by Licensor or granted to other licensees
350
+ under this Agreement.
351
+
352
+ 9. Disclaimer of Warranty. Unless required by applicable law or
353
+ agreed to in writing, Licensor provides LTX-2.x on an "AS IS"
354
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
355
+ express or implied, including, without limitation, any warranties
356
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
357
+ FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
358
+ determining the appropriateness of using or redistributing LTX-2.x
359
+ and Derivatives of LTX-2.x and assume any risks associated with
360
+ your exercise of permissions under this Agreement.
361
+
362
+ 10. Limitation of Liability. To the fullest extent permitted by
363
+ applicable law, in no event and under no legal theory, whether in
364
+ tort (including negligence), contract, or otherwise, unless
365
+ required by applicable law (such as deliberate and grossly
366
+ negligent acts) or agreed to in writing, shall Licensor be liable
367
+ to you or any other individual or Entity for damages, including
368
+ any direct, indirect, special, incidental, or consequential
369
+ damages of any character arising as a result of this Agreement or
370
+ out of the use of, or inability to use LTX-2.x or any Derivative
371
+ of LTX-2.x (including but not limited to damages for loss of
372
+ goodwill, work stoppage, computer failure or malfunction, or any
373
+ and all other commercial damages or losses), even if Licensor has
374
+ been advised of the possibility of such damages.
375
+
376
+ 11. Accepting Warranty or Additional Liability. While redistributing
377
+ LTX-2.x and Derivatives of LTX-2.x, you may, provided you do not
378
+ violate the terms of this Agreement, choose to offer and charge a
379
+ fee for, acceptance of support, warranty, indemnity, or other
380
+ liability obligations. However, in accepting such obligations,
381
+ you may act only on your own behalf and on your sole
382
+ responsibility, not on behalf of Licensor, and only if you agree
383
+ to indemnify, defend, and hold Licensor harmless for any
384
+ liability incurred by, or claims asserted against Licensor, by
385
+ reason of your accepting any such warranty or additional
386
+ liability.
387
+
388
+ 12. Governing Law. This Agreement and all relations, disputes, claims
389
+ and other matters arising hereunder (including non-contractual
390
+ disputes or claims) will be governed exclusively by, and
391
+ construed exclusively in accordance with, the laws of the State
392
+ of New York and applicable U.S. federal law. To the extent
393
+ permitted by law, choice of laws rules and the United Nations
394
+ Convention on Contracts for the International Sale of Goods will
395
+ not apply. The prevailing party in any claim or dispute between
396
+ the parties under this Agreement will be entitled to
397
+ reimbursement of its reasonable attorneys' fees and costs.
398
+
399
+ 13. Term and Termination. This Agreement is effective upon your
400
+ acceptance and continues until terminated. Licensor may terminate
401
+ this Agreement immediately upon written notice to you if you
402
+ breach any provision of this Agreement, including but not limited
403
+ to violations of the use restrictions in Attachment A or
404
+ unauthorized commercial use. This Agreement also terminates
405
+ immediately and automatically, without notice, upon any material
406
+ breach of this Agreement, including any use in violation of
407
+ applicable AI Regulations or any unauthorized commercial use of
408
+ LTX-2.x or Derivatives of LTX-2.x by a Commercial Entity. Upon
409
+ termination: (a) all rights granted to you under this Agreement
410
+ will immediately cease; (b) you must immediately cease all use of
411
+ LTX-2.x and Derivatives of LTX-2.x; (c) you must delete or
412
+ destroy all copies of LTX-2.x and Derivatives of LTX-2.x in your
413
+ possession or control; and (d) you must notify any third parties
414
+ to whom you distributed LTX-2.x or Derivatives of LTX-2.x of the
415
+ termination. Sections 2, 3, 4, 6-16 and Attachment A shall
416
+ survive termination of this Agreement. Termination does not
417
+ relieve you of any obligations incurred prior to termination,
418
+ including payment obligations under Section 2 and adhering to the
419
+ restrictions under Section 3. In addition, if You commence a
420
+ lawsuit or other proceedings (including a cross-claim or
421
+ counterclaim in a lawsuit) against Licensor or any person or
422
+ entity alleging that LTX-2.x or any Output, or any portion of any
423
+ of the foregoing, infringe any intellectual property or other
424
+ right owned or licensable by you, then all licenses granted to
425
+ you under this Agreement shall terminate as of the date such
426
+ lawsuit or other proceeding is filed.
427
+
428
+ 14. Disputes and Arbitration; Waiver of Jury Trial; Class Action
429
+ Waiver. IF YOU ARE NOT ACTING AS A CONSUMER UNDER APPLICABLE LAW,
430
+ YOU HEREBY WAIVE THE RIGHT TO A TRIAL BY JURY, TO PARTICIPATE IN
431
+ A CLASS OR REPRESENTATIVE ACTION (INCLUDING IN ARBITRATION), OR
432
+ TO COMBINE INDIVIDUAL PROCEEDINGS IN COURT OR IN ARBITRATION
433
+ WITHOUT THE CONSENT OF ALL PARTIES. All disputes arising in
434
+ connection with this Agreement shall be finally settled by
435
+ arbitration under the Rules of Arbitration of the International
436
+ Chamber of Commerce ("ICC Rules"), by one (1) arbitrator
437
+ appointed in accordance with the ICC Rules. The seat of
438
+ arbitration shall be New York, NY, USA, and the proceedings shall
439
+ be conducted in English. The arbitrator shall be empowered to
440
+ grant any relief that a court could grant. Judgment on the
441
+ arbitration award may be entered by any court having jurisdiction
442
+ thereof. Notwithstanding the foregoing, either party may seek
443
+ injunctive or other equitable relief in respect of any actual or
444
+ threatened breach of the license restrictions under this
445
+ Agreement (including Attachment A and the Acceptable Use Policy)
446
+ or any actual or threatened infringement, misappropriation, or
447
+ violation of Licensor's intellectual property rights, in the
448
+ state or federal courts located in the County of New York, State
449
+ of New York, and each party irrevocably consents to the
450
+ jurisdiction of, and venue in, such courts for that limited
451
+ purpose. The foregoing waivers do not apply to, and are not
452
+ enforceable against, any licensee acting as a consumer under the
453
+ mandatory consumer-protection laws of its jurisdiction of
454
+ residence (including, without limitation, the European Union, the
455
+ United Kingdom, and the State of California), and nothing in this
456
+ Agreement limits any rights under such laws that cannot be waived
457
+ or limited by contract. If any waiver in this Section is held
458
+ invalid or unenforceable as to a particular licensee or dispute,
459
+ such waiver shall be severed to that extent only and shall not
460
+ affect the validity or enforceability of the remainder of this
461
+ Section.
462
+
463
+ 15. In the event of any exception to the application of binding
464
+ arbitration, all disputes, claims, and other matters arising
465
+ hereunder shall be brought exclusively in the state or federal
466
+ courts located in the County of New York, State of New York. You
467
+ waive all defenses of lack of personal jurisdiction and forum non
468
+ conveniens with respect to venue and jurisdiction in such courts,
469
+ and consent to their exclusive jurisdiction and venue.
470
+
471
+ 16. Severability. If any provision of this Agreement is held to be
472
+ invalid, illegal or unenforceable, the remaining provisions shall
473
+ be unaffected thereby and remain valid as if such provision had
474
+ not been set forth herein.
475
+
476
+ END OF TERMS AND CONDITIONS
477
+
478
+ Attachment A
479
+ Use Restrictions
480
+
481
+ When using the Outputs, LTX-2.x and any Derivatives thereof, you
482
+ agree to comply with the Acceptable Use Policy
483
+ (https://static.lightricks.com/legal/ltx-acceptable-use-policy.pdf)
484
+ which is hereby incorporated into and made part of this Agreement by
485
+ reference. Licensor may update it from time to time, and the version
486
+ in effect at the time of your use governs; continued use after an
487
+ update constitutes acceptance. Licensor shall post each version of
488
+ the Acceptable Use Policy with its effective date, and no update
489
+ shall apply retroactively to use occurring before that effective
490
+ date. In addition, you agree not to use the Outputs, LTX-2.x or its
491
+ Derivatives in any of the following ways:
492
+
493
+ 1) In any way that violates any applicable national, federal,
494
+ state, local or international law or regulation;
495
+
496
+ 2) For the purpose of exploiting, Harming or attempting to exploit
497
+ or Harm minors in any way;
498
+
499
+ 3) Knowingly generate or disseminate verifiably false information
500
+ and/or content with the intent to deceive, defraud, or
501
+ otherwise unlawfully Harm others;
502
+
503
+ 4) To generate or disseminate personal identifiable information
504
+ that can be used to Harm an individual;
505
+
506
+ 5) To generate or disseminate information and/or content (e.g.
507
+ images, code, posts, articles), and place the information
508
+ and/or content in any context (e.g. bot generating tweets)
509
+ without expressly and intelligibly disclaiming that the
510
+ information and/or content is machine generated;
511
+
512
+ 6) To defame others, or to engage in the unlawful harassment of
513
+ others;
514
+
515
+ 7) To impersonate or attempt to impersonate (e.g. deepfakes)
516
+ others without their consent;
517
+
518
+ 8) For fully automated decision making that adversely impacts an
519
+ individual's legal rights or otherwise creates or modifies a
520
+ binding, enforceable obligation;
521
+
522
+ 9) For any use intended to or which has the effect of
523
+ discriminating against or Harming individuals or groups based
524
+ on online or offline social behavior or known or predicted
525
+ personal or personality characteristics;
526
+
527
+ 10) To exploit any of the vulnerabilities of a specific group of
528
+ persons based on their age, social, physical or mental
529
+ characteristics, in order to materially distort the behavior
530
+ of a person pertaining to that group in a manner that causes
531
+ or is likely to cause that person or another person physical
532
+ or psychological Harm;
533
+
534
+ 11) For any use intended to or which has the effect of
535
+ discriminating against individuals or groups based on legally
536
+ protected characteristics or categories;
537
+
538
+ 12) To provide medical advice and medical results interpretation;
539
+
540
+ 13) To generate or disseminate information for the purpose to be
541
+ used for administration of justice, law enforcement,
542
+ immigration or asylum processes, such as predicting an
543
+ individual will commit fraud/crime commitment (e.g. by text
544
+ profiling, drawing causal relationships between assertions
545
+ made in documents, indiscriminate and arbitrarily-targeted
546
+ use);
547
+
548
+ 14) To generate and/or disseminate malware (including - but not
549
+ limited to - ransomware) or any other content to be used for
550
+ the purpose of harming electronic systems;
551
+
552
+ 15) To engage in, promote, incite, or facilitate discrimination or
553
+ other unlawful or harmful conduct in the provision of
554
+ employment, employment benefits, credit, housing, or other
555
+ essential goods and services;
556
+
557
+ 16) To engage in, promote, incite, or facilitate the harassment,
558
+ abuse, threatening, or bullying of individuals or groups of
559
+ individuals;
560
+
561
+ 17) For military, warfare, nuclear industries or applications,
562
+ weapons development, or any use in connection with activities
563
+ that may cause death, personal injury, or severe physical or
564
+ environmental damage;
565
+
566
+ 18) For commercial use only: To train, improve, or fine-tune any
567
+ other machine learning model, artificial intelligence system,
568
+ or competing model, except for Derivatives of LTX-2.x as
569
+ expressly permitted under this Agreement;
570
+
571
+ 19) To circumvent, disable, or interfere with any technical
572
+ limitations, safety features, content filters, watermarking,
573
+ content provenance or latent disclosure functionalities, or
574
+ use restrictions implemented in LTX-2.x by Licensor;
575
+
576
+ 20) To use LTX-2.x or Derivatives of LTX-2.x in any product,
577
+ service, or application that directly competes with Licensor's
578
+ commercial products or services, or is designed to replace or
579
+ substitute Licensor's offerings in the market, without
580
+ obtaining a separate commercial license from Licensor.
code/ltx/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wizard on LTX-2.5 (inference)
2
+
3
+ The same visual proxy and reference binding, trained as a rank-32 IC-LoRA on
4
+ [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B). The LoRA is
5
+ [`weights/ltx25_lora/lora_weights_step_10000.safetensors`](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora)
6
+ in the dataset repository. It uses the **earlier proxy format**: coarse scene geometry in pink / purple (height and depth)
7
+ plus skeletons, with no geometry tiers, world coordinates or memory. It is a bidirectional 30-step model (CFG 3), not the
8
+ real-time causal student, and it generates 241 frames (8 s at 30 fps) at 1024×576 in one pass.
9
+
10
+ **License.** Everything in this folder (the patch, `infer_ltx.py`, the config) and the LoRA weights are Derivatives of
11
+ LTX-2.x and are distributed under the [LTX-2.x Community License](LICENSE-LTX-2.x.txt), including its use restrictions
12
+ (Section 4, Attachment A), not under the license of the rest of this repository. Files we changed in LTX-2 carry a notice
13
+ at the top.
14
+
15
+ ## Setup
16
+
17
+ ```bash
18
+ # 1. LTX-2 at the commit we built on, plus our patch (slot-gated reference images, KV cache, causal mask, flexible strategy)
19
+ git clone https://github.com/Lightricks/LTX-2.git && cd LTX-2 && git checkout a95ab85
20
+ git apply ../Wizard/ltx/ltx2_wizard.patch
21
+ uv sync --extra natten # as in LTX-2's README
22
+ export LTX2_DIR=$PWD; cd ..
23
+
24
+ # 2. LTX-2.5 base weights (gated: accept the license on its model page and `hf auth login` first)
25
+ hf download Lightricks/LTX-2.5 --local-dir ckpt/ltx25 \
26
+ --include "diffusion_models/ltx-2.5-22b-dev-transformer-bf16.safetensors" \
27
+ "text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors" "vae/*"
28
+ export LTX_CKPT=$PWD/ckpt/ltx25
29
+
30
+ # 3. the Wizard LoRA and three ready-made cases
31
+ hf download yuzhewu207/wizard --repo-type dataset --local-dir hf_wizard \
32
+ --include "weights/ltx25_lora/*" "examples/ltx_*"
33
+ ```
34
+
35
+ ## Run
36
+
37
+ ```bash
38
+ cd Wizard
39
+ L=../hf_wizard/weights/ltx25_lora/lora_weights_step_10000.safetensors
40
+ CUDA_VISIBLE_DEVICES=0 bash ltx/run_ltx_case.sh $L ../hf_wizard/examples/ltx_summon_fire_duel fire.mp4
41
+ ```
42
+
43
+ One case takes about 8–17 minutes (and some minutes to load the 22B model) on one H200 and needs an almost free 141 GB card: the 241-frame dense attention mask
44
+ alone takes about 29 GB on top of the model. With `seed` from `case.json` the result should match the case's `output.mp4`: we checked this path (fresh LTX-2 clone + this patch + `run_ltx_case.sh`'s settings) reproduces our original output frame for frame.
45
+
46
+ | Case | What happens |
47
+ |---|---|
48
+ | `ltx_summon_fire_duel` | A wizard on a beach summons a fire spirit (`ref_a.png`) from a circle in the sand and fights it |
49
+ | `ltx_world_edit_lift` | The sand under the wizard rises into a stone platform and lifts him up (geometry edit in the proxy) |
50
+ | `ltx_statue_griffin` | A stone griffin statue (`ref_a.png`) in a ruined church comes alive, beats its wings and flies over the wizard |
51
+
52
+ A case directory holds `proxy.mp4` (the condition video), `first_frame.png`, `ref_a.png` / `ref_b.png` (reference images;
53
+ `ref_slots` in `case.json` says which skeleton slot each one belongs to, `0` = unused), `slots.npz` (token coverage of
54
+ each skeleton slot), `prompt.txt` (Chinese, as in training) and `case.json` (`frames`, `steps`, `seed`, `ref_slots`). The
55
+ first frames and reference images were generated by us.
56
+
57
+ Training used the trainer from the same patched LTX-2 (`ltx-trainer`, strategy `flexible`); its configuration is
58
+ `weights/ltx25_lora/training_config.yaml`. The pre-encoded LTX training latents are not released.
code/ltx/configs/ltx25_infer.yaml ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ model_path: @LTX_CKPT@/diffusion_models/ltx-2.5-22b-dev-transformer-bf16.safetensors
3
+ text_encoder_path: @LTX_CKPT@/text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors
4
+ video_vae_path: @LTX_CKPT@/vae/ltx-2.5-video-vae-conv-bf16.safetensors
5
+ audio_vae_path: @LTX_CKPT@/vae/ltx-2.5-audio-vae-bf16.safetensors
6
+ training_mode: lora
7
+ lora:
8
+ rank: 32
9
+ alpha: 32
10
+ dropout: 0.0
11
+ target_modules:
12
+ - attn1.to_k
13
+ - attn1.to_q
14
+ - attn1.to_v
15
+ - attn1.to_out.0
16
+ - attn2.to_k
17
+ - attn2.to_q
18
+ - attn2.to_v
19
+ - attn2.to_out.0
20
+ - ff.net.0.proj
21
+ - ff.net.2
22
+ training_strategy:
23
+ name: flexible
24
+ video:
25
+ is_generated: true
26
+ latents_dir: latents
27
+ conditions:
28
+ - type: reference
29
+ latents_dir: reference_latents
30
+ probability: 1.0
31
+ slot_role: control
32
+ - type: reference
33
+ latents_dir: ref1_latents
34
+ probability: 0.9
35
+ time_offset: -2.0
36
+ slot_role: image
37
+ ref_index: 0
38
+ - type: reference
39
+ latents_dir: ref2_latents
40
+ probability: 0.9
41
+ time_offset: -2.0
42
+ slot_role: image
43
+ ref_index: 1
44
+ - type: first_frame
45
+ probability: 0.9
46
+ slots_dir: slots
47
+ slot_embedding: false
48
+ slot_gate: true
49
+ optimization:
50
+ learning_rate: 2e-4
51
+ steps: 10000
52
+ batch_size: 1
53
+ gradient_accumulation_steps: 1
54
+ max_grad_norm: 1.0
55
+ optimizer_type: adamw
56
+ scheduler_type: constant
57
+ scheduler_params: {}
58
+ enable_gradient_checkpointing: true
59
+ acceleration:
60
+ mixed_precision_mode: bf16
61
+ quantization: null
62
+ load_text_encoder_in_8bit: false
63
+ offload_optimizer_during_validation: true
64
+ data:
65
+ preprocessed_data_root: @WORK@/dummy_precomputed
66
+ num_dataloader_workers: 4
67
+ validation:
68
+ samples: []
69
+ negative_prompt: blurry, out of focus, washed out colors, excessive noise, flickering,
70
+ distorted proportions, deformed limbs, extra limbs, floating detached objects,
71
+ melting geometry, inconsistent perspective, camera shake, cartoonish rendering,
72
+ unrealistic materials, AI artifacts
73
+ video_dims:
74
+ - 1024
75
+ - 576
76
+ - 121
77
+ frame_rate: 30.0
78
+ seed: 42
79
+ inference_steps: 30
80
+ interval: 100000
81
+ video_cfg_scale: 3.0
82
+ audio_cfg_scale: 7.0
83
+ video_stg_scale: 1.0
84
+ audio_stg_scale: 1.0
85
+ stg_blocks:
86
+ - 28
87
+ guidance_rescale: 0.7
88
+ video_modality_guidance_scale: 1.0
89
+ audio_modality_guidance_scale: 3.0
90
+ generate_audio: false
91
+ skip_initial_validation: true
92
+ checkpoints:
93
+ interval: 500
94
+ keep_last_n: 40
95
+ precision: bfloat16
96
+ no_resume: true
97
+ flow_matching:
98
+ timestep_sampling_mode: shifted_logit_normal
99
+ timestep_sampling_params: {}
100
+ hub:
101
+ push_to_hub: false
102
+ hub_model_id: null
103
+ wandb:
104
+ enabled: false
105
+ project: wizard-ltx
106
+ entity: null
107
+ tags:
108
+ - ltx2.5
109
+ - ic-lora
110
+ - mixref
111
+ - binding
112
+ - gate
113
+ log_validation_videos: false
114
+ seed: 42
115
+ output_dir: @WORK@/run
code/ltx/infer_ltx.py ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ """Wizard on LTX-2.5: run the reference-binding IC-LoRA (weights/ltx25_lora) on one prepared case.
3
+
4
+ Inputs: the proxy video (--whitebox, IC reference), the first frame, up to two reference images (--ref1/--ref2), each owned by a
5
+ skeleton slot via --ref-slots ("2,0": ref1 belongs to slot 2, ref2 unused), and the case's slots.npz (token coverage of each
6
+ skeleton). Each reference is encoded at 512x512 as one latent frame and appended as clean tokens whose temporal RoPE position is
7
+ shifted by --ref-offset seconds, exactly as in training (FlexibleStrategy, `reference` condition with `time_offset`); the bbox gate
8
+ lets a reference be seen only by the video tokens of its slot. Sampling reuses the trainer's ValidationRunner (full-model multi-step
9
+ v2v), which the stock ltx-pipelines CLI does not expose. Normally called through ltx/run_ltx_case.sh.
10
+
11
+ NOTICE: written by the Wizard authors (2026) on top of LTX-2 (Lightricks); distributed under the LTX-2.x Community License.
12
+ """
13
+ import argparse, copy, pathlib, sys, torch, yaml
14
+ from peft import LoraConfig as PeftLoraConfig, get_peft_model, set_peft_model_state_dict
15
+ from safetensors.torch import load_file
16
+
17
+ from ltx_trainer.config import LtxTrainerConfig
18
+ from ltx_trainer.model_loader import load_transformer
19
+ from ltx_trainer.progress import TrainingProgress
20
+ from ltx_trainer.validation_runner import ValidationRunner
21
+
22
+ ap = argparse.ArgumentParser()
23
+ ap.add_argument("--config", required=True, help="training yaml (supplies model paths + lora spec)")
24
+ ap.add_argument("--lora", default=None, help="trained LoRA safetensors; omit to run the bare base model")
25
+ ap.add_argument("--whitebox", required=True, help="reference (white-box) video")
26
+ ap.add_argument("--first-frame", default=None, help="image or video whose frame 0 anchors appearance")
27
+ ap.add_argument("--prompt", required=True)
28
+ ap.add_argument("--negative-prompt", default=None)
29
+ ap.add_argument("--width", type=int, default=832)
30
+ ap.add_argument("--height", type=int, default=480)
31
+ ap.add_argument("--frames", type=int, default=81)
32
+ ap.add_argument("--fps", type=float, default=15.0)
33
+ ap.add_argument("--steps", type=int, default=30)
34
+ ap.add_argument("--cfg", type=float, default=3.0)
35
+ ap.add_argument("--stg", type=float, default=1.0)
36
+ ap.add_argument("--rescale", type=float, default=0.7)
37
+ ap.add_argument("--seed", type=int, default=42)
38
+ ap.add_argument("--out-dir", default="infer_out")
39
+ ap.add_argument("--ref1", required=True); ap.add_argument("--ref2", required=True); ap.add_argument("--ref-slots", default="2,3")
40
+ ap.add_argument("--slots", required=True, help="sample slots.npz (token_cover)"); ap.add_argument("--no-gate", action="store_true"); ap.add_argument("--no-embed", action="store_true")
41
+ ap.add_argument("--ref-offset", type=float, default=-2.0); ap.add_argument("--ref-size", type=int, default=512)
42
+ a = ap.parse_args()
43
+
44
+ cfg = LtxTrainerConfig(**yaml.safe_load(open(a.config)))
45
+
46
+ # ---- reference image: encode it with the runner's own image path, append it after the stock conditionings with a time offset
47
+ import ltx_trainer.validation_runner as VR
48
+ from ltx_core.conditioning.types.reference_video_cond import VideoConditionByReferenceLatent
49
+ REF = {}
50
+ _enc0 = VR.ValidationRunner._encode_sample_conditions
51
+ def _enc(self, sample, dims, vae_encoder, audio_encoder, device):
52
+ media = _enc0(self, sample, dims, vae_encoder, audio_encoder, device)
53
+ REF["latents"] = []
54
+ for p in (a.ref1, a.ref2):
55
+ img = self._load_first_frame(pathlib.Path(p))
56
+ REF["latents"].append(self._encode_image(img, a.ref_size, a.ref_size, vae_encoder, device))
57
+ print("[ref] encoded", p, tuple(REF["latents"][-1].shape), flush=True)
58
+ return media
59
+ VR.ValidationRunner._encode_sample_conditions = _enc
60
+ class _RefImage(VideoConditionByReferenceLatent):
61
+ def apply_to(self, latent_state, latent_tools):
62
+ n0 = latent_state.positions.shape[2]; st = super().apply_to(latent_state, latent_tools)
63
+ st.positions[:, 0, n0:, :] += a.ref_offset; return st
64
+ _app0 = VR.ValidationRunner._apply_video_conditionings
65
+ def _app(*args, **kw):
66
+ st = _app0(*args, **kw)
67
+ REF["n_before_refs"] = st.latent.shape[1]
68
+ for lat in REF.get("latents", []): # appended in order: [target][control][ref1][ref2]
69
+ st = _RefImage(latent=lat.to(device=st.latent.device, dtype=torch.bfloat16), downscale_factor=1, temporal_scale_factor=1,
70
+ strength=1.0).apply_to(st, args[1] if len(args) > 1 else kw["tools"])
71
+ return st
72
+ VR.ValidationRunner._apply_video_conditionings = staticmethod(_app)
73
+
74
+ # One synthetic validation sample carrying the caller's inputs.
75
+ sample = {
76
+ "prompt": a.prompt,
77
+ "conditions": [
78
+ {"type": "reference", "video": a.whitebox,
79
+ "downscale_factor": 1, "temporal_scale_factor": 1, "include_in_output": False},
80
+ ],
81
+ }
82
+ if a.first_frame:
83
+ sample["conditions"].append({"type": "first_frame", "image_or_video": a.first_frame})
84
+
85
+ val = copy.deepcopy(cfg.validation.model_dump())
86
+ val.update(
87
+ samples=[sample],
88
+ video_dims=[a.width, a.height, a.frames],
89
+ frame_rate=a.fps,
90
+ inference_steps=a.steps,
91
+ video_cfg_scale=a.cfg,
92
+ video_stg_scale=a.stg,
93
+ guidance_rescale=a.rescale,
94
+ seed=a.seed,
95
+ interval=1,
96
+ skip_initial_validation=False,
97
+ generate_audio=False,
98
+ )
99
+ if a.negative_prompt:
100
+ val["negative_prompt"] = a.negative_prompt
101
+ val.pop("images", None)
102
+ val_cfg = type(cfg.validation)(**val)
103
+
104
+ # Build the runner first: its init loads Gemma to encode prompts and then releases it.
105
+ # Moving the transformer to GPU before that puts two large models on the card at once.
106
+ runner = ValidationRunner(
107
+ config=val_cfg,
108
+ model_path=cfg.model.model_path,
109
+ text_encoder_path=cfg.model.text_encoder_path,
110
+ video_vae_path=cfg.model.video_vae_path,
111
+ audio_vae_path=cfg.model.audio_vae_path,
112
+ load_text_encoder_in_8bit=False,
113
+ )
114
+ torch.cuda.empty_cache()
115
+
116
+ print(f"[load] transformer {cfg.model.model_path}", flush=True)
117
+ transformer = load_transformer(checkpoint_path=cfg.model.model_path, device="cpu", dtype=torch.bfloat16)
118
+
119
+ SLOT_TABLE = None
120
+ if a.lora:
121
+ print(f"[load] lora {a.lora}", flush=True)
122
+ transformer = get_peft_model(
123
+ transformer,
124
+ PeftLoraConfig(
125
+ r=cfg.lora.rank,
126
+ lora_alpha=cfg.lora.alpha,
127
+ lora_dropout=cfg.lora.dropout,
128
+ target_modules=cfg.lora.target_modules,
129
+ init_lora_weights=True,
130
+ ),
131
+ )
132
+ stripped = {k.replace("diffusion_model.", "", 1): v for k, v in load_file(a.lora).items()}
133
+ SLOT_TABLE = stripped.pop("slot_embedding", None) # the binding table rides with the LoRA
134
+ result = set_peft_model_state_dict(transformer.get_base_model(), stripped)
135
+ unexpected = list(getattr(result, "unexpected_keys", []) or [])
136
+ if unexpected:
137
+ raise SystemExit(
138
+ f"[lora] {len(unexpected)} keys did not match the model, e.g. {unexpected[:2]}. "
139
+ "Loading would have silently been a no-op."
140
+ )
141
+ print(f"[lora] loaded {len(stripped)} tensors from {pathlib.Path(a.lora).name}", flush=True)
142
+ else:
143
+ print("[lora] none — running the bare base model", flush=True)
144
+
145
+ device = torch.device("cuda")
146
+ # ---- slot binding at inference: the trained slot table + per-token slot ids and the bbox gate, exactly as FlexibleStrategy._slot_binding
147
+ import dataclasses, types, numpy as np
148
+ from ltx_trainer.training_strategies.flexible import FlexibleStrategy, ReferenceConditionConfig
149
+ base = transformer.get_base_model() if hasattr(transformer, "get_base_model") else transformer
150
+ if a.lora and SLOT_TABLE is not None and not a.no_embed:
151
+ base.enable_slot_embedding(SLOT_TABLE.shape[0] - 1)
152
+ with torch.no_grad(): base.slot_embedding.data.copy_(SLOT_TABLE.to(base.slot_embedding.dtype))
153
+ print(f"[slot] table {tuple(SLOT_TABLE.shape)} loaded, mean |w| {float(SLOT_TABLE.float().abs().mean()):.2e}", flush=True)
154
+ elif not a.no_embed:
155
+ print("[slot] WARNING: no slot_embedding in the LoRA file -- running without the embedding", flush=True); a.no_embed = True
156
+ SL = np.load(a.slots); COVER = torch.from_numpy(SL["token_cover"].astype(np.float32))[None]
157
+ RS = torch.tensor([[int(x) for x in a.ref_slots.split(",")]], dtype=torch.long)
158
+ MC = types.SimpleNamespace(slots_dir="slots", slot_cover_thr=0.02, slot_gate_dilate=0.25)
159
+ _CTL = ReferenceConditionConfig(latents_dir="c", slot_role="control")
160
+ _R = [ReferenceConditionConfig(latents_dir="r1", slot_role="image", ref_index=0), ReferenceConditionConfig(latents_dir="r2", slot_role="image", ref_index=1)]
161
+ _BIND = {}
162
+ _fwd0 = base.forward
163
+ def _fwd(video=None, audio=None, perturbations=None, **kw):
164
+ if video is not None:
165
+ B, T = video.latent.shape[:2]; F_, H_, W_ = COVER.shape[1:4]; n = F_ * H_ * W_
166
+ nb = REF.get("n_before_refs", 0); nr = [l.shape[-1] * l.shape[-2] * l.shape[-3] for l in REF.get("latents", [])]
167
+ if T == nb + sum(nr) and nb >= 2 * n:
168
+ if T not in _BIND:
169
+ segs = [dict(kind="target", n=n, F=F_, H=H_, W=W_), dict(kind="ref", cfg=_CTL, n=n)]
170
+ if nb > 2 * n: segs.append(dict(kind="other", n=nb - 2 * n))
171
+ segs += [dict(kind="ref", cfg=_R[i], n=nr[i]) for i in range(len(nr))]
172
+ ids, mask = FlexibleStrategy._slot_binding(None, MC, {"slots": {"token_cover": COVER, "ref_slots": RS}}, segs, video.latent.device)
173
+ _BIND[T] = (ids, mask)
174
+ print(f"[slot] layout T={T} (target {n}, control {n}, other {nb - 2 * n}, refs {nr}), ref_slots {RS.tolist()[0]}, "
175
+ f"gate open fraction for ref1 {float(mask[0, :n, nb:nb + nr[0]].mean()):.3f}", flush=True)
176
+ ids, mask = _BIND[T]
177
+ video = dataclasses.replace(video, slot_ids=None if a.no_embed else ids.expand(B, -1),
178
+ attention_mask=None if a.no_gate else mask.expand(B, -1, -1))
179
+ elif "warned" not in _BIND:
180
+ _BIND["warned"] = True; print(f"[slot] WARNING: unexpected token count {T} (expected {nb + sum(nr)}); no binding on this call", flush=True)
181
+ return _fwd0(video=video, audio=audio, perturbations=perturbations, **kw)
182
+ base.forward = _fwd
183
+ transformer = transformer.to(device).eval()
184
+
185
+ out_dir = pathlib.Path(a.out_dir)
186
+ out_dir.mkdir(parents=True, exist_ok=True)
187
+ with TrainingProgress(enabled=False, total_steps=1) as progress, torch.inference_mode():
188
+ saved = runner.run(transformer, step=0, output_dir=out_dir, device=device, progress=progress)
189
+ for _, p in saved:
190
+ print("[done]", p, flush=True)
code/ltx/ltx2_wizard.patch ADDED
The diff for this file is too large to render. See raw diff
 
code/ltx/run_ltx_case.sh ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Run the Wizard LTX-2.5 LoRA on one prepared case.
3
+ # bash ltx/run_ltx_case.sh <lora.safetensors> <case dir> <out.mp4>
4
+ # env: LTX2_DIR = a clone of Lightricks/LTX-2 with ltx/ltx2_wizard.patch applied (see ltx/README.md)
5
+ # LTX_CKPT = local copy of Lightricks/LTX-2.5 (diffusion_models/, text_encoders/, vae/)
6
+ # CUDA_VISIBLE_DEVICES = one GPU with >= 80 GB
7
+ set -e
8
+ LORA=$(realpath "$1"); C=$(realpath "$2"); OUT=$(realpath -m "$3"); H=$(cd "$(dirname "$0")" && pwd)
9
+ : "${LTX2_DIR:?set LTX2_DIR}"; : "${LTX_CKPT:?set LTX_CKPT}"; LTX2_DIR=$(realpath "$LTX2_DIR"); LTX_CKPT=$(realpath "$LTX_CKPT")
10
+ W=$(mktemp -d); mkdir -p $W/dummy_precomputed/{conditions,latents,ref1_latents,ref2_latents,reference_latents,slots}
11
+ sed -e "s#@LTX_CKPT@#$LTX_CKPT#g" -e "s#@WORK@#$W#g" $H/configs/ltx25_infer.yaml > $W/config.yaml
12
+ read FRAMES STEPS SEED SLOTS < <(python -c "import json;c=json.load(open('$C/case.json'));print(c['frames'],c['steps'],c['seed'],c['ref_slots'])")
13
+ REF2=$C/ref_b.png; [ -f $REF2 ] || REF2=$C/ref_a.png # a second reference is only read when its slot is non-zero
14
+ export PYTHONPATH=$LTX2_DIR/packages/ltx-trainer/src:$LTX2_DIR/packages/ltx-core/src:$LTX2_DIR/packages/ltx-pipelines/src PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
15
+ cd $LTX2_DIR/packages/ltx-trainer
16
+ python $H/infer_ltx.py --config $W/config.yaml --lora $LORA --no-embed --whitebox $C/proxy.mp4 --first-frame $C/first_frame.png \
17
+ --prompt "$(cat $C/prompt.txt)" --width 1024 --height 576 --frames $FRAMES --fps 30 --steps $STEPS --cfg 3.0 --seed $SEED \
18
+ --ref1 $C/ref_a.png --ref2 $REF2 --ref-slots $SLOTS --slots $C/slots.npz --out-dir $W/out
19
+ cp "$(ls $W/out/samples/*.mp4 | head -1)" "$OUT" && echo "wrote $OUT"
examples/README.md CHANGED
@@ -1,6 +1,6 @@
1
  # Example cases
2
 
3
- Five ready-to-run cases with our outputs. Each folder is a *case* as the inference code expects it:
4
 
5
  | file | content |
6
  |---|---|
@@ -41,3 +41,13 @@ bash scripts/infer/run_case.sh causal weights/causal_dmd/ema_step400.safetensors
41
  This writes `out.mp4` (result next to the proxy) and `out_gen.mp4` (result only); `out_gen.mp4` should match `output.mp4`. A bidirectional case takes about 4 minutes on one H200; a real-time case about 2 minutes including model loading.
42
 
43
  The first frames of the three entry / fight cases come from the WBench benchmark and their reference images were generated with Qwen-Image; the first frames and the reference image of the two real-time cases were generated by us.
 
 
 
 
 
 
 
 
 
 
 
1
  # Example cases
2
 
3
+ Five ready-to-run cases for the Wan model and three for the LTX-2.5 LoRA, with our outputs. Each folder is a *case* as the inference code expects it:
4
 
5
  | file | content |
6
  |---|---|
 
41
  This writes `out.mp4` (result next to the proxy) and `out_gen.mp4` (result only); `out_gen.mp4` should match `output.mp4`. A bidirectional case takes about 4 minutes on one H200; a real-time case about 2 minutes including model loading.
42
 
43
  The first frames of the three entry / fight cases come from the WBench benchmark and their reference images were generated with Qwen-Image; the first frames and the reference image of the two real-time cases were generated by us.
44
+
45
+ ## LTX-2.5 cases
46
+
47
+ Three cases for the LTX-2.5 LoRA (`weights/ltx25_lora/`, earlier proxy format: pink / purple coarse geometry plus skeletons, no tiers or memory). Each folder has `proxy.mp4`, `first_frame.png`, `ref_a.png` / `ref_b.png`, `slots.npz`, `prompt.txt`, `case.json` (`frames`, `steps`, `seed`, `ref_slots`) and `output.mp4` (our result, 241 frames at 1024×576). Run them with [`ltx/run_ltx_case.sh`](https://github.com/YeyingLab/Wizard/tree/main/ltx) (setup in `ltx/README.md`; about 8–17 minutes per case on one H200). The first frames and reference images were generated by us. The LoRA and these runs are under the LTX-2.x Community License.
48
+
49
+ | case | what happens |
50
+ |---|---|
51
+ | `ltx_summon_fire_duel/` | a wizard on a beach summons a fire spirit (`ref_a.png`) from a circle in the sand and fights it |
52
+ | `ltx_world_edit_lift/` | the sand under the wizard rises into a stone platform and lifts him up (a geometry edit in the proxy) |
53
+ | `ltx_statue_griffin/` | a stone griffin statue (`ref_a.png`) in a ruined church comes alive, beats its wings and flies over the wizard |
examples/ltx_statue_griffin/case.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"frames": 241, "steps": 30, "seed": 42, "ref_slots": "2,0"}
examples/ltx_statue_griffin/first_frame.png ADDED

Git LFS Details

  • SHA256: 942e80670bbbed15fadaeb747e009e398e4790c6467234606c06bd4e12d1ef00
  • Pointer size: 132 Bytes
  • Size of remote file: 1.17 MB
examples/ltx_statue_griffin/output.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bc05dbe382f0cbc963716e1ce58c8be647b39c614aac61dc8848562dbd9c5a0
3
+ size 6392208
examples/ltx_statue_griffin/prompt.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 几何条件画面:粉紫色是场景粗几何(颜色编码高度与深度),火柴人与棍状线条是玩家的骨架与武器,线条的绿色深浅表示角色朝向(越亮越朝向镜头,越暗越背对镜头),完整呈现玩家的动作、朝向与武器轨迹。玩家的外观与参考图完全一致;画面中没有 BOSS。
2
+ 玩家角色外观:玩家角色为中等体型,灰白短发,身着深蓝色带金色镶边的长袍与棕色护甲,手持一根顶端有装饰的法杖,背对镜头面向前方。
3
+ 背景描述:在一座被藤蔓覆盖的古老哥特式废墟教堂内,石板地面湿漉漉地反射着从破碎拱顶洒下的金色阳光,远处是苍翠山峦与晴朗天空。石像狮鹫苏醒,转头看向巫师,原地扇动翅膀数下,然后从台座上跃起,扇着翅膀掠过巫师头顶飞出画面。
examples/ltx_statue_griffin/proxy.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5884a58cabce5e9eda80d6af4659c854eba33db1a1d2b37ee42395ced440598
3
+ size 1859266
examples/ltx_statue_griffin/ref_a.png ADDED

Git LFS Details

  • SHA256: 2cd2c25701e1e3d8275c43cbc1822ffe24c42692540bb22884ca59d7ab2b2dc1
  • Pointer size: 131 Bytes
  • Size of remote file: 175 kB
examples/ltx_statue_griffin/ref_b.png ADDED

Git LFS Details

  • SHA256: f032c5e0c2511ef5f7bc52b903217051bd74f09f10291f3aef0160e593754fb8
  • Pointer size: 129 Bytes
  • Size of remote file: 1.88 kB
examples/ltx_statue_griffin/slots.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa2a541c4c38269d25e1d9614d6fb088b05aa78f40edddd64864d84569c551ec
3
+ size 5801
examples/ltx_summon_fire_duel/case.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"frames": 241, "steps": 30, "seed": 42, "ref_slots": "2,0"}
examples/ltx_summon_fire_duel/first_frame.png ADDED

Git LFS Details

  • SHA256: 0318e772e7d4c03db8a9f1052f7c7f76d833f85e72bd3c1d6cb2a3117bc75f2d
  • Pointer size: 131 Bytes
  • Size of remote file: 959 kB
examples/ltx_summon_fire_duel/output.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58f83a7f6bd0ab48fbdf7c3dd1b202e59254eaace6e87a4a14071b763b710d35
3
+ size 5635556
examples/ltx_summon_fire_duel/prompt.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 几何条件画面:粉紫色是场景粗几何(颜色编码高度与深度),火柴人与棍状线条是玩家和两个 BOSS 的骨架,线条的绿色深浅表示角色朝向(越亮越朝向镜头,越暗越背对镜头),完整呈现三名角色的动作、朝向与相对远近。两个 BOSS 的外观分别与各自的参考图完全一致;BOSS 从画面外进入。
2
+ 玩家角色外观:玩家角色为中等体型,灰白短发,身着深蓝色带金色纹饰的长袍与棕色皮质护甲,手持一根顶端镶嵌宝石的法杖,背对镜头站立。
3
+ 背景描述:在夕阳西下的海滩上,湿润的沙地上刻着一个圆圈,远处是矗立在悬崖上的古老城堡和连绵的山峦,天空被橙金色的云霞染透,海面反射着温暖的光芒。巫师在沙地上画下的圆圈中召唤出一个火焰精灵,随后与它交手,翻滚闪避、挥杖出击。
examples/ltx_summon_fire_duel/proxy.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62d3cd7913a21c5b8069c3945934018fc9da7093d0e8c8ab2d042b478e1aa747
3
+ size 1243710
examples/ltx_summon_fire_duel/ref_a.png ADDED

Git LFS Details

  • SHA256: 20462be8e238e428fe50b0936311296a2475d730653fd7b3edd62e1d0fe4fc55
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
examples/ltx_summon_fire_duel/ref_b.png ADDED

Git LFS Details

  • SHA256: f032c5e0c2511ef5f7bc52b903217051bd74f09f10291f3aef0160e593754fb8
  • Pointer size: 129 Bytes
  • Size of remote file: 1.88 kB
examples/ltx_summon_fire_duel/slots.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29543ab801f67e3ae8e25545e8d568ec36ed45d70fa2b0583332ac2ce87e1088
3
+ size 7742
examples/ltx_world_edit_lift/case.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"frames": 241, "steps": 30, "seed": 42, "ref_slots": "2,0"}
examples/ltx_world_edit_lift/first_frame.png ADDED

Git LFS Details

  • SHA256: 0318e772e7d4c03db8a9f1052f7c7f76d833f85e72bd3c1d6cb2a3117bc75f2d
  • Pointer size: 131 Bytes
  • Size of remote file: 959 kB
examples/ltx_world_edit_lift/output.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7744a0105fb251a99b5f53b90dbf68dad8215bed4446f1f29216d24242a1ad8f
3
+ size 6220751
examples/ltx_world_edit_lift/prompt.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 几何条件画面:粉紫色是场景粗几何(颜色编码高度与深度),火柴人与棍状线条是玩家的骨架与武器,线条的绿色深浅表示角色朝向(越亮越朝向镜头,越暗越背对镜头),完整呈现玩家的动作、朝向与武器轨迹。玩家的外观与参考图完全一致;画面中没有 BOSS。
2
+ 玩家角色外观:玩家角色为中等体型,灰白短发,身着深蓝色带金色纹饰的长袍与棕色皮质护甲,手持一根顶端镶嵌宝石的法杖,背对镜头站立。
3
+ 背景描述:在夕阳西下的海滩上,湿润的沙地上刻着一个圆圈,远处是矗立在悬崖上的古老城堡和连绵的山峦,天空被橙金色的云霞染透,海面反射着温暖的光芒。巫师脚下的沙地整块抬起成一座石台,把他高高托起,海滩在脚下展开。
examples/ltx_world_edit_lift/proxy.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4cd374ab9e19747861db0afb4db0fc833c5bab519a6613956d2228963e8c4ce6
3
+ size 403076
examples/ltx_world_edit_lift/ref_a.png ADDED

Git LFS Details

  • SHA256: ccc301de6bc17a5c5ff335a2c389387160e6e10e79d3541d8839bcd79ab1c538
  • Pointer size: 130 Bytes
  • Size of remote file: 59.3 kB
examples/ltx_world_edit_lift/ref_b.png ADDED

Git LFS Details

  • SHA256: f032c5e0c2511ef5f7bc52b903217051bd74f09f10291f3aef0160e593754fb8
  • Pointer size: 129 Bytes
  • Size of remote file: 1.88 kB
examples/ltx_world_edit_lift/slots.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dbb62d070d9b12a0cb9f3339fe08040cb062cb968d3522011b4316b6ffa0844
3
+ size 1724
weights/README.md CHANGED
@@ -9,7 +9,7 @@ DiT weights fine-tuned from [Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.
9
  | `causal_cd/ema_step10000.safetensors` | stage 2: consistency-distilled EMA student, 10K steps from `causal_teacher` (`scripts/train/3_consistency.sh`, memory candidates from the past and the future). The student of the final DMD run; use it as the student of `scripts/train/4_dmd.sh` | 2–4 steps, no guidance |
10
  | `causal_dmd/ema_step400.safetensors` | stage 3: DMD student of `causal_cd` above (`scripts/train/4_dmd.sh`, real / fake score from `bidirectional`, guidance 3), EMA at step 400 of the 500-step DMD run, selected over steps 300–500 by evaluation | 2 steps, streaming, 20-latent history window + first-frame anchor |
11
  | `causal_dmd/ema_step480.safetensors` | causal few-step student (causal adaptation → consistency distillation → DMD, 480 DMD steps, EMA), from an earlier run of the chain (older consistency student); superseded by `ema_step400`, kept for comparison | 2 steps, streaming, 20-latent history window + first-frame anchor |
12
- | `ltx25_lora/lora_weights_step_10000.safetensors` | the same approach on another base model: a rank-32 LoRA for [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B), trained 10K steps on the mixed synthetic + real data with reference images, with the earlier proxy format (skeletons on coarse scene geometry, no tiers / memory); `training_config.yaml` is its training configuration. Subject to the LTX-2.5 licence | LTX-2.5 bidirectional sampling, 30 steps |
13
 
14
  Each file holds 829 tensors: the Wan2.2 DiT blocks plus the added `cond_embedding` (proxy video) and `gbuf_embedding` (world-coordinate tokens) layers. Resolution 832×480, 121 frames at 30 fps per window.
15
 
 
9
  | `causal_cd/ema_step10000.safetensors` | stage 2: consistency-distilled EMA student, 10K steps from `causal_teacher` (`scripts/train/3_consistency.sh`, memory candidates from the past and the future). The student of the final DMD run; use it as the student of `scripts/train/4_dmd.sh` | 2–4 steps, no guidance |
10
  | `causal_dmd/ema_step400.safetensors` | stage 3: DMD student of `causal_cd` above (`scripts/train/4_dmd.sh`, real / fake score from `bidirectional`, guidance 3), EMA at step 400 of the 500-step DMD run, selected over steps 300–500 by evaluation | 2 steps, streaming, 20-latent history window + first-frame anchor |
11
  | `causal_dmd/ema_step480.safetensors` | causal few-step student (causal adaptation → consistency distillation → DMD, 480 DMD steps, EMA), from an earlier run of the chain (older consistency student); superseded by `ema_step400`, kept for comparison | 2 steps, streaming, 20-latent history window + first-frame anchor |
12
+ | `ltx25_lora/lora_weights_step_10000.safetensors` | the same approach on another base model: a rank-32 LoRA for [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5) (22B), trained 10K steps on the mixed synthetic + real data with reference images, with the earlier proxy format (skeletons on coarse scene geometry, no tiers / memory); `training_config.yaml` is its training configuration. A Derivative of LTX-2.x, distributed under the LTX-2.x Community License (`LICENSE-LTX-2.x.txt` next to it, including its use restrictions); run it with [`ltx/`](https://github.com/YeyingLab/Wizard/tree/main/ltx) of the code repository | LTX-2.5 bidirectional sampling, 30 steps, CFG 3, 241 frames at 1024×576 |
13
 
14
  Each file holds 829 tensors: the Wan2.2 DiT blocks plus the added `cond_embedding` (proxy video) and `gbuf_embedding` (world-coordinate tokens) layers. Resolution 832×480, 121 frames at 30 fps per window.
15
 
weights/ltx25_lora/LICENSE-LTX-2.x.txt ADDED
@@ -0,0 +1,580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LTX-2.x Community License Agreement
2
+ License date: August 11, 2026
3
+
4
+
5
+ By downloading, using, accessing or distributing any portion or
6
+ element of LTX-2.x, you agree that you have read and accepted to be
7
+ bound by this Agreement.
8
+
9
+ 1. Definitions
10
+
11
+ 1.1 "Agreement" means the terms and conditions for this LTX-2.x
12
+ Community License Agreement and the exhibits, attachments, and
13
+ Complementary Materials, as specified in this document.
14
+
15
+ 1.2 "Complementary Materials" means the accompanying
16
+ documentation, tutorials, examples, configuration files and
17
+ other materials made available by Licensor together with the
18
+ LTX-2.x model weights and parameters, in each case as
19
+ distributed by Licensor.
20
+
21
+ 1.3 "Control" means the direct or indirect ownership of more than
22
+ fifty percent (50%) of the voting securities or other
23
+ ownership interests, or the power to direct the management and
24
+ policies of such Entity through voting rights, contract, or
25
+ otherwise.
26
+
27
+ 1.4 "Data" means a collection of information and/or content
28
+ extracted from the dataset used with LTX-2.x, including to
29
+ train, pretrain, or otherwise evaluate LTX-2.x. The Data is
30
+ not licensed under this Agreement.
31
+
32
+ 1.5 "Derivatives of LTX-2.x" means all modifications to LTX-2.x,
33
+ works based on LTX-2.x, or any other model which is created or
34
+ initialized by transfer of patterns of the weights,
35
+ parameters, activations or output of LTX-2.x, to the other
36
+ model, in order to cause the other model to perform similarly
37
+ to LTX-2.x, including - but not limited to - distillation
38
+ methods entailing the use of intermediate data representations
39
+ or methods based on the generation of synthetic data by
40
+ LTX-2.x for training the other model. For clarity, Derivatives
41
+ of LTX-2.x include: (i) any fine-tuned or adapted weights,
42
+ parameters, or checkpoints derived from LTX-2.x; (ii)
43
+ derivative model architectures that incorporate or are based
44
+ upon LTX-2.x's architecture; and (iii) any modified or
45
+ extended versions of the Complementary Materials.
46
+
47
+ 1.6 "Entity" means any individual, corporation, partnership,
48
+ limited liability company, or other legal entity. For purposes
49
+ of this Agreement, an Entity shall be deemed to include, on an
50
+ aggregative basis, all subsidiaries, affiliates, and other
51
+ companies under common Control with such Entity. When
52
+ determining whether an Entity meets any threshold under this
53
+ Agreement (including revenue thresholds in Section 2.1), all
54
+ subsidiaries, affiliates, and companies under common Control
55
+ shall be considered collectively.
56
+
57
+ 1.7 "Harm" includes but is not limited to physical, mental,
58
+ psychological, financial and reputational damage, pain, or
59
+ loss.
60
+
61
+ 1.8 "Licensor" or "LTX" means the owner that is granting the
62
+ license under this Agreement. For the purposes of this
63
+ Agreement, the Licensor is Lightricks Ltd.
64
+
65
+ 1.9 "LTX-2.x" means the large generative models,
66
+ text/image/video/audio/3D generation models, and multimodal
67
+ large language models and their software and algorithms,
68
+ including trained model weights, parameters (including
69
+ optimizer states), machine-learning model code,
70
+ inference-enabling code, training-enabling code, fine-tuning
71
+ enabling code, accompanying source code, scripts, and all
72
+ other elements of the foregoing distributed and made publicly
73
+ available by LTX (including, for example, at
74
+ https://github.com/Lightricks/LTX-2). This license is
75
+ applicable to all LTX-2.5 versions released since August 11,
76
+ 2026, and all future releases of LTX-2.x under this license.
77
+
78
+ 1.10 "Output" means the results of operating LTX-2.x as embodied
79
+ in informational content resulting therefrom.
80
+
81
+ 1.11 "you" (or "your") means an individual or legal Entity
82
+ licensing LTX-2.x in accordance with this Agreement and/or
83
+ otherwise downloading, accessing, distributing or using
84
+ LTX-2.x for whichever purpose and in any field of use,
85
+ including usage of LTX-2.x in an end-use application - e.g.
86
+ chatbot, translator, image generator.
87
+
88
+ 2. Grant of License.
89
+
90
+ 2.1 Subject to your compliance with the terms and conditions of
91
+ this Agreement, you are granted a non-exclusive, worldwide,
92
+ non-transferable and royalty-free limited license under
93
+ Licensor's intellectual property or other rights owned by
94
+ Licensor embodied in LTX-2.x to use, reproduce, prepare,
95
+ distribute, publicly display, publicly perform, sublicense,
96
+ copy, create derivative works of, and make modifications to
97
+ LTX-2.x, for any purpose, subject to the restrictions set
98
+ forth in Attachment A; provided however, that Entities with
99
+ annual revenues of at least $10,000,000 (the "Commercial
100
+ Entities") are required to obtain a paid license for any use
101
+ (excluding use solely for a Non-Commercial Purpose as set
102
+ forth in Section 2.2) of LTX-2.x and Derivatives of LTX-2.x
103
+ (such paid license referred to herein as a "Commercial Use
104
+ Agreement"), as will be provided by the Licensor. Commercial
105
+ Entities interested in such a commercial license are required
106
+ to contact Licensor (ltxv-licensing@lightricks.com). Any use
107
+ of LTX-2.x or Derivatives of LTX-2.x by Commercial Entities
108
+ not in accordance with this Agreement and/or the Commercial
109
+ Use Agreement is strictly prohibited and shall be deemed a
110
+ material breach of this Agreement. In the event of such
111
+ material breach, and without limiting Licensor's right to
112
+ terminate the Agreement or to pursue any other remedies
113
+ available at law or in equity, you shall pay Licensor the
114
+ license fees owed for the period such Commercial Entity used
115
+ LTX-2.x (calculated at Licensor's standard commercial license
116
+ fees, in effect during the relevant period or, absent
117
+ published standard fees, a reasonable market rate for a
118
+ comparable license), within thirty (30) days of Licensor's
119
+ written demand.
120
+
121
+ 2.2 Notwithstanding the foregoing or anything to the contrary in
122
+ this Agreement, a Commercial Entity may download and use
123
+ LTX-2.x and Derivatives of LTX-2.x without obtaining the
124
+ Commercial Use Agreement solely for a Non-Commercial Purpose.
125
+ "Non-Commercial Purpose" means any of the following uses, but
126
+ only so far as such Commercial Entity does not receive any
127
+ direct or indirect payment arising from the use of LTX-2.x or
128
+ Derivatives of LTX-2.x: (i) use by an individual acting in a
129
+ personal capacity for research, experimentation, learning,
130
+ private study, hobby or recreational projects, or personal
131
+ entertainment, in each case where such use is not connected,
132
+ directly or indirectly, to any commercial activity, business
133
+ operation, or the performance of duties for an employer or any
134
+ other Entity; and (ii) use by a Commercial Entity for testing,
135
+ evaluation, or non-commercial research and development in a
136
+ non-production or development environment. For clarity, use
137
+ (a) for revenue-generating activity in any manner, whether
138
+ direct or indirect, (b) in direct interactions with or that
139
+ has impact on end users, or (c) to train, fine-tune, or
140
+ distill any model (including any Derivative of LTX-2.x) for
141
+ commercial use, in each case, is not a Non-Commercial Purpose
142
+ and requires all Commercial Entities to obtain a paid license
143
+ under the Commercial Use Agreement prior to such use. For the
144
+ avoidance of doubt, the permission granted under this Section
145
+ 2.2 is a limited right of use only and does not convey or
146
+ transfer any ownership right, title, or interest in or to
147
+ LTX-2.x or any Derivatives of LTX-2.x, and all Derivatives of
148
+ LTX-2.x created or used pursuant to this Section 2.2 remain
149
+ subject to the terms of this Agreement, including Section 1.5.
150
+
151
+ 3. Distribution and Redistribution. You may host for third parties
152
+ remote access purposes (e.g. software-as-a-service), reproduce and
153
+ distribute copies of LTX-2.x or Derivatives of LTX-2.x thereof in
154
+ any medium, with or without modifications, provided that you meet
155
+ the following conditions:
156
+
157
+ 3.1 Use-based restrictions as referenced in Section 4 and all
158
+ provisions of Attachment A MUST be included as an enforceable
159
+ provision by you in any type of legal agreement (e.g. a
160
+ license) governing the use and/or distribution of LTX-2.x or
161
+ Derivatives of LTX-2.x, and you shall give notice to
162
+ subsequent users you distribute to, that LTX-2.x or
163
+ Derivatives of LTX-2.x are subject to Section 4 and Attachment
164
+ A in their entirety, including all use restrictions and
165
+ acceptable use policies;
166
+
167
+ 3.2 You must provide any third-party recipients of LTX-2.x or
168
+ Derivatives of LTX-2.x a copy of this Agreement, including all
169
+ attachments and use policies. Any Derivative of LTX-2.x (as
170
+ defined in Section 1.5, including but not limited to
171
+ fine-tuned weights, modified training code, models trained on
172
+ Outputs, or any other derivative) must be distributed
173
+ exclusively under the terms of this Agreement, subject to
174
+ Section 3.6, with a complete copy of this Agreement included;
175
+
176
+ 3.3 You must cause any modified files to carry prominent notices
177
+ stating that you changed the files;
178
+
179
+ 3.4 You must retain all copyright, patent, trademark, and
180
+ attribution notices excluding those notices that do not
181
+ pertain to any part of LTX-2.x, Derivatives of LTX-2.x.
182
+
183
+ 3.5 Transfer of Derivatives. No transfer of any Derivative of
184
+ LTX-2.x (including any fine-tuned weights, LoRA adapters, or
185
+ similar adaptations) to a third party shall grant such third
186
+ party any right, title, license, or authorization to access,
187
+ use, reproduce, distribute, or exploit LTX-2.x, or any
188
+ Derivative of LTX-2.x beyond the rights granted under this
189
+ Agreement. If the transferee is a Commercial Entity (as
190
+ defined in Section 2), it must obtain a paid license from
191
+ Licensor prior to any use of any Derivative of LTX-2.x,
192
+ regardless of who created such Derivative. Prior to or at the
193
+ time of any such transfer, you shall notify the transferee in
194
+ writing that (i) use of such Derivative of LTX-2.x is subject
195
+ to the terms of this Agreement, and (ii) if the transferee is
196
+ a Commercial Entity, it must obtain a separate paid license to
197
+ LTX-2.x from Licensor. You shall not transfer any Derivative
198
+ of LTX-2.x to a Commercial Entity unless such Commercial
199
+ Entity has obtained the required paid license from Licensor
200
+ prior to any use, and unless the proposed transferee has been
201
+ so informed. You and the transferee shall each be responsible
202
+ for ensuring the transferee obtains the required license from
203
+ Licensor prior to any use of LTX-2.x or Derivative of LTX-2.x.
204
+ Nothing in this Section 3.5 shall require a Commercial Entity
205
+ to obtain a paid license for use solely for a Non-Commercial
206
+ Purpose as permitted under Section 2.2.
207
+
208
+ 3.6 You may add your own copyright statement to your modifications
209
+ and may provide additional license terms and conditions -
210
+ respecting Section 3.1 - for use, reproduction, or
211
+ distribution of your modifications, or for any such
212
+ Derivatives of LTX-2.x as a whole, provided your use,
213
+ reproduction, and distribution of LTX-2.x otherwise complies
214
+ with the conditions stated in this Agreement, and you provide
215
+ a complete copy of this Agreement with any such use,
216
+ reproduction and distribution of LTX-2.x and any Derivatives
217
+ thereof; provided that any such additional terms shall be
218
+ additive only and shall not derogate from, conflict with,
219
+ waive, or purport to modify any term of this Agreement, and
220
+ this Agreement shall govern in the event of any conflict.
221
+
222
+ 4. Use-based restrictions. The restrictions set forth in Attachment A
223
+ are considered Use-based restrictions. Therefore, you cannot use
224
+ LTX-2.x and the Derivatives of LTX-2.x in violation of the
225
+ specified restricted uses. You may use LTX-2.x subject to this
226
+ Agreement, only for lawful purposes and in accordance with the
227
+ Agreement. "Use" may include creating any content with,
228
+ fine-tuning, updating, running, training, evaluating and/or
229
+ re-parametrizing LTX-2.x. You shall require all of your users who
230
+ use LTX-2.x or a Derivative of LTX-2.x to comply with the terms of
231
+ this Section 4.
232
+
233
+ 5. The Output You Generate. Except as set forth herein, Licensor
234
+ claims no rights in the Output you generate using LTX-2.x. You are
235
+ accountable for input you insert into LTX-2.x, the Output you
236
+ generate and its subsequent uses. No use of the Output can
237
+ contravene any provision as stated in the Agreement.
238
+
239
+ 6. Updates and Runtime Restrictions; AI Regulations. To the maximum
240
+ extent permitted by law, Licensor reserves the right to restrict
241
+ (remotely or otherwise) usage of LTX-2.x in violation of this
242
+ Agreement, update LTX-2.x through electronic means, or modify the
243
+ Output of LTX-2.x based on updates. You shall undertake reasonable
244
+ efforts to use the latest version of LTX-2.x. Any use of the
245
+ non-current version of LTX-2.x is done solely at your risk. To the
246
+ extent applicable to you, you shall comply with all laws and
247
+ regulations governing artificial intelligence that apply to your
248
+ use, deployment, or distribution of LTX-2.x, Derivatives of
249
+ LTX-2.x, or Outputs, including Regulation (EU) 2024/1689 (the "EU
250
+ AI Act") and the California AI Transparency Act (Cal. Bus. & Prof.
251
+ Code § 22757 et seq.), each as amended from time to time and any
252
+ other applicable laws, regulations, or binding guidance relating
253
+ to artificial intelligence, transparency, content provenance, or
254
+ synthetic media, together with any documentation made available by
255
+ Licensor regarding compliance with the same (collectively, "AI
256
+ Regulations"). You shall maintain (including within any
257
+ application or service through which LTX-2.x, any Derivative of
258
+ LTX-2.x, or any Output is made available), and shall not remove,
259
+ disable, alter, or circumvent, any safety or security measures,
260
+ disclosures, metadata, watermarking, content provenance, latent
261
+ disclosure, or other transparency features or functionalities
262
+ included or embedded within LTX-2.x or any Derivative of LTX-2.x,
263
+ or applied to any Output, in furtherance of AI Regulations,
264
+ including any capability of LTX-2.x to include latent disclosures
265
+ in Outputs, and you shall include equivalent obligations in any
266
+ agreement governing your distribution of LTX-2.x or any Derivative
267
+ of LTX-2.x. You are solely responsible for any transparency,
268
+ disclosure, marking, or labeling obligations applicable to you
269
+ under AI Regulations as a provider or deployer of LTX-2.x, any
270
+ Derivative of LTX-2.x, or any system incorporating any of the
271
+ foregoing, including any obligation to disclose that content is
272
+ artificially generated or manipulated. If Licensor knows or
273
+ reasonably believes that you have modified LTX-2.x or any
274
+ Derivative of LTX-2.x such that it is no longer capable of
275
+ including any disclosure required by AI Regulations in Outputs, or
276
+ that you have otherwise removed, disabled, or circumvented any
277
+ feature or functionality described in this Section, Licensor may
278
+ in its sole discretion revoke the license granted under this
279
+ Agreement effective immediately upon notice to you, and upon such
280
+ revocation you shall immediately cease all use of LTX-2.x and
281
+ Derivatives of LTX-2.x. Licensor makes no representation or
282
+ warranty that LTX-2.x, any Derivative of LTX-2.x, or any Output
283
+ complies with any AI Regulations applicable to your specific use
284
+ case or deployment, and you are solely responsible for determining
285
+ the applicability of, and ensuring your compliance with, all AI
286
+ Regulations. You shall indemnify, defend, and hold harmless
287
+ Licensor and its affiliates from and against any and all claims,
288
+ liabilities, losses, damages, costs, and expenses (including
289
+ reasonable attorneys' fees) arising out of or relating to your
290
+ use, deployment, distribution, or modification of LTX-2.x, any
291
+ Derivative of LTX-2.x, or any Output in violation of, or your
292
+ other failure to comply with, any AI Regulations.
293
+
294
+ For purposes of the EU AI Act, Licensor makes LTX-2.x openly
295
+ available under this community license and intends that LTX-2.x be
296
+ treated as a free and open-source general purpose AI model within
297
+ the meaning of Article 53(2) of the EU AI Act. You acknowledge and
298
+ agree that (a) to the extent the free and open source derogations
299
+ under Article 53(2) of the EU AI Act apply, Licensor's obligations
300
+ under the EU AI Act with respect to LTX-2.x are limited to those
301
+ applicable to providers of free and open source general purpose AI
302
+ models (it being acknowledged that such derogations do not extend
303
+ to the obligations under Article 53(1)(c) and (d)), (b) you
304
+ acknowledge that LTX-2.x is not intended to be integrated into a
305
+ high risk AI system, and shall be fully and solely responsible for
306
+ any obligation resulting from such integration, (c) if you
307
+ integrate LTX-2.x or any Derivative of LTX-2.x into a high-risk AI
308
+ system you shall be solely responsible for all provider
309
+ obligations that would otherwise apply to Licensor under the EU AI
310
+ Act, and (d) you shall not take any action, or omit to take any
311
+ action, that would cause Licensor to lose the benefit of the free
312
+ and open source derogations under the EU AI Act, and you shall
313
+ indemnify and hold Licensor harmless from any liability, costs, or
314
+ expenses arising from your breach of this Section.
315
+
316
+ 7. Export Controls and Sanctions Compliance. You acknowledge that
317
+ LTX-2.x, Derivatives of LTX-2.x may be subject to export control
318
+ laws and regulations, including but not limited to the U.S. Export
319
+ Administration Regulations and sanctions programs administered by
320
+ the Office of Foreign Assets Control (OFAC). You represent and
321
+ warrant that you and any users of LTX-2.x are not (i) located in,
322
+ organized under the laws of, or ordinarily resident in any country
323
+ or territory subject to comprehensive sanctions; (ii) identified
324
+ on any U.S. government restricted party list, including the
325
+ Specially Designated Nationals and Blocked Persons List; or (iii)
326
+ otherwise prohibited from receiving LTX-2.x under applicable law.
327
+ You shall not export, re-export, or transfer LTX-2.x, directly or
328
+ indirectly, in violation of any applicable export control or
329
+ sanctions laws or regulations. You agree to comply with all
330
+ applicable trade control laws and shall indemnify and hold
331
+ Licensor harmless from any claims arising from your failure to
332
+ comply with such laws.
333
+
334
+ 8. Trademarks; Reservation of Rights. Nothing in this Agreement
335
+ permits you to make use of Licensor's trademarks, trade names,
336
+ logos or to otherwise suggest endorsement or misrepresent the
337
+ relationship between the parties; and any rights not expressly
338
+ granted herein are reserved by the Licensor. Except as expressly
339
+ set forth in this Agreement, Licensor does not grant, directly or
340
+ by implication, estoppel, statute or otherwise, any right or
341
+ license in its, or its affiliates', intellectual property rights
342
+ or other proprietary rights. For avoidance of doubt, all
343
+ intellectual property rights in Derivatives of LTX-2.x shall be
344
+ subject to the terms of this Agreement, and you acquire no right,
345
+ title, or interest in or to LTX-2.x itself, which is and remains
346
+ the exclusive property of Licensor. You shall not assert any
347
+ ownership or other right in LTX-2.x or any Derivative of LTX-2.x
348
+ in any manner that restricts, encumbers, or is inconsistent with
349
+ the rights retained by Licensor or granted to other licensees
350
+ under this Agreement.
351
+
352
+ 9. Disclaimer of Warranty. Unless required by applicable law or
353
+ agreed to in writing, Licensor provides LTX-2.x on an "AS IS"
354
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
355
+ express or implied, including, without limitation, any warranties
356
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
357
+ FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
358
+ determining the appropriateness of using or redistributing LTX-2.x
359
+ and Derivatives of LTX-2.x and assume any risks associated with
360
+ your exercise of permissions under this Agreement.
361
+
362
+ 10. Limitation of Liability. To the fullest extent permitted by
363
+ applicable law, in no event and under no legal theory, whether in
364
+ tort (including negligence), contract, or otherwise, unless
365
+ required by applicable law (such as deliberate and grossly
366
+ negligent acts) or agreed to in writing, shall Licensor be liable
367
+ to you or any other individual or Entity for damages, including
368
+ any direct, indirect, special, incidental, or consequential
369
+ damages of any character arising as a result of this Agreement or
370
+ out of the use of, or inability to use LTX-2.x or any Derivative
371
+ of LTX-2.x (including but not limited to damages for loss of
372
+ goodwill, work stoppage, computer failure or malfunction, or any
373
+ and all other commercial damages or losses), even if Licensor has
374
+ been advised of the possibility of such damages.
375
+
376
+ 11. Accepting Warranty or Additional Liability. While redistributing
377
+ LTX-2.x and Derivatives of LTX-2.x, you may, provided you do not
378
+ violate the terms of this Agreement, choose to offer and charge a
379
+ fee for, acceptance of support, warranty, indemnity, or other
380
+ liability obligations. However, in accepting such obligations,
381
+ you may act only on your own behalf and on your sole
382
+ responsibility, not on behalf of Licensor, and only if you agree
383
+ to indemnify, defend, and hold Licensor harmless for any
384
+ liability incurred by, or claims asserted against Licensor, by
385
+ reason of your accepting any such warranty or additional
386
+ liability.
387
+
388
+ 12. Governing Law. This Agreement and all relations, disputes, claims
389
+ and other matters arising hereunder (including non-contractual
390
+ disputes or claims) will be governed exclusively by, and
391
+ construed exclusively in accordance with, the laws of the State
392
+ of New York and applicable U.S. federal law. To the extent
393
+ permitted by law, choice of laws rules and the United Nations
394
+ Convention on Contracts for the International Sale of Goods will
395
+ not apply. The prevailing party in any claim or dispute between
396
+ the parties under this Agreement will be entitled to
397
+ reimbursement of its reasonable attorneys' fees and costs.
398
+
399
+ 13. Term and Termination. This Agreement is effective upon your
400
+ acceptance and continues until terminated. Licensor may terminate
401
+ this Agreement immediately upon written notice to you if you
402
+ breach any provision of this Agreement, including but not limited
403
+ to violations of the use restrictions in Attachment A or
404
+ unauthorized commercial use. This Agreement also terminates
405
+ immediately and automatically, without notice, upon any material
406
+ breach of this Agreement, including any use in violation of
407
+ applicable AI Regulations or any unauthorized commercial use of
408
+ LTX-2.x or Derivatives of LTX-2.x by a Commercial Entity. Upon
409
+ termination: (a) all rights granted to you under this Agreement
410
+ will immediately cease; (b) you must immediately cease all use of
411
+ LTX-2.x and Derivatives of LTX-2.x; (c) you must delete or
412
+ destroy all copies of LTX-2.x and Derivatives of LTX-2.x in your
413
+ possession or control; and (d) you must notify any third parties
414
+ to whom you distributed LTX-2.x or Derivatives of LTX-2.x of the
415
+ termination. Sections 2, 3, 4, 6-16 and Attachment A shall
416
+ survive termination of this Agreement. Termination does not
417
+ relieve you of any obligations incurred prior to termination,
418
+ including payment obligations under Section 2 and adhering to the
419
+ restrictions under Section 3. In addition, if You commence a
420
+ lawsuit or other proceedings (including a cross-claim or
421
+ counterclaim in a lawsuit) against Licensor or any person or
422
+ entity alleging that LTX-2.x or any Output, or any portion of any
423
+ of the foregoing, infringe any intellectual property or other
424
+ right owned or licensable by you, then all licenses granted to
425
+ you under this Agreement shall terminate as of the date such
426
+ lawsuit or other proceeding is filed.
427
+
428
+ 14. Disputes and Arbitration; Waiver of Jury Trial; Class Action
429
+ Waiver. IF YOU ARE NOT ACTING AS A CONSUMER UNDER APPLICABLE LAW,
430
+ YOU HEREBY WAIVE THE RIGHT TO A TRIAL BY JURY, TO PARTICIPATE IN
431
+ A CLASS OR REPRESENTATIVE ACTION (INCLUDING IN ARBITRATION), OR
432
+ TO COMBINE INDIVIDUAL PROCEEDINGS IN COURT OR IN ARBITRATION
433
+ WITHOUT THE CONSENT OF ALL PARTIES. All disputes arising in
434
+ connection with this Agreement shall be finally settled by
435
+ arbitration under the Rules of Arbitration of the International
436
+ Chamber of Commerce ("ICC Rules"), by one (1) arbitrator
437
+ appointed in accordance with the ICC Rules. The seat of
438
+ arbitration shall be New York, NY, USA, and the proceedings shall
439
+ be conducted in English. The arbitrator shall be empowered to
440
+ grant any relief that a court could grant. Judgment on the
441
+ arbitration award may be entered by any court having jurisdiction
442
+ thereof. Notwithstanding the foregoing, either party may seek
443
+ injunctive or other equitable relief in respect of any actual or
444
+ threatened breach of the license restrictions under this
445
+ Agreement (including Attachment A and the Acceptable Use Policy)
446
+ or any actual or threatened infringement, misappropriation, or
447
+ violation of Licensor's intellectual property rights, in the
448
+ state or federal courts located in the County of New York, State
449
+ of New York, and each party irrevocably consents to the
450
+ jurisdiction of, and venue in, such courts for that limited
451
+ purpose. The foregoing waivers do not apply to, and are not
452
+ enforceable against, any licensee acting as a consumer under the
453
+ mandatory consumer-protection laws of its jurisdiction of
454
+ residence (including, without limitation, the European Union, the
455
+ United Kingdom, and the State of California), and nothing in this
456
+ Agreement limits any rights under such laws that cannot be waived
457
+ or limited by contract. If any waiver in this Section is held
458
+ invalid or unenforceable as to a particular licensee or dispute,
459
+ such waiver shall be severed to that extent only and shall not
460
+ affect the validity or enforceability of the remainder of this
461
+ Section.
462
+
463
+ 15. In the event of any exception to the application of binding
464
+ arbitration, all disputes, claims, and other matters arising
465
+ hereunder shall be brought exclusively in the state or federal
466
+ courts located in the County of New York, State of New York. You
467
+ waive all defenses of lack of personal jurisdiction and forum non
468
+ conveniens with respect to venue and jurisdiction in such courts,
469
+ and consent to their exclusive jurisdiction and venue.
470
+
471
+ 16. Severability. If any provision of this Agreement is held to be
472
+ invalid, illegal or unenforceable, the remaining provisions shall
473
+ be unaffected thereby and remain valid as if such provision had
474
+ not been set forth herein.
475
+
476
+ END OF TERMS AND CONDITIONS
477
+
478
+ Attachment A
479
+ Use Restrictions
480
+
481
+ When using the Outputs, LTX-2.x and any Derivatives thereof, you
482
+ agree to comply with the Acceptable Use Policy
483
+ (https://static.lightricks.com/legal/ltx-acceptable-use-policy.pdf)
484
+ which is hereby incorporated into and made part of this Agreement by
485
+ reference. Licensor may update it from time to time, and the version
486
+ in effect at the time of your use governs; continued use after an
487
+ update constitutes acceptance. Licensor shall post each version of
488
+ the Acceptable Use Policy with its effective date, and no update
489
+ shall apply retroactively to use occurring before that effective
490
+ date. In addition, you agree not to use the Outputs, LTX-2.x or its
491
+ Derivatives in any of the following ways:
492
+
493
+ 1) In any way that violates any applicable national, federal,
494
+ state, local or international law or regulation;
495
+
496
+ 2) For the purpose of exploiting, Harming or attempting to exploit
497
+ or Harm minors in any way;
498
+
499
+ 3) Knowingly generate or disseminate verifiably false information
500
+ and/or content with the intent to deceive, defraud, or
501
+ otherwise unlawfully Harm others;
502
+
503
+ 4) To generate or disseminate personal identifiable information
504
+ that can be used to Harm an individual;
505
+
506
+ 5) To generate or disseminate information and/or content (e.g.
507
+ images, code, posts, articles), and place the information
508
+ and/or content in any context (e.g. bot generating tweets)
509
+ without expressly and intelligibly disclaiming that the
510
+ information and/or content is machine generated;
511
+
512
+ 6) To defame others, or to engage in the unlawful harassment of
513
+ others;
514
+
515
+ 7) To impersonate or attempt to impersonate (e.g. deepfakes)
516
+ others without their consent;
517
+
518
+ 8) For fully automated decision making that adversely impacts an
519
+ individual's legal rights or otherwise creates or modifies a
520
+ binding, enforceable obligation;
521
+
522
+ 9) For any use intended to or which has the effect of
523
+ discriminating against or Harming individuals or groups based
524
+ on online or offline social behavior or known or predicted
525
+ personal or personality characteristics;
526
+
527
+ 10) To exploit any of the vulnerabilities of a specific group of
528
+ persons based on their age, social, physical or mental
529
+ characteristics, in order to materially distort the behavior
530
+ of a person pertaining to that group in a manner that causes
531
+ or is likely to cause that person or another person physical
532
+ or psychological Harm;
533
+
534
+ 11) For any use intended to or which has the effect of
535
+ discriminating against individuals or groups based on legally
536
+ protected characteristics or categories;
537
+
538
+ 12) To provide medical advice and medical results interpretation;
539
+
540
+ 13) To generate or disseminate information for the purpose to be
541
+ used for administration of justice, law enforcement,
542
+ immigration or asylum processes, such as predicting an
543
+ individual will commit fraud/crime commitment (e.g. by text
544
+ profiling, drawing causal relationships between assertions
545
+ made in documents, indiscriminate and arbitrarily-targeted
546
+ use);
547
+
548
+ 14) To generate and/or disseminate malware (including - but not
549
+ limited to - ransomware) or any other content to be used for
550
+ the purpose of harming electronic systems;
551
+
552
+ 15) To engage in, promote, incite, or facilitate discrimination or
553
+ other unlawful or harmful conduct in the provision of
554
+ employment, employment benefits, credit, housing, or other
555
+ essential goods and services;
556
+
557
+ 16) To engage in, promote, incite, or facilitate the harassment,
558
+ abuse, threatening, or bullying of individuals or groups of
559
+ individuals;
560
+
561
+ 17) For military, warfare, nuclear industries or applications,
562
+ weapons development, or any use in connection with activities
563
+ that may cause death, personal injury, or severe physical or
564
+ environmental damage;
565
+
566
+ 18) For commercial use only: To train, improve, or fine-tune any
567
+ other machine learning model, artificial intelligence system,
568
+ or competing model, except for Derivatives of LTX-2.x as
569
+ expressly permitted under this Agreement;
570
+
571
+ 19) To circumvent, disable, or interfere with any technical
572
+ limitations, safety features, content filters, watermarking,
573
+ content provenance or latent disclosure functionalities, or
574
+ use restrictions implemented in LTX-2.x by Licensor;
575
+
576
+ 20) To use LTX-2.x or Derivatives of LTX-2.x in any product,
577
+ service, or application that directly competes with Licensor's
578
+ commercial products or services, or is designed to replace or
579
+ substitute Licensor's offerings in the market, without
580
+ obtaining a separate commercial license from Licensor.