-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Can't seem to load GGUFs for ltx-2. More specifically, because time_embed.emb.timestep_embedder.linear_1.weight expected shape torch.Size([4096, 256]), but got torch.Size([4096, 512])
Reproduction
Running on commit 7f43cb1, using the weights from this repo: https://huggingface.co/unsloth/LTX-2-GGUF
$ python3 -c "
> from diffusers.models.transformers import LTXVideoTransformer3DModel
> import torch
> try:
> transformer = LTXVideoTransformer3DModel.from_single_file(
> '/home/user/.cache/huggingface/hub/models--unsloth--LTX-2-GGUF/snapshots/7d0ce36769829be32526a4ac9b8442e89dcaecbd/ltx-2-19b-dev-Q6_K.gguf',
> torch_dtype=torch.bfloat16
> )
> print(f'Success: {type(transformer)}')
> except Exception as e:
> print(f'Error: {e}')
> "Logs
config.json: 100%|███████████████████████████████████████████████████████████████████████████| 501/501 [00:00<00:00, 4.29MB/s]
Error: Cannot load because time_embed.emb.timestep_embedder.linear_1.weight expected shape torch.Size([4096, 256]), but got torch.Size([4096, 512]). If you want to instead overwrite randomly initialized weights, please make sure to pass both `low_cpu_mem_usage=False` and `ignore_mismatched_sizes=True`. For more information, see also: https://github.com/huggingface/diffusers/issues/1619#issuecomment-1345604389 as an example.System Info
Linux x64, 3090
Who can help?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working