Repository navigation
[Fix] [XPU] glm4_moe_lite: Skip model-side routed scaling on XPU (fix GLM-4.7-Flash accuracy) #43891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
desmond-intel
wants to merge
8
commits into
sgl-project:main
Choose a base branch
from
desmond-intel:model-serve/glm47-flash-xpu
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+43
−2
Open
[Fix] [XPU] glm4_moe_lite: Skip model-side routed scaling on XPU (fix GLM-4.7-Flash accuracy) #43891
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
90c2a39
glm4_moe_lite: skip model-side routed scaling on XPU (fix GLM-4.7-Fla…
desmond-intel 7ebced6
Add GLM-4.7-Flash GSM8K nightly test on XPU (TP=4)
desmond-intel 772599d
Use sgl-eval for the GLM-4.7-Flash XPU GSM8K test
desmond-intel b7ba8c6
Drop the XPU-availability skip from the GLM-4.7-Flash XPU test
desmond-intel a48ecd5
Use the XPU sgl-eval GSM8K mixin for the GLM-4.7-Flash XPU test
desmond-intel 0d5f866
Run 20 GSM8K examples in the GLM-4.7-Flash XPU test
desmond-intel 97b1356
Lower the GLM-4.7-Flash XPU test threshold to 0.75
desmond-intel 1f92cc2
Merge branch 'main' into model-serve/glm47-flash-xpu
arathi-hlab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| """GLM-4.7-Flash GSM8K accuracy on Intel XPU (TP=4). | ||
|
|
||
| Scored by sgl-eval's ``gsm8k`` benchmark with the GLM-4.7-Flash cookbook | ||
| sampling settings. | ||
| """ | ||
|
|
||
| import unittest | ||
|
|
||
| from sglang.test.ci.ci_register import register_xpu_ci | ||
| from sglang.test.test_utils import CustomTestCase | ||
| from sglang.test.xpu.simple_eval_gsm8k_xpu_mixin import SimpleEvalGSM8KXPUMixin | ||
|
|
||
| register_xpu_ci(est_time=2400, suite="nightly-xpu-kernel-main-4-gpu", nightly=True) | ||
|
|
||
|
|
||
| class TestGLM4_7FlashXPU(SimpleEvalGSM8KXPUMixin, CustomTestCase): | ||
| model = "zai-org/GLM-4.7-Flash" | ||
| tp_size = 4 | ||
| # 3 runs on 4x B60 scored 0.80-0.90; one question of margin below the lowest. | ||
| accuracy = 0.75 | ||
| timeout_for_server_launch = 3600 | ||
| num_examples = 20 | ||
| num_threads = 4 | ||
| # Cookbook sampling; the chat template thinks by default. | ||
| temperature = 0.7 | ||
| top_p = 0.95 | ||
| max_tokens = 2048 | ||
|
|
||
| other_args = SimpleEvalGSM8KXPUMixin.other_args + [ | ||
| "--reasoning-parser", | ||
| "glm45", | ||
| "--mem-fraction-static", | ||
| "0.85", | ||
| # More concurrent requests lose the device on Arc Pro B60. | ||
| "--max-running-requests", | ||
| "4", | ||
| ] | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| unittest.main() | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you confirm sgl-eval is used ? if yes so please collect the number based on that rest is LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it uses sgl-eval.
SimpleEvalGSM8KXPUMixincallsrun_sgl_eval(eval_name="gsm8k")(simple_eval_gsm8k_xpu_mixin.py:110), and each run logssgl-eval gsm8k generation: {'max_tokens': 2048, 'temperature': 0.7, 'top_p': 0.95, ...}. The numbers in the description are from sgl-eval: three runs at 20 questions on 4x B60 scored 0.85, 0.80 and 0.90 (threshold 0.75), and an earlier 50-question run scored 0.90.