Skip to content

Enable INT8 quantization numerics tests on XPU - #4977

Draft
eryk-roch wants to merge 2 commits into
pytorch:mainfrom
eryk-roch:test_workflow_e2e_numerics_enablement
Draft

eryk-roch wants to merge 2 commits into
pytorch:mainfrom
eryk-roch:test_workflow_e2e_numerics_enablement

Conversation

@eryk-roch

Copy link
Copy Markdown

Keep XPU skips only for Float8. Report INT8 SQNR while preserving the 16.5 dB threshold.

Keep XPU skips only for Float8. Report INT8 SQNR while preserving
the 16.5 dB threshold.
@pytorch-bot

pytorch-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unclassified Failure

As of commit 42f5d62 with merge base cff77b4 (image):

NEW FAILURE - The following job has failed:

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:

  • PR Label Check / Check PR Labels (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    ##[error]This PR requires at least one label starting with 'module:'. Available modules can be found at: https://github.com/pytorch/ao/labels?q=module

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 Oct 7, 2026
@eryk-roch
eryk-roch marked this pull request as draft October 7, 2026 12:36
Comment thread test/quantization/test_quant_api.py Outdated
y_q = m_q(x)

sqnr = compute_error(y_ref, y_q)
print(f"{type(config).__name__}: SQNR={sqnr.item():.4f} dB, device={device}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Don't add the print info in this UT.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread test/quantization/test_quant_api.py
Comment thread test/quantization/test_quant_api.py Outdated
y_q = m_q(x)

sqnr = compute_error(y_ref, y_q)
print(f"{type(config).__name__}: SQNR={sqnr.item():.4f} dB, device={device}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
print(f"{type(config).__name__}: SQNR={sqnr.item():.4f} dB, device={device}")

@eryk-roch eryk-roch Oct 8, 2026 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

This branch has not been deployed

No deployments
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.

2 participants