Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
2a2d3478
Unverified
Commit
2a2d3478
authored
Jul 12, 2025
by
fzyzcjy
Committed by
GitHub
Jul 11, 2025
Browse files
Fix wrong gemm branch cause 250us slower (#7969)
parent
aa205609
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+1
-3
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
2a2d3478
...
...
@@ -2193,7 +2193,6 @@ class DeepseekV2ForCausalLM(nn.Module):
# This may affect the accuracy of fp8 model.
# Fix deepseek v3 blockwise bmm by using deep_gemm
use_deep_gemm_bmm
=
False
model_dtype
=
torch
.
get_default_dtype
()
if
w
.
dtype
in
(
torch
.
float8_e4m3fn
,
...
...
@@ -2219,7 +2218,6 @@ class DeepseekV2ForCausalLM(nn.Module):
_is_cuda
and
weight_block_size
[
0
]
==
128
and
weight_block_size
[
1
]
==
128
and
model_dtype
==
torch
.
bfloat16
):
if
(
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
...
...
@@ -2233,7 +2231,7 @@ class DeepseekV2ForCausalLM(nn.Module):
weight
,
weight_scale
,
weight_block_size
,
model_dtype
,
torch
.
bfloat16
,
)
else
:
w
,
scale
=
block_quant_to_tensor_quant
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment