Skip to content

Commit f494514

Browse files
authored
Fix TPU head resource name for v4 and v5e (#165)
* Fix TPU head resource name for v4 and v5e * fix format
1 parent 85152f6 commit f494514

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

run_ray_serve_interleave.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040

4141

4242
def create_head_resource_name(generation, tpu_chips):
43-
return f"TPU-{generation}-{tpu_chips}-head"
43+
if generation == "v5litepod":
44+
return f"TPU-{generation}-{tpu_chips}-head"
45+
else:
46+
tpu_cores = tpu_chips * 2
47+
return f"TPU-{generation}-{tpu_cores}-head"
4448

4549

4650
def create_engine(**kwargs):

0 commit comments

Comments
 (0)