Skip to content

VLLMModel enable reasoning parsing - #129

Merged
bxyu-nvidia merged 12 commits into
mainfrom
bxyu/vllmmodel-enable-reasoning-parsing
Oct 15, 2025
Merged

bxyu-nvidia merged 12 commits into
mainfrom
bxyu/vllmmodel-enable-reasoning-parsing

Conversation

@bxyu-nvidia

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Oct 11, 2025

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
@bxyu-nvidia
bxyu-nvidia marked this pull request as ready for review October 15, 2025 16:36
@copy-pr-bot

copy-pr-bot Bot commented Oct 15, 2025

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.

@bxyu-nvidia bxyu-nvidia changed the title Bxyu/vllmmodel enable reasoning parsing VLLMModel enable reasoning parsing Oct 15, 2025
@bxyu-nvidia
bxyu-nvidia merged commit 1a1248c into main Oct 15, 2025
@bxyu-nvidia
bxyu-nvidia deleted the bxyu/vllmmodel-enable-reasoning-parsing branch October 15, 2025 16:40
bxyu-nvidia added a commit that referenced this pull request Oct 21, 2025
sidnarayanan added a commit that referenced this pull request Oct 29, 2025
* Instantiate one httpx async client per unique connection / base url (#75)

Signed-off-by: Brian Yu <[email protected]>

* handle model calling failures, e.g. max token limits

* Swap async http backend from httpx to aiohttp; various server infra improvements (#77)

Signed-off-by: Brian Yu <[email protected]>

* Remove unnecessary GHA CI and add uv config to enable dependency scanning (#66)

Remove unnecessary Github Action CI and add uv config to enable
dependency scanning

* This project's current CI doesn't need to build and test through a
docker image. So, deleting the unnecssary CI Dockerfile and Github
Actions template
* Adding `managed = true` under `[uv.tool]` to allow for repo dependency
scanning

---------

Signed-off-by: Charlie Truong <[email protected]>

* VLLMModel fix whitespace stripping and unwarranted spaces (#70)

Signed-off-by: Brian Yu <[email protected]>

* gracefully handle vllm failures

* check in metrics

* Fix aggregation rounding in ng_prepare_data (#76)

This implements a simple rounding rule for `AvgMinMax` floats in order
to keep example_metrics consistent.
For background, the addition of median and std dev did not assign a
ceiling for decimal places, so trivial value differences such as `1.2 !=
1.200002` caused ValueErrors.

---------

Signed-off-by: Frankie Siino <[email protected]>

* working on returning a list of transitions

* Add profiling; improve rollout collection usability and efficiency; add uvicorn logging filtering (#79)

Signed-off-by: Brian Yu <[email protected]>

* break if over token limit

* log total length when response call fails

* bbh

* update_agent_state

* EnvStateMessage support

* support collapsing env states during rollout

* fix import?

* bbh data prep

* set default factory

* Delete .github/ISSUE_TEMPLATE directory (#87)

From now on, any Github repo under the Nvidia-NeMo org will use the
default Issues system / behavior
(unless overwritten i.e. in this case the individual repo would have a
.github/ISSUE_TEMPLATE folder in the repo itself, effectively overriding
the default behavior coming from the NVIDIA-NeMo/.github repo [which
establishes the default system]).

Default behavior for Issues creation now is :
- There is a Bug Report issue
- There is a Feature Request issue
- Blank issues are NOT allowed to be created

* wip

* drop secrets

* Add support for `num_repeats` (#99)

# Add `num_repeats` hyperparameter for dataset repetition

## Summary
Adds optional `num_repeats` parameter to `DatasetConfig` that allows
repeating each dataset sample during training data processing and
preparation.

## Changes
- **Config**: Added `num_repeats: Optional[int] = Field(default=None,
ge=1)` to `DatasetConfig`
- **Processing**: Modified `_iter_dataset_lines()` to repeat each line
`num_repeats` times (defaults to 1)
- **Integration**: Updated data validation, metrics aggregation, and
preparation workflows to handle repeated samples
- **Documentation**: Updated README with usage examples

## Usage
```yaml
datasets:
  - name: train
    type: train
    jsonl_fpath: data/train.jsonl
    num_repeats: 3  # Each sample appears 3 times during processing
```

## Testing
Added comprehensive unit tests covering:
- Configuration validation (accepts positive integers, rejects invalid
values)
- Data iteration with different repeat values
- Metrics aggregation with repeated samples
- Data preparation workflow integration

All existing functionality preserved with backward compatibility
(defaults to 1 repetition).

---------

Signed-off-by: Mahan Fathi <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Co-authored-by: Brian Yu <[email protected]>

* Comp coding fixes; lots of misc infra items (#90)

Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Khushi Bhardwaj <[email protected]>
Co-authored-by: Khushi Bhardwaj <[email protected]>

* chore: Update cherry-pick workflow to use v0.63.0 (#108)

* Make Workbench stateful and sign commits  (#110)

Signed-off-by: Abhibha Gupta <[email protected]>

* better max_seq_len check, more error handling

* Clean deprecated Comp coding (#106)

Signed-off-by: Brian Yu <[email protected]>

* logging etc

* await json()

* bunch of fixes for EnvStateMessage hiding and Qwen3

* log max seq len too

* set max_steps in config

* update no-tool-call message

* actually collapse

* only collapse env state messages after  successful transitions

* allow postprocessing empty message

* Bxyu/misc infra 20251001 (#116)

Signed-off-by: Brian Yu <[email protected]>

* Resource Server Organization (#80)

This PR adds a pre-commit hook that scans the resource_server
directories and populates/updates the designated table in the readme
with the pertinent information.

Addresses item 1 from #81

---------

Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Co-authored-by: Brian Yu <[email protected]>

* Add metrics conflict error FAQ to Readme (#93)

Signed-off-by: Frankie Siino <[email protected]>

* Azure OpenAI model support (#112)

Signed-off-by: slikhite-1 <[email protected]>
Co-authored-by: slikhite-1 <[email protected]>

* Use python env for precommit hook; alter files trigger (#125)

This change uses python instead of bash system language to get around
the `python: command not found` error when using vs code source control
gui.

Signed-off-by: Frankie Siino <[email protected]>

* retry seed session if it fails

* Update issue templates (#152)

Signed-off-by: Brian Yu <[email protected]>

* Add back Nemo Framework templates (#153)

Signed-off-by: Brian Yu <[email protected]>

* Fix Workbench invalid function name (#167)

Signed-off-by: Brian Yu <[email protected]>

* VLLMModel enable reasoning parsing (#129)

Signed-off-by: Brian Yu <[email protected]>

* raise reset response for status

* Add Attributions for Third Party Softwares (#154)

Add Attributions for Third Party Softwares.

---------

Signed-off-by: banghuaz <[email protected]>

* Fix infinite OpenAI endpoint query; misc improvements (#171)

Signed-off-by: Brian Yu <[email protected]>

* set domain; pass cookies

* domain should be coding

* proper gsm8k train/val split

* clean up bbh stuff

---------

Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Mahan Fathi <[email protected]>
Signed-off-by: Khushi Bhardwaj <[email protected]>
Signed-off-by: Abhibha Gupta <[email protected]>
Signed-off-by: slikhite-1 <[email protected]>
Signed-off-by: banghuaz <[email protected]>
Co-authored-by: bxyu-nvidia <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Co-authored-by: fsiino-nvidia <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
Co-authored-by: Mahan <[email protected]>
Co-authored-by: Khushi Bhardwaj <[email protected]>
Co-authored-by: abhibha-nvidia <[email protected]>
Co-authored-by: slikhite-1 <[email protected]>
Co-authored-by: banghuaz-nvidia <[email protected]>
sidnarayanan added a commit that referenced this pull request Jan 7, 2026
* Instantiate one httpx async client per unique connection / base url (#75)

Signed-off-by: Brian Yu <[email protected]>

* handle model calling failures, e.g. max token limits

* Swap async http backend from httpx to aiohttp; various server infra improvements (#77)

Signed-off-by: Brian Yu <[email protected]>

* Remove unnecessary GHA CI and add uv config to enable dependency scanning (#66)

Remove unnecessary Github Action CI and add uv config to enable
dependency scanning

* This project's current CI doesn't need to build and test through a
docker image. So, deleting the unnecssary CI Dockerfile and Github
Actions template
* Adding `managed = true` under `[uv.tool]` to allow for repo dependency
scanning

---------

Signed-off-by: Charlie Truong <[email protected]>

* VLLMModel fix whitespace stripping and unwarranted spaces (#70)

Signed-off-by: Brian Yu <[email protected]>

* gracefully handle vllm failures

* check in metrics

* Fix aggregation rounding in ng_prepare_data (#76)

This implements a simple rounding rule for `AvgMinMax` floats in order
to keep example_metrics consistent.
For background, the addition of median and std dev did not assign a
ceiling for decimal places, so trivial value differences such as `1.2 !=
1.200002` caused ValueErrors.

---------

Signed-off-by: Frankie Siino <[email protected]>

* working on returning a list of transitions

* Add profiling; improve rollout collection usability and efficiency; add uvicorn logging filtering (#79)

Signed-off-by: Brian Yu <[email protected]>

* break if over token limit

* log total length when response call fails

* bbh

* update_agent_state

* EnvStateMessage support

* support collapsing env states during rollout

* fix import?

* bbh data prep

* set default factory

* Delete .github/ISSUE_TEMPLATE directory (#87)

From now on, any Github repo under the Nvidia-NeMo org will use the
default Issues system / behavior
(unless overwritten i.e. in this case the individual repo would have a
.github/ISSUE_TEMPLATE folder in the repo itself, effectively overriding
the default behavior coming from the NVIDIA-NeMo/.github repo [which
establishes the default system]).

Default behavior for Issues creation now is :
- There is a Bug Report issue
- There is a Feature Request issue
- Blank issues are NOT allowed to be created

* wip

* drop secrets

* Add support for `num_repeats` (#99)

# Add `num_repeats` hyperparameter for dataset repetition

## Summary
Adds optional `num_repeats` parameter to `DatasetConfig` that allows
repeating each dataset sample during training data processing and
preparation.

## Changes
- **Config**: Added `num_repeats: Optional[int] = Field(default=None,
ge=1)` to `DatasetConfig`
- **Processing**: Modified `_iter_dataset_lines()` to repeat each line
`num_repeats` times (defaults to 1)
- **Integration**: Updated data validation, metrics aggregation, and
preparation workflows to handle repeated samples
- **Documentation**: Updated README with usage examples

## Usage
```yaml
datasets:
  - name: train
    type: train
    jsonl_fpath: data/train.jsonl
    num_repeats: 3  # Each sample appears 3 times during processing
```

## Testing
Added comprehensive unit tests covering:
- Configuration validation (accepts positive integers, rejects invalid
values)
- Data iteration with different repeat values
- Metrics aggregation with repeated samples
- Data preparation workflow integration

All existing functionality preserved with backward compatibility
(defaults to 1 repetition).

---------

Signed-off-by: Mahan Fathi <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Co-authored-by: Brian Yu <[email protected]>

* Comp coding fixes; lots of misc infra items (#90)

Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Khushi Bhardwaj <[email protected]>
Co-authored-by: Khushi Bhardwaj <[email protected]>

* chore: Update cherry-pick workflow to use v0.63.0 (#108)

* Make Workbench stateful and sign commits  (#110)

Signed-off-by: Abhibha Gupta <[email protected]>

* better max_seq_len check, more error handling

* Clean deprecated Comp coding (#106)

Signed-off-by: Brian Yu <[email protected]>

* logging etc

* await json()

* bunch of fixes for EnvStateMessage hiding and Qwen3

* log max seq len too

* set max_steps in config

* update no-tool-call message

* actually collapse

* only collapse env state messages after  successful transitions

* allow postprocessing empty message

* Bxyu/misc infra 20251001 (#116)

Signed-off-by: Brian Yu <[email protected]>

* Resource Server Organization (#80)

This PR adds a pre-commit hook that scans the resource_server
directories and populates/updates the designated table in the readme
with the pertinent information.

Addresses item 1 from #81

---------

Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Brian Yu <[email protected]>
Co-authored-by: Brian Yu <[email protected]>

* Add metrics conflict error FAQ to Readme (#93)

Signed-off-by: Frankie Siino <[email protected]>

* Azure OpenAI model support (#112)

Signed-off-by: slikhite-1 <[email protected]>
Co-authored-by: slikhite-1 <[email protected]>

* Use python env for precommit hook; alter files trigger (#125)

This change uses python instead of bash system language to get around
the `python: command not found` error when using vs code source control
gui.

Signed-off-by: Frankie Siino <[email protected]>

* retry seed session if it fails

* Update issue templates (#152)

Signed-off-by: Brian Yu <[email protected]>

* Add back Nemo Framework templates (#153)

Signed-off-by: Brian Yu <[email protected]>

* Fix Workbench invalid function name (#167)

Signed-off-by: Brian Yu <[email protected]>

* VLLMModel enable reasoning parsing (#129)

Signed-off-by: Brian Yu <[email protected]>

* raise reset response for status

* Add Attributions for Third Party Softwares (#154)

Add Attributions for Third Party Softwares.

---------

Signed-off-by: banghuaz <[email protected]>

* Fix infinite OpenAI endpoint query; misc improvements (#171)

Signed-off-by: Brian Yu <[email protected]>

* set domain; pass cookies

* domain should be coding

* proper gsm8k train/val split

* clean up bbh stuff

---------

Signed-off-by: Brian Yu <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Mahan Fathi <[email protected]>
Signed-off-by: Khushi Bhardwaj <[email protected]>
Signed-off-by: Abhibha Gupta <[email protected]>
Signed-off-by: slikhite-1 <[email protected]>
Signed-off-by: banghuaz <[email protected]>
Co-authored-by: bxyu-nvidia <[email protected]>
Co-authored-by: Charlie Truong <[email protected]>
Co-authored-by: fsiino-nvidia <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
Co-authored-by: Mahan <[email protected]>
Co-authored-by: Khushi Bhardwaj <[email protected]>
Co-authored-by: abhibha-nvidia <[email protected]>
Co-authored-by: slikhite-1 <[email protected]>
Co-authored-by: banghuaz-nvidia <[email protected]>

Signed-off-by: Siddharth Narayanan <[email protected]>
abubakaria56 pushed a commit to abubakaria56/Gym that referenced this pull request Mar 2, 2026
abubakaria56 pushed a commit to abubakaria56/Gym that referenced this pull request Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant