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
1bc3b739
Unverified
Commit
1bc3b739
authored
Mar 12, 2025
by
Siyuan Liu
Committed by
GitHub
Mar 12, 2025
Browse files
[V1][TPU] Add assertion on multi-step-scheduler (#14707)
Signed-off-by:
Siyuan Liu
<
lsiyuan@google.com
>
parent
1bd32bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
vllm/platforms/tpu.py
vllm/platforms/tpu.py
+11
-5
No files found.
vllm/platforms/tpu.py
View file @
1bc3b739
...
...
@@ -91,13 +91,19 @@ class TpuPlatform(Platform):
parallel_config
=
vllm_config
.
parallel_config
scheduler_config
=
vllm_config
.
scheduler_config
if
parallel_config
.
worker_cls
==
"auto"
:
if
envs
.
VLLM_USE_V1
:
parallel_config
.
worker_cls
=
\
"vllm.v1.worker.tpu_worker.TPUWorker"
else
:
if
scheduler_config
.
is_multi_step
:
if
scheduler_config
.
is_multi_step
:
if
envs
.
VLLM_USE_V1
:
raise
NotImplementedError
(
"Multi-step scheduling is not supported (and not "
"needed) on vLLM V1. Please launch without "
"--num-scheduler-steps."
)
else
:
parallel_config
.
worker_cls
=
\
"vllm.worker.multi_step_tpu_worker.MultiStepTPUWorker"
else
:
if
envs
.
VLLM_USE_V1
:
parallel_config
.
worker_cls
=
\
"vllm.v1.worker.tpu_worker.TPUWorker"
else
:
parallel_config
.
worker_cls
=
\
"vllm.worker.tpu_worker.TPUWorker"
...
...
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