Repository navigation
Fix Bamba synthetic parity CI tolerance - #476
Merged
Merged
Conversation
Account for the stable floating-point accumulation difference between the Hugging Face and ONNX hybrid Mamba2/attention paths while retaining exact argmax and high-cosine correctness gates. Co-authored-by: Copilot <[email protected]> Signed-off-by: justinchuby <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the L3 synthetic parity test tolerances to stop baseline CI failures for the Bamba model type by adding a small per-model atol override, while documenting the underlying floating-point accumulation differences observed versus HuggingFace.
Changes:
- Add a Bamba-specific
atol=0.002entry to_ATOL_OVERRIDESfor L3 synthetic parity. - Document the observed max-abs-diff and cosine behavior for deterministic Bamba seeds in CI.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+111
to
+113
| # Bamba's hybrid Mamba2 + attention path differs slightly in FP accumulation | ||
| # order from HuggingFace. Both deterministic seeds keep the same argmax and | ||
| # cosine >= 0.999996 with max absolute error below 0.0017. |
Performance Comparison
|
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.
Summary
atol=0.002override for L3 synthetic parityRoot cause
Both deterministic Bamba seeds exceed the generic
1e-3threshold under the CI dependency set:The same failures occur on unrelated PRs, confirming this is a baseline tolerance issue rather than a model change regression.
Validation
pytest tests/synthetic_parity_test.py -q --models bamba --tb=short:2 passed, 201 skipped