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
25d585ab
Unverified
Commit
25d585ab
authored
Jul 22, 2025
by
Chaojun Zhang
Committed by
GitHub
Jul 21, 2025
Browse files
[XPU] Enable external_launcher to serve as an executor via torchrun (#21021)
Signed-off-by:
chzhang
<
chaojun.zhang@intel.com
>
parent
8d0a01a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/v1/worker/xpu_worker.py
vllm/v1/worker/xpu_worker.py
+3
-1
No files found.
vllm/v1/worker/xpu_worker.py
View file @
25d585ab
...
...
@@ -7,6 +7,7 @@ import torch.distributed
import
vllm.envs
as
envs
from
vllm.config
import
VllmConfig
from
vllm.distributed
import
get_world_group
from
vllm.logger
import
init_logger
from
vllm.model_executor
import
set_random_seed
from
vllm.platforms
import
current_platform
...
...
@@ -155,7 +156,8 @@ class XPUWorker(Worker):
current_platform
.
dist_backend
)
# global all_reduce needed for overall oneccl warm up
torch
.
distributed
.
all_reduce
(
torch
.
zeros
(
1
).
xpu
())
torch
.
distributed
.
all_reduce
(
torch
.
zeros
(
1
).
xpu
(),
group
=
get_world_group
().
device_group
)
# Set random seed.
set_random_seed
(
self
.
model_config
.
seed
)
...
...
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