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

Add custom pw proxy args support #249

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

sadikneipp
Copy link
Collaborator

@sadikneipp sadikneipp commented Nov 15, 2024

Fixes / Features

  • Add a new argument to the pathways proxy server in order to extend startup flags

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

  • [ y/n ] Tests pass
  • [ y/n ] Appropriate changes to documentation are included in the PR

@@ -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 +'- ')

Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

Suggested change
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}

Copy link
Collaborator

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?

@pawloch00
Copy link
Collaborator

Please fix linting and build issues before requesting review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants