Skip to content
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

Model: some Flux fine-tunes can't be loaded due to weird tensor naming conventions. #434

Open
stduhpf opened this issue Oct 7, 2024 · 5 comments · May be fixed by #435
Open

Model: some Flux fine-tunes can't be loaded due to weird tensor naming conventions. #434

stduhpf opened this issue Oct 7, 2024 · 5 comments · May be fixed by #435

Comments

@stduhpf
Copy link
Contributor

stduhpf commented Oct 7, 2024

A friend of mine had trouble loading a model called "Flux Unchained".

When loading the tensors for the Unet, the logs were filled with:
[INFO ] model.cpp:1685 - unknown tensor 'model.diffusion_model.model.diffusion_model.[**tensor name here**]' in model file
for every single tensor in the model. Then when calling new_sd_ctx(), the logs are:
[ERROR] model.cpp:1729 - tensor 'model.diffusion_model.[**tensor name here**]' not in model file

So it looks like the model.diffusion_model. part of the tensor names got duplicated, but the model still somehow work in other inference backends (at least it works in comfyui).

@Green-Sky
Copy link
Contributor

use -m instead of --diffusion-model

also alternative hotfix #403 😆

@stduhpf
Copy link
Contributor Author

stduhpf commented Oct 7, 2024

Ah I missed your PR because it's closed. Thanks!

@Green-Sky
Copy link
Contributor

Yea, I closed it bc of the simple "work around".

@stduhpf
Copy link
Contributor Author

stduhpf commented Oct 7, 2024

I think it's worth doing at least something about it, maybe a warning in the logs to advise the user to use -m instead?

@Green-Sky
Copy link
Contributor

Yea, something needs to be done.

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 a pull request may close this issue.

2 participants