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
ec54d73c
Unverified
Commit
ec54d73c
authored
May 08, 2025
by
Russell Bryant
Committed by
GitHub
May 08, 2025
Browse files
[CI] Fix test_collective_rpc (#17858)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
a944f8ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/entrypoints/llm/test_collective_rpc.py
tests/entrypoints/llm/test_collective_rpc.py
+2
-1
No files found.
tests/entrypoints/llm/test_collective_rpc.py
View file @
ec54d73c
...
@@ -10,7 +10,7 @@ from ...utils import create_new_process_for_each_test
...
@@ -10,7 +10,7 @@ from ...utils import create_new_process_for_each_test
@
pytest
.
mark
.
parametrize
(
"tp_size"
,
[
1
,
2
])
@
pytest
.
mark
.
parametrize
(
"tp_size"
,
[
1
,
2
])
@
pytest
.
mark
.
parametrize
(
"backend"
,
[
"mp"
,
"ray"
])
@
pytest
.
mark
.
parametrize
(
"backend"
,
[
"mp"
,
"ray"
])
@
create_new_process_for_each_test
()
@
create_new_process_for_each_test
()
def
test_collective_rpc
(
tp_size
,
backend
):
def
test_collective_rpc
(
tp_size
,
backend
,
monkeypatch
):
if
tp_size
==
1
and
backend
==
"ray"
:
if
tp_size
==
1
and
backend
==
"ray"
:
pytest
.
skip
(
"Skip duplicate test case"
)
pytest
.
skip
(
"Skip duplicate test case"
)
if
tp_size
==
1
:
if
tp_size
==
1
:
...
@@ -21,6 +21,7 @@ def test_collective_rpc(tp_size, backend):
...
@@ -21,6 +21,7 @@ def test_collective_rpc(tp_size, backend):
def
echo_rank
(
self
):
def
echo_rank
(
self
):
return
self
.
rank
return
self
.
rank
monkeypatch
.
setenv
(
"VLLM_ALLOW_INSECURE_SERIALIZATION"
,
"1"
)
llm
=
LLM
(
model
=
"meta-llama/Llama-3.2-1B-Instruct"
,
llm
=
LLM
(
model
=
"meta-llama/Llama-3.2-1B-Instruct"
,
enforce_eager
=
True
,
enforce_eager
=
True
,
load_format
=
"dummy"
,
load_format
=
"dummy"
,
...
...
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