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

Support full int8 quantization for diffusers #1193

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

l-bat
Copy link
Contributor

@l-bat l-bat commented Mar 7, 2025

What does this PR do?

  • Enable full quantization of denoiser models of Stable Diffusion pipelines via optimum-cli.
  • Supported --quant-mode options: int8, f8e4m3, f8e5m2.
  • Example command is below.
optimum-cli export openvino -m stabilityai/stable-diffusion-2 --quant-mode int8 --dataset conceptual_captions --num-samples 32 --smooth-quant-alpha 0.9 ./sd2

Fixes # (issue)

  • 163715

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@l-bat
Copy link
Contributor Author

l-bat commented Mar 7, 2025

@AlexKoff88, @nikita-savelyevv please take a look

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@AlexKoff88
Copy link
Collaborator

@IlyasMoutawwakil, @echarlaix, please take a look.

@AlexKoff88
Copy link
Collaborator

@IlyasMoutawwakil, @echarlaix, the PR is ready for your review

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.

5 participants