Skip to content

Commit

Permalink
Update tpu-test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsliu committed Mar 6, 2024
1 parent b146cb7 commit f8b6687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/ray/kuberay-tpu-webhook/tests/tpu-test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ray

@ray.remote(resources={"google.com/tpu": 4})
@ray.remote(resources={"TPU": 4})
def tpu_cores():
import jax

Expand All @@ -23,4 +23,4 @@ def tpu_cores():

num_workers = 4
result = [tpu_cores.remote() for _ in range(num_workers)]
print(ray.get(result))
print(ray.get(result))

0 comments on commit f8b6687

Please sign in to comment.