Skip to content
Discussion options

You must be logged in to vote

The CLI parses values as yaml/json. You need to make sure that what you give is valid and not incorrectly interpreted by your shell. Probably you will need to add quotes so that your shell does not split things into different arguments, i.e. --trainer.plugins '["AlpsLightningEnvironment", "AntCheckpointIO"]'. Not sure if those values are correct, but the point is adding quotes so that the entire list is considered a single argument.

Explanation about how to provide init args of a subclass in a list from command line is here trainer-callbacks-and-arguments-with-class-type.

Note that as arguments become complex, it is preferable that you use a config file and get some help from --print_config

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MasterGG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment