Skip to content

Conversation

@jarz76
Copy link

@jarz76 jarz76 commented Nov 21, 2025

This patch prevents quantization of the cond_type_embedding.weight tensor, which causes a dimension mismatch when quantizing HunyuanVideo 1.5 to GGUF.

Error summary:
"cond_type_embedding.weight" model shape [3, 2048] does not match checkpoint shape [3, 2176].

Fix:
Exclude cond_type_embedding.weight from quantization so it stays in FP16, while all other layers are quantized normally.

hunyuanvideo1.5 gguf

This patch prevents quantization of the `cond_type_embedding.weight` tensor,
which causes a dimension mismatch when quantizing HunyuanVideo 1.5 to GGUF.

Error summary:
"cond_type_embedding.weight" model shape [3, 2048] does not match
checkpoint shape [3, 2176].

Fix:
Exclude `cond_type_embedding.weight` from quantization so it stays in FP16,
while all other layers are quantized normally.
@jarz76 jarz76 changed the title Update lcpp.patch to fix GGUF model loading Update lcpp.patch to fix & Add Support of HunyuanVideo 1.5 GGUF model Nov 21, 2025
@jarz76 jarz76 closed this by deleting the head repository Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant