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

fix(mm): vae conversion #6097

Merged
merged 3 commits into from Apr 1, 2024
Merged

fix(mm): vae conversion #6097

merged 3 commits into from Apr 1, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

Fix VAE conversion. See commits for details.

Related Issues / Discussions

https://discord.com/channels/1020123559063990373/1149506274971631688/1224117693532213369

QA Instructions

Empty your disk conversion cache and use a non-diffusers VAE. On main, we expect an assertion error when loading the VAE. On this branch, no error.

Here's a safetensors VAE you can test with: https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors?download=true

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable) n/a
  • Documentation added / updated (if applicable) n/a

Add `dump_path` arg to the converter function & save the model to disk inside the conversion function. This is the same pattern as in the other conversion functions.
@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files labels Apr 1, 2024
@psychedelicious psychedelicious enabled auto-merge (rebase) April 1, 2024 01:29
@psychedelicious psychedelicious merged commit 59b4a23 into main Apr 1, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/mm/vae-conversion branch April 1, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants