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

Add composer model class for running with precomputed CLIP and T5 text latents #171

Merged
merged 28 commits into from
Oct 4, 2024

Conversation

coryMosaicML
Copy link
Collaborator

This PR adds a model class for running with precomputed text latents. It is largely similar to the SDXL model, with the exception of concatenating latents from the different text encoders along a sequence dimension rather than a feature dimension after projecting to a common embedding dimension.

This builds off of 152 which can now be closed.

Copy link
Contributor

@jazcollins jazcollins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments!

diffusion/datasets/image_caption_latents.py Outdated Show resolved Hide resolved
diffusion/callbacks/log_diffusion_images.py Outdated Show resolved Hide resolved
diffusion/models/models.py Outdated Show resolved Hide resolved
diffusion/models/models.py Outdated Show resolved Hide resolved
diffusion/models/precomputed_text_latent_diffusion.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jazcollins jazcollins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment, otherwise LGTM!

diffusion/models/models.py Show resolved Hide resolved
@coryMosaicML coryMosaicML merged commit afa6c66 into mosaicml:main Oct 4, 2024
5 checks passed
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.

3 participants