Skip to content

Update gcp scripts with minor corrections #1774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ $ gcloud beta services identity create --service tpu.googleapis.com
- Clone HEIR repo and install dependencies

```sh
$ git clone git@github.com:google/heir.git
$ git clone https://github.com/google/heir.git
$ cd heir
$ pip install -r /scripts/gcp/requirements.txt
$ pip install -r ./scripts/gcp/requirements.txt
```

- Create a TPU
Expand Down
3 changes: 2 additions & 1 deletion scripts/gcp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def add_args(parser) -> None:
parser.add_argument("--project", type=str, required=False)
parser.add_argument("--zone", type=str, required=False)

def from_args(self, args) -> "Core":
@staticmethod
def from_args(args) -> "Core":
"""Creates a Core object from the given args."""
return Core(project=args.project, zone=args.zone)

Expand Down
2 changes: 2 additions & 0 deletions scripts/gcp/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def provision(
#!/bin/bash
set -eux
pip install -U "jax[tpu]" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
pip install --upgrade jax jaxlib
pip install jaxite
pip install absl-py
""",
},
# cidr_block !!!
Expand Down
2 changes: 1 addition & 1 deletion scripts/gcp/tool
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class Tool:
"--accelerator-type",
type=str,
# https://cloud.google.com/tpu/docs/system-architecture-tpu-vm
default="v5litepod-8",
default="v5litepod-4",
help="Accelerator type",
)
parser.add_argument(
Expand Down
Loading