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

fixing autoquant bug #265

Merged
merged 4 commits into from
May 24, 2024
Merged

fixing autoquant bug #265

merged 4 commits into from
May 24, 2024

Conversation

HDCharles
Copy link
Contributor

Summary:

in some model topographies you see the same weight accessed by multiple modules which caused a bug where weights would get autoquantized multiple times.

Also fixed a shape issue with x_scales in some situation with new primitives.

Also changed default for autoquant to be interpolation which seems to work better for torchbench benchmarking

Test Plan: python test/integration/test_integration.py -k "autoquant"

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

in some model topographies you see the same weight accessed by multiple
modules which caused a bug where weights would get autoquantized
multiple times.

Also fixed a shape issue with x_scales in some situation with new
primitives.

Also changed default for autoquant to be interpolation which seems to
work better for torchbench benchmarking

Test Plan: python test/integration/test_integration.py -k "autoquant"

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented May 23, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/265

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5f5d175 with merge base 49755f6 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 23, 2024
@HDCharles HDCharles requested a review from supriyar May 23, 2024 20:02
@msaroufim msaroufim merged commit 163cb93 into main May 24, 2024
13 checks passed
@msaroufim msaroufim deleted the 084_ao_bugs branch May 24, 2024 04:22
dbyoung18 pushed a commit to dbyoung18/ao that referenced this pull request Jul 31, 2024
Summary:

in some model topographies you see the same weight accessed by multiple
modules which caused a bug where weights would get autoquantized
multiple times.

Also fixed a shape issue with x_scales in some situation with new
primitives.

Also changed default for autoquant to be interpolation which seems to
work better for torchbench benchmarking

Test Plan: python test/integration/test_integration.py -k "autoquant"

Reviewers:

Subscribers:

Tasks:

Tags:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants