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
73f635a7
Unverified
Commit
73f635a7
authored
Jan 15, 2026
by
XiongfeiWei
Committed by
GitHub
Jan 16, 2026
Browse files
[Bug] Add TPU backend option (#32438)
Signed-off-by:
Xiongfei Wei
<
isaacwxf23@gmail.com
>
parent
35bf5d08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/model_executor/layers/fused_moe/oracle/unquantized.py
vllm/model_executor/layers/fused_moe/oracle/unquantized.py
+4
-0
No files found.
vllm/model_executor/layers/fused_moe/oracle/unquantized.py
View file @
73f635a7
...
...
@@ -32,6 +32,7 @@ class UnquantizedMoeBackend(Enum):
TRITON
=
"TRITON"
CPU
=
"CPU"
XPU
=
"XPU"
TPU
=
"TPU"
# NOTE(zyongye): Unsupported backend means backend
...
...
@@ -40,6 +41,7 @@ class UnquantizedMoeBackend(Enum):
UNSUPPORTED_BACKEND
=
[
UnquantizedMoeBackend
.
CPU
,
UnquantizedMoeBackend
.
XPU
,
UnquantizedMoeBackend
.
TPU
,
]
...
...
@@ -91,6 +93,8 @@ def select_unquantized_moe_backend(
backend
=
UnquantizedMoeBackend
.
XPU
if
current_platform
.
is_cpu
():
backend
=
UnquantizedMoeBackend
.
CPU
if
current_platform
.
is_tpu
():
backend
=
UnquantizedMoeBackend
.
TPU
logger
.
info_once
(
_make_log_backend
(
backend
),
scope
=
"local"
)
return
backend
...
...
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