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
f8f9ff57
Unverified
Commit
f8f9ff57
authored
Jul 12, 2024
by
Woosuk Kwon
Committed by
GitHub
Jul 12, 2024
Browse files
[Bugfix][TPU] Fix megacore setting for v5e-litepod (#6397)
parent
6bc9710f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/attention/backends/pallas.py
vllm/attention/backends/pallas.py
+1
-1
No files found.
vllm/attention/backends/pallas.py
View file @
f8f9ff57
...
...
@@ -116,7 +116,7 @@ class PallasAttentionBackendImpl(AttentionImpl):
self
.
megacore_mode
=
None
tpu_type
=
torch_xla
.
tpu
.
get_tpu_env
()[
"TYPE"
].
lower
()
if
not
tpu_type
.
endswith
(
"lite"
)
:
if
"lite"
not
in
tpu_type
:
if
self
.
num_kv_heads
%
2
==
0
:
self
.
megacore_mode
=
"kv_head"
else
:
...
...
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