Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
f68cce8e
Unverified
Commit
f68cce8e
authored
Mar 23, 2025
by
youkaichao
Committed by
GitHub
Mar 23, 2025
Browse files
[ci/build] fix broken tests in LLM.collective_rpc (#15350)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
09b6a955
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
.buildkite/test-pipeline.yaml
.buildkite/test-pipeline.yaml
+1
-1
tests/entrypoints/llm/test_collective_rpc.py
tests/entrypoints/llm/test_collective_rpc.py
+2
-11
No files found.
.buildkite/test-pipeline.yaml
View file @
f68cce8e
...
...
@@ -515,7 +515,7 @@ steps:
-
vllm/worker/model_runner.py
-
entrypoints/llm/test_collective_rpc.py
commands
:
-
pytest -v -s entrypoints/llm/test_collective_rpc.py
-
VLLM_ENABLE_V1_MULTIPROCESSING=0
pytest -v -s entrypoints/llm/test_collective_rpc.py
-
pytest -v -s ./compile/test_basic_correctness.py
-
pytest -v -s ./compile/test_wrapper.py
-
VLLM_TEST_SAME_HOST=1 torchrun --nproc-per-node=4 distributed/test_same_node.py | grep 'Same node test passed'
...
...
tests/entrypoints/llm/test_collective_rpc.py
View file @
f68cce8e
...
...
@@ -21,18 +21,9 @@ def test_collective_rpc(tp_size, backend):
def
echo_rank
(
self
):
return
self
.
rank
from
vllm.worker.worker
import
Worker
class
MyWorker
(
Worker
):
def
echo_rank
(
self
):
return
self
.
rank
llm
=
LLM
(
model
=
"meta-llama/Llama-3.2-1B-Instruct"
,
enforce_eager
=
True
,
load_format
=
"dummy"
,
tensor_parallel_size
=
tp_size
,
distributed_executor_backend
=
backend
,
worker_cls
=
MyWorker
)
for
method
in
[
"echo_rank"
,
echo_rank
]:
assert
llm
.
collective_rpc
(
method
)
==
list
(
range
(
tp_size
))
distributed_executor_backend
=
backend
)
assert
llm
.
collective_rpc
(
echo_rank
)
==
list
(
range
(
tp_size
))
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