Skip to content

Commit

Permalink
[Bugfix][TPU] Fix megacore setting for v5e-litepod (vllm-project#6397)
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon authored and dtrifiro committed Jul 17, 2024
1 parent 101cbbc commit e561b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/attention/backends/pallas.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def __init__(

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:
Expand Down

0 comments on commit e561b13

Please sign in to comment.