Skip to content

[docs] Quantization + torch.compile + offloading #11703

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevhliu
Copy link
Member

Follows up on #11670 and #11672 to document combinations of quantization, torch.compile, and offloading.

@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.


Refer to the table below for the latency and memory-usage of each combination.

| combination | latency | memory usage |
Copy link
Member Author

Choose a reason for hiding this comment

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

@sayakpaul, can you help with the numbers here?

@stevhliu stevhliu requested a review from sayakpaul June 12, 2025 23:12
Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks for starting this. Will get you the numbers.

@sayakpaul
Copy link
Member

@stevhliu

combination latency memory usage
quantization 32.602 14.9453
quantization, torch.compile 25.847 14.9448
quantization, torch.compile, model CPU offloading 32.312 12.2369
quantization, torch.compile, group offloading 60.235 12.2369

Code: https://gist.github.com/sayakpaul/0db9d8eeeb3d2a0e5ed7cf0d9ca19b7d

Worth mentioning:

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