Skip to content

Conversation

@amd-ruitang3
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 22, 2025 02:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds command-line argument support to the MoE test script and removes a Chinese comment from the quantization test. The changes make the testing framework more flexible by allowing users to specify custom parameters via command line instead of using hardcoded values.

  • Adds command-line arguments for dtype, token count, intermediate dimension, and hidden dimension
  • Updates all test loops to use command-line arguments when provided, falling back to default hardcoded values
  • Removes Chinese comment from quantization test configuration

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
op_tests/test_quant.py Removes Chinese comment from commented configuration line
op_tests/test_moe.py Adds command-line argument parsing and updates test loops to use dynamic parameters
Comments suppressed due to low confidence (2)

op_tests/test_moe.py:347

  • The argument name '--token' is ambiguous. Consider renaming to '--token-count' or '--num-tokens' to be more descriptive.
    "--token",

@amd-ruitang3 amd-ruitang3 merged commit eedfacc into main Jul 23, 2025
13 checks passed
@amd-ruitang3 amd-ruitang3 deleted the fmoe_codegen_asm branch July 23, 2025 02:32
@fxmarty-amd
Copy link
Contributor

fxmarty-amd commented Jul 23, 2025

@amd-ruitang3 @junhaha666 FYI, this PR causes accuracy issues in sgl-project/sglang#6299 (comment) (accuracy of 0.0)

Checking out to the previous commit cf29be3, everything is fine.

Is this a known issue in this PR? Is there a test missing? My workload is DeepSeek R1 with TP=8.

@amd-ruitang3
Copy link
Contributor Author

this PR modified args of fmoe with persistent mode. we will revert the commit and debug.

@fxmarty-amd
Copy link
Contributor

fxmarty-amd commented Jul 23, 2025

@amd-ruitang3 thank you, do you confirm it is not just an issue on my end then?

edit - false alarm, my issue stems from elsewhere in aiter. Still investigating.

cagrikymk pushed a commit that referenced this pull request Jul 30, 2025
* update tests

* update test

* update

* update_4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants