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
7f62077a
Unverified
Commit
7f62077a
authored
Jul 16, 2024
by
youkaichao
Committed by
GitHub
Jul 16, 2024
Browse files
[misc][distributed] improve tests (#6488)
parent
09c2eb85
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
tests/distributed/test_pipeline_parallel.py
tests/distributed/test_pipeline_parallel.py
+5
-3
vllm/distributed/device_communicators/shm_broadcast.py
vllm/distributed/device_communicators/shm_broadcast.py
+3
-1
No files found.
tests/distributed/test_pipeline_parallel.py
View file @
7f62077a
...
...
@@ -4,12 +4,14 @@ from ..utils import RemoteOpenAIServer
@
pytest
.
mark
.
parametrize
(
"TP_SIZE, PP_SIZE, EAGER_MODE, CHUNKED_PREFILL, MODEL_NAME"
,
[
"TP_SIZE, PP_SIZE, EAGER_MODE, CHUNKED_PREFILL, MODEL_NAME"
,
[
(
2
,
2
,
0
,
1
,
"meta-llama/Meta-Llama-3-8B"
),
(
2
,
2
,
1
,
0
,
"meta-llama/Meta-Llama-3-8B"
),
(
1
,
3
,
0
,
0
,
"meta-llama/Meta-Llama-3-8B"
),
(
1
,
4
,
0
,
1
,
"meta-llama/Meta-Llama-3-8B"
),
(
1
,
4
,
1
,
0
,
"meta-llama/Meta-Llama-3-8B"
),
# TODO: figure out why PP=4 tests are flaky
# (1, 4, 0, 1, "meta-llama/Meta-Llama-3-8B"),
# (1, 4, 1, 0, "meta-llama/Meta-Llama-3-8B"),
])
def
test_compare_tp
(
TP_SIZE
,
PP_SIZE
,
EAGER_MODE
,
CHUNKED_PREFILL
,
MODEL_NAME
):
pp_args
=
[
...
...
vllm/distributed/device_communicators/shm_broadcast.py
View file @
7f62077a
...
...
@@ -170,7 +170,7 @@ class MessageQueue:
self
.
n_remote_reader
=
n_remote_reader
if
connect_ip
is
None
:
connect_ip
=
get_ip
()
connect_ip
=
get_ip
()
if
n_remote_reader
>
0
else
"127.0.0.1"
context
=
Context
()
...
...
@@ -230,6 +230,8 @@ class MessageQueue:
remote_sync_port
=
remote_sync_port
,
)
logger
.
info
(
"vLLM message queue communication handle: %s"
,
self
.
handle
)
def
export_handle
(
self
)
->
Handle
:
return
self
.
handle
...
...
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