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

Change print() to logging in Quantizer so that the caller can have control #472

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

larryliu0820
Copy link
Contributor

For Int4WeightOnlyQuantizer users, we should allow them to choose whether to print the logging or not. Currently the following logs are printed unconditionally:

linear: layers.0.attention.wq, in=4096, out=4096
linear: layers.0.attention.wk, in=4096, out=4096
...

Copy link

pytorch-bot bot commented Jul 3, 2024

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit f187931 with merge base a895699 (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 Jul 3, 2024
@larryliu0820 larryliu0820 requested a review from jerryzh168 July 3, 2024 21:09
@larryliu0820 larryliu0820 merged commit a7899b5 into main Jul 3, 2024
13 checks passed
dbyoung18 pushed a commit to dbyoung18/ao that referenced this pull request Jul 31, 2024
…ntrol (pytorch#472)

* Change print() to logging in Quantizer so that the caller can have control

* Change Int8DynActInt4WeightQuantizer as well
yanbing-j pushed a commit to yanbing-j/ao that referenced this pull request Dec 9, 2024
* Use _weight_int8pack_mm for CPU + eager

* Skip for older PyTorch versions
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