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
2684efc4
Unverified
Commit
2684efc4
authored
Aug 30, 2024
by
Woosuk Kwon
Committed by
GitHub
Aug 30, 2024
Browse files
[TPU][Bugfix] Fix tpu type api (#8035)
parent
058344f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/attention/backends/pallas.py
vllm/attention/backends/pallas.py
+4
-1
No files found.
vllm/attention/backends/pallas.py
View file @
2684efc4
...
...
@@ -124,7 +124,10 @@ class PallasAttentionBackendImpl(AttentionImpl):
self
.
megacore_mode
=
None
tpu_env
=
torch_xla
.
tpu
.
get_tpu_env
()
tpu_type
=
tpu_env
.
get
(
"TYPE"
)
or
tpu_env
.
get
(
"ACCELERATOR_TYPE"
)
tpu_type
=
(
tpu_env
.
get
(
"ACCELERATOR_TYPE"
,
None
)
or
tpu_env
.
get
(
"TYPE"
,
None
)
or
tpu_env
.
get
(
"TPU_ACCELERATOR_TYPE"
,
None
))
assert
tpu_type
is
not
None
tpu_type
=
tpu_type
.
lower
()
if
"lite"
not
in
tpu_type
:
...
...
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