[Spark unit test] Adjust tolerance for test_xqa, test_logits_processor#2828
[Spark unit test] Adjust tolerance for test_xqa, test_logits_processor#2828kahyunnam wants to merge 2 commits intoflashinfer-ai:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request adjusts the tolerance levels in two unit tests, Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
📝 WalkthroughWalkthroughTest validation thresholds are adjusted in two test files. The batch-level pass-ratio requirement is loosened from 0.99 to 0.98 in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
The pull request adjusts test tolerances in test_xqa and test_logits_processor to mitigate issues related to floating-point precision. While relaxing tolerances can help with test flakiness, it's crucial to ensure that these adjustments do not inadvertently mask actual bugs or regressions. The change in test_logits_processor.py introduces a particularly broad tolerance for small batch sizes, which warrants further scrutiny.
|
Still need an approver for tests/attention/ directory ... @bkryu / @nv-yunzheq / @saltyminty / @yzh119 |
📌 Description
Adjust tolerance slightly to avoid unnecessary noise in Spark unit testing.
I found these spark failures in these pipelines: https://gitlab-master.nvidia.com/dl/flashinfer/flashinfer-ci/-/jobs/284263159, https://gitlab-master.nvidia.com/dl/flashinfer/flashinfer-ci/-/jobs/284263158
🔍 Related Issues
🚀 Pull Request Checklist
Thank you for contributing to FlashInfer! Before we review your pull request, please make sure the following items are complete.
✅ Pre-commit Checks
pre-commitby runningpip install pre-commit(or used your preferred method).pre-commit install.pre-commit run --all-filesand fixed any reported issues.🧪 Tests
unittest, etc.).Reviewer Notes