Skip to content

Arm backend: Relax model test tolerances#20624

Merged
zingo merged 1 commit into
pytorch:mainfrom
zingo:Arm-backend-Relax-model-test-tolerances
Jul 1, 2026
Merged

Arm backend: Relax model test tolerances#20624
zingo merged 1 commit into
pytorch:mainfrom
zingo:Arm-backend-Relax-model-test-tolerances

Conversation

@zingo

@zingo zingo commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Increase the DL3 VGF quant atol to cover the observed max absolute error while keeping the existing rtol.

Relax the Conv3D A8W4 Frobenius threshold to account for borderline quantization noise in small-output cases where cosine similarity remains high.

cc @digantdesai @freddan80 @per @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Increase the DL3 VGF quant atol to cover the observed max absolute
error while keeping the existing rtol.

Relax the Conv3D A8W4 Frobenius threshold to account for borderline
quantization noise in small-output cases where cosine similarity
remains high.

Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com>
Change-Id: I1e5039d3755f0461b13a60e2cc8a43032f9b9715
Copilot AI review requested due to automatic review settings June 30, 2026 14:31
@zingo zingo requested a review from digantdesai as a code owner June 30, 2026 14:31
@zingo zingo added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes labels Jun 30, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20624

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

❌ 1 New Failure

As of commit 7f006e8 with merge base 0567b0a (image):

NEW FAILURE - The following job has failed:

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 30, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Jun 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts Arm backend test tolerances to reduce spurious failures from quantization noise in specific borderline cases (DL3 VGF quant model and Conv3D A8W4).

Changes:

  • Relax Conv3D INT A8W4 frobenius_threshold from 0.4 to 0.5.
  • Increase DL3 VGF quant output comparison atol from 0.1 to 0.15 (keeping rtol=0.1).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
backends/arm/test/ops/test_conv3d.py Loosens Frobenius threshold for Conv3D INT A8W4 tolerance checks.
backends/arm/test/models/test_dl3_arm.py Loosens absolute tolerance for DL3 VGF quant output comparisons.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 647 to 650
tosa_extensions=["int4"],
qtol=1,
frobenius_threshold=0.4,
frobenius_threshold=0.5,
)
Comment on lines 104 to 106
pipeline.change_args(
"run_method_and_compare_outputs", rtol=0.1, atol=0.1
"run_method_and_compare_outputs", rtol=0.1, atol=0.15
) # TODO: MLETORCH-1036 decrease tolerance
@rascani rascani requested a review from SS-JIA June 30, 2026 15:18
@zingo zingo merged commit b9804fb into pytorch:main Jul 1, 2026
503 of 509 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants