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 4bit quantized #43

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

EduardoPach
Copy link
Contributor

What does this PR do?

This pull request adds support for a new 4-bit quantized model version (argmaxinc/mlx-stable-diffusion-3.5-large-4bit-quantized) across various files. The changes include updating model configurations, loading mechanisms, and script parameters to handle this new model variant.

Model Configuration Updates:

Model Loading Adjustments:

  • python/src/diffusionkit/mlx/model_io.py: Modified load_mmdit, load_vae_decoder, and load_vae_encoder (vae related functions were modified as the checkpoint was pushed with modifications that are applied on the function) functions to handle the specific requirements of the 4-bit quantized model, including prefix adjustments and quantization handling. [1] [2] [3]

Copy link
Collaborator

@arda-argmax arda-argmax left a comment

Choose a reason for hiding this comment

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

LGTM!

@arda-argmax arda-argmax merged commit d737473 into argmaxinc:main Oct 29, 2024
1 check 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.

2 participants