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
c7872985
Unverified
Commit
c7872985
authored
Mar 18, 2025
by
Yineng Zhang
Committed by
GitHub
Mar 18, 2025
Browse files
use sgl custom all reduce (#4441)
parent
45212ce1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
.github/workflows/pr-test.yml
.github/workflows/pr-test.yml
+2
-2
python/sglang/srt/_custom_ops.py
python/sglang/srt/_custom_ops.py
+1
-1
test/srt/test_bench_one_batch.py
test/srt/test_bench_one_batch.py
+1
-1
No files found.
.github/workflows/pr-test.yml
View file @
c7872985
...
@@ -221,9 +221,9 @@ jobs:
...
@@ -221,9 +221,9 @@ jobs:
timeout-minutes
:
10
timeout-minutes
:
10
run
:
|
run
:
|
cd test/srt
cd test/srt
python3 -m unittest test_bench_one_batch.TestBenchOneBatch.test_moe_tp2_bs1
USE_VLLM_CUSTOM_ALLREDUCE=1
python3 -m unittest test_bench_one_batch.TestBenchOneBatch.test_moe_tp2_bs1
USE_VLLM_CUSTOM_ALLREDUCE=0
python3 -m unittest test_bench_one_batch.TestBenchOneBatch.test_moe_tp2_bs1
python3 -m unittest test_bench_one_batch.TestBenchOneBatch.test_moe_tp2_bs1
-
name
:
Benchmark single latency + torch.compile (TP=2)
-
name
:
Benchmark single latency + torch.compile (TP=2)
timeout-minutes
:
10
timeout-minutes
:
10
...
...
python/sglang/srt/_custom_ops.py
View file @
c7872985
...
@@ -10,7 +10,7 @@ from sglang.srt.utils import get_bool_env_var, is_hip, is_hpu
...
@@ -10,7 +10,7 @@ from sglang.srt.utils import get_bool_env_var, is_hip, is_hpu
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
use_vllm_custom_allreduce
=
get_bool_env_var
(
use_vllm_custom_allreduce
=
get_bool_env_var
(
"USE_VLLM_CUSTOM_ALLREDUCE"
,
default
=
"
tru
e"
"USE_VLLM_CUSTOM_ALLREDUCE"
,
default
=
"
fals
e"
)
)
if
not
is_hpu
():
if
not
is_hpu
():
...
...
test/srt/test_bench_one_batch.py
View file @
c7872985
...
@@ -29,7 +29,7 @@ class TestBenchOneBatch(unittest.TestCase):
...
@@ -29,7 +29,7 @@ class TestBenchOneBatch(unittest.TestCase):
)
)
use_vllm_custom_allreduce
=
get_bool_env_var
(
use_vllm_custom_allreduce
=
get_bool_env_var
(
"USE_VLLM_CUSTOM_ALLREDUCE"
,
default
=
"
tru
e"
"USE_VLLM_CUSTOM_ALLREDUCE"
,
default
=
"
fals
e"
)
)
if
is_in_ci
():
if
is_in_ci
():
...
...
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