8000 [feat] allow extra commandline args in sweep scripts by ronghanghu · Pull Request #1057 · facebookresearch/mmf · GitHub
[go: up one dir, main page]

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

[feat] allow extra commandline args in sweep scripts #1057

Closed
wants to merge 3 commits into from

Conversation

ronghanghu
Copy link
Contributor
@ronghanghu ronghanghu commented Aug 26, 2021

This PR adds --extra_args in sweep lib to allow passing additional MMF
command-line arguments, like mmf_run and mmf_predict.

Usage: one can append to the sweep script extra command line arguments such as

python tools/sweeps/sweep_visual_bert.py \
  <gpu, node, or other arguments> \
  --extra_args training.checkpoint_interval 10000 training.batch_size 128

Note that it also support the other format with equal sign = in args such as --extra_args training.batch_size=128

Test plan: tested on FAIR cluster

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 26, 2021
@ronghanghu ronghanghu requested a review from apsdehal August 26, 2021 06:20
Add `--extra_mmf_args` in sweep lib to allow passing additional MMF
command-line arguments, like `mmf_run` and `mmf_predict`.

Usage: append to the sweep script extra command line arguments such as `--extra_mmf_args training.checkpoint_interval 10000
training.batch_size 128`

Test plan: tested on FAIR cluster
@facebook-github-bot
Copy link
Contributor

@ronghanghu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor
@apsdehal apsdehal left a comment

Choose a reason for hiding this comment

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

Feature of the year! Minor comment, otherwise looks good to land.

@facebook-github-bot
Copy link
Contributor

@ronghanghu has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@ronghanghu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ronghanghu has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@ronghanghu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Aug 26, 2021
Summary:
This PR adds `--extra_args` in sweep lib to allow passing additional MMF
command-line arguments, like `mmf_run` and `mmf_predict`.

Usage: one can append to the sweep script extra command line arguments such as
```
python tools/sweeps/sweep_visual_bert.py \
  <gpu, node, or other arguments> \
  --extra_args training.checkpoint_interval 10000 training.batch_size 128
```
Note that it also support the other format with equal sign `=` in args such as `--extra_args training.batch_size=128`

Pull Request resolved: #1057

Test Plan: tested on FAIR cluster

Reviewed By: apsdehal

Differential Revision: D30568684

Pulled By: ronghanghu

fbshipit-source-id: 88f85be01b4aa3aa32d616ae72e4b84ce4e51aa5
@ronghanghu ronghanghu deleted the sweep_extra_args branch August 26, 2021 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0