Repository navigation
fix: address issues in CLI docs and examples - #1809
Conversation
…' READMEs Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
|
🌿 Preview your docs: https://nvidia-preview-martas-fix-cli-docs.docs.buildwithfern.com/nemo/gym Here are the markdown pages you've updated: |
sephmard
left a comment
There was a problem hiding this comment.
Thanks for cleaning these up. Left two inline comments on the Azure API version override and the -i shorthand conflict — both worth a quick confirm before merge.
| gym env start \ | ||
| --model-type local_vllm_model/openai/gpt-oss-20b-reasoning-high \ | ||
| --model-type local_vllm_model_proxy \ | ||
| ++policy_model_proxy.responses_api_models.local_vllm_model_proxy.model_server.name=gpt-oss-20b-reasoning-high |
There was a problem hiding this comment.
Is this expected @marta-sd?
The +policy_model... Hydra override is carried over unchanged from the old syntax. It's not clear whether this still works as a positional argument after the new gym env start flags, or whether there's a new way to pass this. It's the only place in the PR where old Hydra override syntax is intentionally kept -- worth confirming it's still valid, or documenting the correct way to pass the Azure API version with the new CLI.
There was a problem hiding this comment.
Good point, this should be done with configs instead
| | Option | Description | | ||
| | --- | --- | | ||
| | `--config PATH` | Config file to load. Repeatable. | | ||
| | `--input-glob`, `-i` | Glob (or comma-separated globs) matching the rollout shards to aggregate. | |
There was a problem hiding this comment.
cli-commands.mdx — --input-glob / -i shorthand conflict:
It looks like both --input and --input-glob are mapped to -i in the migration table. If both flags share the same shorthand that's ambiguous. Worth confirming these are actually distinct flags with the same short alias, or whether one should be different.
There was a problem hiding this comment.
The docs reflect reality: these are two flags with same short alias. It works because they appear in different commands. Is it ok or should we change the code? If so, how we want to handle it? Rename --input-glob to --input? Use a different short alias for --input-glob? Something else?
There was a problem hiding this comment.
i dont think that a code change is needed --same short alias in different subcommands is standard practice and the CLI handles it correctly.
IMO the (potential) confusion is purely in the migration table, which presents both in a flat list without command context. A small docs fix would help: adding a "Command" column to the table, or splitting it into per-command sections, so it's clear -i means --input under gym eval run and --input-glob under gym eval aggregate.
There was a problem hiding this comment.
So the problem is that same flags appear in multiple commands. E.g. --input is used by 4 commands, --config by 7. I don't think this would be readable if we add command information.
All of them are documented for their respective commands, so maybe it would be cleaner if I just skipped the short aliases in the migration table?
| | Option | Description | | ||
| | --- | --- | | ||
| | `--config PATH` | Config file to load. Repeatable. | | ||
| | `--input-glob`, `-i` | Glob (or comma-separated globs) matching the rollout shards to aggregate. | |
There was a problem hiding this comment.
i dont think that a code change is needed --same short alias in different subcommands is standard practice and the CLI handles it correctly.
IMO the (potential) confusion is purely in the migration table, which presents both in a flat list without command context. A small docs fix would help: adding a "Command" column to the table, or splitting it into per-command sections, so it's clear -i means --input under gym eval run and --input-glob under gym eval aggregate.
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
…confusing Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
d319227 to
06d2008
Compare
|
/ok to test 2e36b50 |
After the CLI was refactor there were several PRs merged that still used the old syntax. Also I think missed some references to old commands in my original PR.