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 SD3.5 large and large turbo presets #1960

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

james77777778
Copy link
Collaborator

@james77777778 james77777778 commented Oct 29, 2024

SD3.5 large and large turbo share the same model architecture, with the main difference being the use of QK RMS normalization, which SD3 medium doesn't.

This PR implements QR RMS normalization in MMDiT. Additionally, the inference pipeline differs in turbo version, as it doesn't require classifier-free guidance, so I have made some changes to the APIs.

The presets have been uploaded to kaggle/kerashub path. Let me know if any changes are needed.

@divyashreepathihalli @mattdangerw

Prompt Large Large Turbo
"A cat holding a sign that says hello world" stable_diffusion_3 5_large stable_diffusion_3 5_large_turbo

Parameters of generate (ref: huggingface/diffusers)

  • Large: num_steps=40, guidance_scale=4.5
  • Large turbo: num_steps=4, guidance_scale=None (much faster that large version)

@divyashreepathihalli divyashreepathihalli added the kokoro:force-run Runs Tests on GPU label Oct 29, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Oct 29, 2024
Copy link
Collaborator

@divyashreepathihalli divyashreepathihalli left a comment

Choose a reason for hiding this comment

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

LGTM

@divyashreepathihalli divyashreepathihalli merged commit 991bced into keras-team:master Oct 29, 2024
10 checks passed
@james77777778 james77777778 deleted the add-sd3-large branch October 30, 2024 01:22
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