update mix test and low lantency test for dynamic-tokens.#376
update mix test and low lantency test for dynamic-tokens.#376Yael-X merged 2 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello @zhuyutong332, 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 refactors and simplifies the low-latency and normal test suites for dynamic token handling. The changes primarily focus on improving consistency in token parameter naming, streamlining tensor initialization, and enhancing the robustness of validation logic, particularly concerning 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. Changelog
Ignored Files
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors the low-latency and mixed-mode tests to properly support dynamic token counts across different ranks. The changes simplify the test logic by creating tensors with actual token sizes rather than pre-allocating for a maximum size. Padding is now correctly handled just before collective communication operations like all_gather, which require uniform tensor sizes. The correctness checks and overall test code are now much cleaner and more readable. These are excellent improvements. I have one minor suggestion to improve code formatting.
b49274a to
047d700
Compare
* upstream/main: update mix test and low lantency test for dynamic-tokens. (sgl-project#376) [WIP] Fix bs zero for deepep (sgl-project#385) Change hccl Init and SetCcTiling interface to V2 version to avoid compile warnings (sgl-project#387) bump version to 2026.03.01 (sgl-project#388) feat:[fused_sigmoid_gating_delta_rule_update_npu_kernel] support kda feature--to be aligned with sgl-kernel, for model kimi-linear (sgl-project#371) revise causal_conv1d: bugfix and enhance accuracy for model kimilinear (sgl-project#370)
* upstream/main: update mix test and low lantency test for dynamic-tokens. (sgl-project#376) [WIP] Fix bs zero for deepep (sgl-project#385) Change hccl Init and SetCcTiling interface to V2 version to avoid compile warnings (sgl-project#387) bump version to 2026.03.01 (sgl-project#388) feat:[fused_sigmoid_gating_delta_rule_update_npu_kernel] support kda feature--to be aligned with sgl-kernel, for model kimi-linear (sgl-project#371) revise causal_conv1d: bugfix and enhance accuracy for model kimilinear (sgl-project#370)
update mix test and low lantency test for dynamic-tokens.