Skip to content

fix: address issues in CLI docs and examples - #1809

Merged
marta-sd merged 12 commits into
mainfrom
martas/fix-cli-docs
Jun 29, 2026
Merged

marta-sd merged 12 commits into
mainfrom
martas/fix-cli-docs

Conversation

@marta-sd

@marta-sd marta-sd commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

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.

…' READMEs

Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@marta-sd marta-sd self-assigned this Jun 29, 2026
@copy-pr-bot

copy-pr-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@sephmard
sephmard self-requested a review June 29, 2026 13:24

@sephmard sephmard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, this should be done with configs instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed in 7598ab0

| Option | Description |
| --- | --- |
| `--config PATH` | Config file to load. Repeatable. |
| `--input-glob`, `-i` | Glob (or comma-separated globs) matching the rollout shards to aggregate. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@marta-sd marta-sd Jun 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done in 06d2008

| Option | Description |
| --- | --- |
| `--config PATH` | Config file to load. Repeatable. |
| `--input-glob`, `-i` | Glob (or comma-separated globs) matching the rollout shards to aggregate. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

marta-sd added 2 commits June 29, 2026 18:47
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
…confusing

Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@marta-sd
marta-sd force-pushed the martas/fix-cli-docs branch from d319227 to 06d2008 Compare June 29, 2026 16:47
@marta-sd

Copy link
Copy Markdown
Contributor Author

/ok to test 2e36b50

@marta-sd
marta-sd merged commit 4a6222e into main Jun 29, 2026
29 of 31 checks passed
@marta-sd
marta-sd deleted the martas/fix-cli-docs branch June 29, 2026 16:56

This branch was previously deployed

1 inactive deployment
public — 2e36b500 Deployed Jun 29, 2026 by copy-pr-bot[bot] via release / finalize / notify #523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants