Fail clearly when model loading leaves uninitialized meta tensors
Author: liminfei-amdCreated Sep 22, 2026Updated Sep 22, 2026
Fail clearly when model loading leaves uninitialized meta tensors
Thank you for open-sourcing LTX-2!
When a checkpoint is incomplete, SingleGPUModelBuilder.build() can warn about
remaining meta tensors but still return the model. This can defer the failure
and make its cause harder to identify.
We would like to raise a clear error at the end of loading, naming the checkpoint and uninitialized tensors. Explicit meta-model construction and streaming would stay unchanged.
We have a small patch with CPU regression tests. Would this behavior be appropriate?
AI assistance: Copilot assisted investigation and draft preparation.
Source: Lightricks/LTX-2