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
90caf06c
"models/vscode:/vscode.git/clone" did not exist on "ff89f808691c5795c5d47f2be00567d9ce7b89dc"
Unverified
Commit
90caf06c
authored
Apr 08, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 08, 2025
Browse files
fix: use DeepEPDispatcher on CUDA (#5180)
parent
6669d127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+2
-1
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
90caf06c
...
@@ -50,7 +50,6 @@ from sglang.srt.layers.linear import (
...
@@ -50,7 +50,6 @@ from sglang.srt.layers.linear import (
)
)
from
sglang.srt.layers.logits_processor
import
LogitsProcessor
from
sglang.srt.layers.logits_processor
import
LogitsProcessor
from
sglang.srt.layers.moe.ep_moe.layer
import
DeepEPMoE
,
EPMoE
from
sglang.srt.layers.moe.ep_moe.layer
import
DeepEPMoE
,
EPMoE
from
sglang.srt.layers.moe.ep_moe.token_dispatcher
import
DeepEPDispatcher
from
sglang.srt.layers.moe.fused_moe_triton
import
FusedMoE
from
sglang.srt.layers.moe.fused_moe_triton
import
FusedMoE
from
sglang.srt.layers.moe.topk
import
select_experts
from
sglang.srt.layers.moe.topk
import
select_experts
from
sglang.srt.layers.quantization.base_config
import
QuantizationConfig
from
sglang.srt.layers.quantization.base_config
import
QuantizationConfig
...
@@ -79,6 +78,8 @@ _is_cuda = is_cuda()
...
@@ -79,6 +78,8 @@ _is_cuda = is_cuda()
if
_is_cuda
:
if
_is_cuda
:
from
sgl_kernel
import
awq_dequantize
,
bmm_fp8
from
sgl_kernel
import
awq_dequantize
,
bmm_fp8
from
sglang.srt.layers.moe.ep_moe.token_dispatcher
import
DeepEPDispatcher
else
:
else
:
from
vllm
import
_custom_ops
as
ops
from
vllm
import
_custom_ops
as
ops
...
...
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