Arm backend: Relax model test tolerances#20624
Merged
Merged
Conversation
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
🔗 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 FailureAs of commit 7f006e8 with merge base 0567b0a ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
There was a problem hiding this comment.
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_thresholdfrom0.4to0.5. - Increase DL3 VGF quant output comparison
atolfrom0.1to0.15(keepingrtol=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 |
oscarandersson8218
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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