-
Notifications
You must be signed in to change notification settings - Fork 32
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
Runtime parameters of mlcube can't include the letter "h" #347
Comments
Thanks @hasan7n for reporting this. Will look at it on Friday. |
This commit fixes bugs associated with the MLCube's `run` command: - It now uses correct option decorators from the `cli` (class Options) instead of deprecated decorators from the `__main__.py` file. - It now uses the `-P` option to correctly parse MLCube parameters that users provide on a command line. The latter particularly fixes the mlcommons#347 issue.
This commit fixes bugs associated with the MLCube `run` command: - It now uses correct option decorators from the `cli` module (class `Options`) instead of deprecated decorators from the `__main__.py` file. - It now uses the `-P` option to correctly parse MLCube parameters that users provide on a command line. The latter particularly fixes the #347 issue.
@hasan7n Ok, so it should be fixed in #348. Brief description of the cause of the behavior. We've gone through multiple rounds of refactoring of the MLCube command line interface, and at some point in time option descriptions moved to their module (
As you correctly mention, when there's no |
Associated PR #348 fixed this problem. |
Setting runtime parameters using the
-P...
convention doesn't work if the parameter contains the letterh
. Example:mlcube run -Pdocker.cpu_args="--shm-size 1g" ...
Running the above will show the MLCube's
--help
message.Below as an example that can localize the problem:
mlcube run -Pdocker.cpu_args="--name helloworld" ...
: This will show the--help
messagemlcube run -Pdocker.cpu_args="--name elloworld" ...
: This will run successfulyThe reason seems to be that when
click
encounters the following pattern:-**********h******
, it interprets this as a bunch of options, and recognizes one of them:-h
.I couldn't find a workaround, and I think in the future we will need to allow users to dynamically set docker's
--shm-size
parameter.The text was updated successfully, but these errors were encountered: