-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add custom pw proxy args support #249
base: main
Are you sure you want to change the base?
Conversation
@@ -60,6 +60,8 @@ def get_pathways_proxy_args(args) -> str: | |||
yaml = """- --server_port=29000 | |||
- --resource_manager_address={rm_address} | |||
- --gcs_scratch_location={args.pathways_gcs_location}""" | |||
if args.additional_pw_proxy_args: | |||
yaml += args.additional_pw_proxy_args.replace(' ', '\n' + ' '*14 +'- ') | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would appreciate some guidance for this line, hopefully there's some way to ensure relative alignment between lines. Without this alignment fix the yaml would not be parsed correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
additional_pw_proxy_string = '' | |
if args.additional_pw_proxy_args: | |
additional_pw_proxy_string = #construct your string here | |
yaml = """ | |
... | |
- {intendation_string}{additional_pw_proxy_string} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get why there are 14 spaces needed?
Please fix linting and build issues before requesting review. |
Fixes / Features
For now XLA flags are being concentrated on the proxy server. Ideally they will all move to the client and cease being container level flags to become jax-code level flags. This flag will be used in a PR to the benchmarks scripts in maxtext: AI-Hypercomputer/maxtext#1040
Testing / Documentation
Validated on v6e cluster, end to end tests WIP