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

Lint fixes test/quantization #1359

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Lint fixes test/quantization #1359

merged 3 commits into from
Dec 2, 2024

Conversation

jainapurva
Copy link
Contributor

Corrected lint errors and added lint check to test/quantization folder

Copy link

pytorch-bot bot commented Nov 27, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit f64be84 with merge base 22bec74 (image):

NEW FAILURE - The following job has failed:

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 Nov 27, 2024
@jainapurva jainapurva added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Nov 27, 2024
@jainapurva jainapurva marked this pull request as ready for review November 27, 2024 23:58
@jainapurva jainapurva merged commit cfabd6d into main Dec 2, 2024
17 of 18 checks passed
yanbing-j pushed a commit to yanbing-j/ao that referenced this pull request Dec 9, 2024
…ed values (pytorch#1359)

* Update cli.py to make --device/--dtype pre-empt quantize dict-specified values

Users may expect that cli parameters override the JSON, as per pytorch#1278.  
Invert logic - case split: 
1 - if none (no value) is specified, use value specified in quantize dict, if present; else
2 - if value is specified, override the respective handler if present.

* Fix typo in cli.py

fix typo

---------

Co-authored-by: Jack-Khuu <jack.khuu.7@gmail.com>
Int4WeightOnlyQATQuantizer,
Int8DynActInt4WeightQATLinear,
Int8DynActInt4WeightQATQuantizer,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @jainapurva, should we add these back? The test is for checking the imports specifically

Copy link
Contributor

Choose a reason for hiding this comment

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

added them here: #1417

andrewor14 added a commit that referenced this pull request Dec 13, 2024
Summary: The unused imports in this test were mistakenly deleted
in #1359. This commit adds
them back.

Test Plan:
python test/quantization/test_qat.py
andrewor14 added a commit that referenced this pull request Dec 13, 2024
Summary: The unused imports in this test were mistakenly deleted
in #1359. This commit adds
them back.

Test Plan:
python test/quantization/test_qat.py
andrewor14 added a commit that referenced this pull request Dec 13, 2024
Summary: The unused imports in this test were mistakenly deleted
in #1359. This commit adds
them back.

Test Plan:
python test/quantization/test_qat.py
amdfaa pushed a commit that referenced this pull request Jan 10, 2025
Summary: The unused imports in this test were mistakenly deleted
in #1359. This commit adds
them back.

Test Plan:
python test/quantization/test_qat.py
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. topic: not user facing Use this tag if you don't want this PR to show up in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants