Skip to content

model.cpp: add t5xxl encoder.embed_tokens.weight as unused tensor #721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025

Conversation

idostyle
Copy link
Contributor

@idostyle idostyle commented Jul 5, 2025

In some unstripped t5xxl models there is an additional tensor which is used during training, but results in a message when loaded into stable-diffusion.cpp like the following:

model.cpp:1868 - unknown tensor 'text_encoders.t5xxl.transformer.encoder.embed_tokens.weight | q4_K | 2 [4096, 32128, 1, 1, 1]' in model file

Should be able to safely skip it without the message.

@leejet leejet merged commit 225162f into leejet:master Jul 6, 2025
9 checks passed
@leejet
Copy link
Owner

leejet commented Jul 6, 2025

Thank you for your contribution.

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.

2 participants