tests: increase NMSE threshold for q5_1 MUL_MAT tests #16544
+5
−0
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.
Summary
Increases the NMSE error threshold for q5_1 quantization tests from 5e-4 to 7e-4 to address intermittent CI failures.
Problem
The
test-backend-ops
MUL_MAT test for q5_1 quantization sporadically fails in CUDA Release mode with NMSE values around 0.000638, slightly exceeding the current 5e-4 threshold. Analysis shows this affects approximately 43% of recent CI runs on master.Root Cause
Q5_1 quantization in CUDA Release mode exhibits slightly higher numerical errors due to:
This is a known issue previously reported in #11972, where testing across 20,000 runs showed max NMSE of 0.001409.
Solution
This PR increases the threshold specifically for q5_1 tests to 7e-4 while maintaining the stricter 5e-4 threshold for all other quantization types. This approach:
Test Configuration
Affects sporadic failures for:
Related Issues
Testing
🤖 Generated with Claude Code