Skip to content

HotFix for #3988 using blockwise_int8 - #4023

Merged
zhaochenyang20 merged 5 commits into
sgl-project:mainfrom
xihuai18:hotfix_blockwise_int8_moe
Mar 4, 2025
Merged

zhaochenyang20 merged 5 commits into
sgl-project:mainfrom
xihuai18:hotfix_blockwise_int8_moe

Conversation

@xihuai18

@xihuai18 xihuai18 commented Mar 3, 2025

Copy link
Copy Markdown
Contributor

Motivation

After #3988 is merge, run int8 DeepSeek R1 or V3 will raise:

  File "/path/to/sglang/python/sglang/srt/layers/moe/fused_moe_triton/layer.py", line 603, in forward
    final_hidden_states = self.quant_method.apply(
TypeError: apply() got an unexpected keyword argument 'inplace'

Modifications

Add inplace and no_combine parameters in blockwise_int8.py.

Checklist

@xihuai18

xihuai18 commented Mar 3, 2025

Copy link
Copy Markdown
Contributor Author

@HandH1998 @laixinn Could you help review this hotfix?

@xihuai18 xihuai18 changed the title hotfix for #3988 using blockwise_int8 HotFix for #3988 using blockwise_int8 Mar 3, 2025
@xihuai18

xihuai18 commented Mar 3, 2025

Copy link
Copy Markdown
Contributor Author

@merrymercy Is this hotfix right?

@zhyncs
zhyncs requested a review from HandH1998 March 3, 2025 17:14
@zhyncs zhyncs mentioned this pull request Mar 3, 2025
6 of 12 tasks
@zhaochenyang20
zhaochenyang20 merged commit 12f2e6c into sgl-project:main Mar 4, 2025
@xihuai18
xihuai18 deleted the hotfix_blockwise_int8_moe branch March 11, 2025 03:30
0826joyce pushed a commit to 0826joyce/sglang-perf-opt that referenced this pull request May 19, 2026
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.

3 participants