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
197473c4
Unverified
Commit
197473c4
authored
Dec 11, 2025
by
Ryan Rock
Committed by
GitHub
Dec 12, 2025
Browse files
[CI/Build] Use spawn subprocess for ROCm (#30272)
Signed-off-by:
Ryan Rock
<
ryan.rock@amd.com
>
parent
947dfda9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
examples/offline_inference/data_parallel.py
examples/offline_inference/data_parallel.py
+6
-0
No files found.
examples/offline_inference/data_parallel.py
View file @
197473c4
...
...
@@ -33,6 +33,7 @@ import os
from
time
import
sleep
from
vllm
import
LLM
,
SamplingParams
from
vllm.platforms
import
current_platform
from
vllm.utils.network_utils
import
get_open_port
...
...
@@ -222,6 +223,11 @@ if __name__ == "__main__":
from
multiprocessing
import
Process
if
current_platform
.
is_rocm
():
from
multiprocessing
import
set_start_method
set_start_method
(
"spawn"
,
force
=
True
)
procs
=
[]
for
local_dp_rank
,
global_dp_rank
in
enumerate
(
range
(
node_rank
*
dp_per_node
,
(
node_rank
+
1
)
*
dp_per_node
)
...
...
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