Skip to content

fix: use Int4WeightOnlyConfig.group_size in fake quant configs#4518

Open
oriollinan wants to merge 1 commit into
pytorch:mainfrom
oriollinan:fix/int4-weight-only-group-size-qat
Open

fix: use Int4WeightOnlyConfig.group_size in fake quant configs#4518
oriollinan wants to merge 1 commit into
pytorch:mainfrom
oriollinan:fix/int4-weight-only-group-size-qat

Conversation

@oriollinan

Copy link
Copy Markdown

Following the discussion with @andrewor14 in #3572, this PR updates the Int4WeightOnlyConfig QAT path to use the configured group_size instead of the hardcoded value 128.

Previously, _infer_fake_quantize_configs always generated fake quantization configs with group_size=128, regardless of the value specified in Int4WeightOnlyConfig. As a result, QAT did not honor the configured group size, unlike the corresponding PTQ path.

Fixes #3572

@pytorch-bot

pytorch-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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:

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

@meta-cla meta-cla 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 Jun 20, 2026
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.

group_size hardcoded in _infer_fake_quantize_configs.

1 participant