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

Script to merge Flux diffuser into 1 safetensor file #10137

Open
pivtienduc opened this issue Dec 6, 2024 · 1 comment · May be fixed by #10193
Open

Script to merge Flux diffuser into 1 safetensor file #10137

pivtienduc opened this issue Dec 6, 2024 · 1 comment · May be fixed by #10193

Comments

@pivtienduc
Copy link

pivtienduc commented Dec 6, 2024

Hi everyone

I found Flux model which is split into 3 parts. So far I can't find any script to merge splitted parts of Flux model into one

Can anyone help me to do it

image

Thank in advance

@a-r-r-o-w
Copy link
Member

You can load the model using from_pretrained and save it again, but by specifying max_shard_size="30GB" to get a single large file. The docs for loading/saving pipelines contains more info about from_pretrained and save_pretrained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants