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

[Feature] Support VAE batch #132

Merged
merged 2 commits into from
Feb 8, 2024
Merged

[Feature] Support VAE batch #132

merged 2 commits into from
Feb 8, 2024

Conversation

okotaku
Copy link
Owner

@okotaku okotaku commented Feb 8, 2024

Motivation

VAEs have high memory requirements, especially when processing large batches of data. To reduce the memory usage, we can use a VAE batch forward technique.
Based on https://github.com/huggingface/diffusers/blob/v0.26.2/examples/research_projects/controlnet/train_controlnet_webdataset.py#L1306-L1309

Checklist

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, like docstring or example tutorials.

📚 Documentation preview 📚: https://DiffEngine--132.org.readthedocs.build/en/132/

@okotaku okotaku self-assigned this Feb 8, 2024
@okotaku okotaku merged commit 1f9006f into main Feb 8, 2024
2 checks passed
@okotaku okotaku deleted the feat/support_vae_batch branch February 8, 2024 01:00
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