Skip to content

Conversation

xiaowangintel
Copy link
Collaborator

Summary:
Support PLAIN_INT32 for AWQ on Intel GPU

Test:

# task is gsm8k
python example.py --repo "microsoft/Phi-4-mini-instruct" --quant awq-int4wo-128 --calibration_limit 5 --max_seq_length 4096 --device xpu

#task is mmlu
python example.py --repo "Qwen/Qwen3-8B" --quant awq-int4wo-128 --calibration_limit 1 --max_seq_length 4096 --device xpu

Result:

Task Model calibration_limit awq
gsm8k Phi-4-mini-instruct 5 0.75815
mmlu Qwen3-8B 1 0.7595

Copy link

pytorch-bot bot commented Sep 17, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 3a325f3 with merge base 067b273 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Sep 17, 2025
@xiaowangintel xiaowangintel changed the title Support PLAIN_INT32 for AWQ on Intel GPU [WIP]Support PLAIN_INT32 for AWQ on Intel GPU Sep 17, 2025
@xiaowangintel xiaowangintel changed the title [WIP]Support PLAIN_INT32 for AWQ on Intel GPU Support PLAIN_INT32 for AWQ on Intel GPU Sep 18, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

add a test like

def test_activation_prescaling(self):

Copy link
Collaborator

Choose a reason for hiding this comment

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

@xiaowangintel let us add the UT as int4_tensor.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@liangan1 liangan1 left a comment

Choose a reason for hiding this comment

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

LGTM, how about the CUDA accuracy on these two models?

@liangan1 liangan1 added the topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) label Sep 18, 2025
@xiaowangintel
Copy link
Collaborator Author

LGTM, how about the CUDA accuracy on these two models?

Please visit #2400

@jerryzh168 jerryzh168 merged commit cfa39c8 into pytorch:main Sep 19, 2025
18 checks passed
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: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants