Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase calibration samples and tolerance for flaky quantized op tests #7990

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

GregoryComer
Copy link
Member

Summary

Several tests, including test_add_qs8 and test_qs8_conv1d, are failing intermittently. This PR adds additional calibration samples to reduce dependence on the single input sample and adjusts test tolerance accordingly.

Note: We likely want to expose calibration_samples as a numeric option in the tester, in addition to the logic I added to pass in samples. If we can re-use generate_random_inputs, that would be ideal, though it requires a little refactoring to make it available from inside of a stage. We can take that as a follow-up.

Test plan

Re-ran the above failing tests 10k times (100 full runs with 100 iterations of run_method_and_compare_outputs).

Copy link

pytorch-bot bot commented Jan 28, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2dbb0c5 with merge base 06ef713 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@GregoryComer GregoryComer requested a review from mcr229 January 28, 2025 01:00
@facebook-github-bot facebook-github-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 Jan 28, 2025
Copy link
Contributor

@mcr229 mcr229 left a comment

Choose a reason for hiding this comment

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

thanks for this change!

@GregoryComer GregoryComer merged commit 2307b6f into pytorch:main Jan 28, 2025
45 of 47 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: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants