-
Notifications
You must be signed in to change notification settings - Fork 940
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
Conversation
8afbf1e
to
5186890
Compare
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
5186890
to
cd34129
Compare
@ronghanghu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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.
Feature of the year! Minor comment, otherwise looks good to land.
@ronghanghu has updated the pull request. You must reimport the pull request before landing. |
@ronghanghu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@ronghanghu has updated the pull request. You must reimport the pull request before landing. |
@ronghanghu has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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
This PR adds
--extra_args
in sweep lib to allow passing additional MMFcommand-line arguments, like
mmf_run
andmmf_predict
.Usage: one can append to the sweep script extra command line arguments such as
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