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
06be5356
Unverified
Commit
06be5356
authored
Feb 26, 2026
by
Chenyaaang
Committed by
GitHub
Feb 27, 2026
Browse files
[Core]Extract is_last_rank in Ray for tpu to override (#33012)
Signed-off-by:
Chenyaaang
<
chenyangli@google.com
>
parent
c29ee9c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/v1/executor/ray_utils.py
vllm/v1/executor/ray_utils.py
+4
-1
No files found.
vllm/v1/executor/ray_utils.py
View file @
06be5356
...
@@ -108,7 +108,7 @@ try:
...
@@ -108,7 +108,7 @@ try:
if
isinstance
(
output
,
AsyncModelRunnerOutput
):
if
isinstance
(
output
,
AsyncModelRunnerOutput
):
output
=
output
.
get_output
()
output
=
output
.
get_output
()
if
not
get_pp_group
().
is_last_rank
:
if
not
self
.
_
is_last_rank
()
:
# Case where there are no scheduled requests
# Case where there are no scheduled requests
# but may still be finished requests.
# but may still be finished requests.
assert
not
output
or
not
output
.
req_ids
assert
not
output
or
not
output
.
req_ids
...
@@ -128,6 +128,9 @@ try:
...
@@ -128,6 +128,9 @@ try:
def
_is_intermediate_tensors
(
self
,
output
)
->
bool
:
def
_is_intermediate_tensors
(
self
,
output
)
->
bool
:
return
isinstance
(
output
,
IntermediateTensors
)
return
isinstance
(
output
,
IntermediateTensors
)
def
_is_last_rank
(
self
)
->
bool
:
return
get_pp_group
().
is_last_rank
ray_import_err
=
None
ray_import_err
=
None
except
ImportError
as
e
:
except
ImportError
as
e
:
...
...
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