Repository navigation
feat(cli): add --model-type selector to gym dataset collate - #1834
Merged
Merged
Conversation
gym dataset collate already exposed --resources-server but not --model-type, so model-dependent data workflows (e.g. train_preparation that generates with a model, or example_validation with a judge) had to pass the model as an internal +config_paths path instead of selecting it by name. Add the existing MODEL_TYPE selector to the collate command's flags, matching env start / eval run. Part of the configuration-friction work (#1205). Signed-off-by: Wojciech Prazuch <[email protected]>
prokotg
approved these changes
Jun 30, 2026
prokotg
left a comment
Contributor
There was a problem hiding this comment.
LGTM,, confirmed offline that config discovery still works with explicit --config setting when config for model exists with the same name in different places
agronskiy
pushed a commit
that referenced
this pull request
Jun 30, 2026
## What
`gym dataset collate` already accepts `--resources-server` but not
`--model-type`. Model-dependent data workflows therefore had to pass the
model as an internal config path:
```bash
gym dataset collate \
--config responses_api_models/vllm_model/configs/vllm_model_for_training.yaml \
--resources-server format_verification/freeform_formatting \
--mode train_preparation --download
```
This adds the existing `MODEL_TYPE` selector to the `dataset collate`
flags so the model can be selected by name, matching `env start` / `eval
run`:
```bash
gym dataset collate \
--resources-server format_verification/freeform_formatting \
--model-type vllm_model \
--mode train_preparation --download
```
## Why
Several `collate` workflows (`train_preparation` that generates with a
model, `example_validation` with a judge) require a model server, which
today forces an internal `+config_paths=[...]` path. Run-by-name parity
here is part of the configuration-friction effort (#1205).
## Changes
- `nemo_gym/cli/main.py`: add `MODEL_TYPE` to the `dataset collate`
command flags (one line; the selector already exists and is shared with
`env start` / `eval run`).
- `tests/unit_tests/test_cli_main.py`: add
`test_collate_model_type_selector` asserting `--resources-server` +
`--model-type` coalesce into the resolved config paths.
## Testing
- `pytest tests/unit_tests/test_cli_main.py` — 120 passed.
- `gym dataset collate --help` now lists `--model-type NAME`.
Signed-off-by: Wojciech Prazuch <[email protected]>
Signed-off-by: Alex Gronskiy <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jul 1, 2026
…ata/collate examples Convert dataset-collate and server-start examples that passed built-in components via internal '--config <parent>/<name>/configs/<flavor>.yaml' paths to the equivalent name selectors (--model-type, --resources-server, --benchmark), matching env start / eval run. The collate '--model-type' usages rely on the selector added in #1834. Left as-is (out of scope): agent configs (no --agent selector yet), multi-config compositions where two configs share one selector type, a judge overlay stored under benchmarks/, and pre-existing references to configs that no longer exist. Part of the configuration-friction work (#1205). Signed-off-by: Wojciech Prazuch <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
gym dataset collatealready accepts--resources-serverbut not--model-type. Model-dependent data workflows therefore had to pass the model as an internal config path:gym dataset collate \ --config responses_api_models/vllm_model/configs/vllm_model_for_training.yaml \ --resources-server format_verification/freeform_formatting \ --mode train_preparation --downloadThis adds the existing
MODEL_TYPEselector to thedataset collateflags so the model can be selected by name, matchingenv start/eval run:gym dataset collate \ --resources-server format_verification/freeform_formatting \ --model-type vllm_model \ --mode train_preparation --downloadWhy
Several
collateworkflows (train_preparationthat generates with a model,example_validationwith a judge) require a model server, which today forces an internal+config_paths=[...]path. Run-by-name parity here is part of the configuration-friction effort (#1205).Changes
nemo_gym/cli/main.py: addMODEL_TYPEto thedataset collatecommand flags (one line; the selector already exists and is shared withenv start/eval run).tests/unit_tests/test_cli_main.py: addtest_collate_model_type_selectorasserting--resources-server+--model-typecoalesce into the resolved config paths.Testing
pytest tests/unit_tests/test_cli_main.py— 120 passed.gym dataset collate --helpnow lists--model-type NAME.