Skip to content
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

Update maxtext_xpk_runner.py to show how to use vertex ai integrations #1020

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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: 4 additions & 0 deletions benchmarks/maxtext_xpk_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def build_user_command(
f' base_output_directory={base_output_directory}'
f' use_vertex_tensorboard=false'
' vertex_tensorboard_project="" vertex_tensorboard_region=""'
# Adjust this "run_name" to identify the name of the run in the experiment
f' run_name="{model.model_name}-{num_slices}-{libtpu_date}"'
)

Expand Down Expand Up @@ -376,6 +377,9 @@ def generate_xpk_workload_cmd(
' --enable-debug-logs'
f' --workload={name}'
' --priority=medium'
# Below two flags "enable vertex tensorboard and then the experiment name
# experiment name has to be lower case and uses "-", no underscores. Don't make it too long
# experiment emcompasses multiple "runs"
# ' --use-vertex-tensorboard'
# f' --experiment-name={test_purpose_name}'
f' {additional_flags}'
Expand Down
Loading