Skip to content

Add data aggregations to data preparation - #49

Merged
bxyu-nvidia merged 17 commits into
mainfrom
fsiino/prepare-data-aggregations
Sep 19, 2025
Merged

bxyu-nvidia merged 17 commits into
mainfrom
fsiino/prepare-data-aggregations

Conversation

@fsiino-nvidia

@fsiino-nvidia fsiino-nvidia commented Sep 15, 2025 •

Copy link
Copy Markdown
Contributor

This change updates the train_data_utils via ng_prepare_data to apply data aggregations to the other keys within an example.jsonl. file.

@copy-pr-bot

copy-pr-bot Bot commented Sep 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.

@fsiino-nvidia
fsiino-nvidia force-pushed the fsiino/prepare-data-aggregations branch from 3c7774c to f696eb7 Compare September 15, 2025 20:35
Signed-off-by: Frankie Siino <[email protected]>
@fsiino-nvidia
fsiino-nvidia marked this pull request as ready for review September 15, 2025 21:11
Signed-off-by: Frankie Siino <[email protected]>
@fsiino-nvidia
fsiino-nvidia requested a review from a team as a code owner September 18, 2025 00:00
Comment thread nemo_gym/train_data_utils.py Outdated
self, dataset_config: DatasetConfig
) -> DatasetValidatorState:
state = DatasetValidatorState()
data = []

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.

having data be a list here is going to increase memory consumption like crazy. let's fold the aggregate_other_metrics call into _validate_samples_and_aggregate_metrics_single_sample

Comment thread nemo_gym/dataset_viewer.py Outdated
def get_aggregate_metrics(data: List[DatasetViewerVerifyResponse], raw_lines: List[str]) -> Dict[str, Any]:
def get_aggregate_metrics(raw_lines: List[str]) -> Dict[str, Any]:
dataset_metrics = DatasetMetrics()
line_dicts = []

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.

same comment as below. ideally we would try to save on the memory here

@bxyu-nvidia
bxyu-nvidia merged commit 0c1b1f1 into main Sep 19, 2025
@bxyu-nvidia
bxyu-nvidia deleted the fsiino/prepare-data-aggregations branch September 19, 2025 00:03
abhibha-nvidia pushed a commit that referenced this pull request Sep 28, 2025
This change updates the train_data_utils via `ng_prepare_data` to apply
data aggregations to the other keys within an `example.jsonl`. file.

---------

Signed-off-by: Frankie Siino <[email protected]>
Co-authored-by: bxyu-nvidia <[email protected]>
abhibha-nvidia pushed a commit that referenced this pull request Sep 29, 2025
This change updates the train_data_utils via `ng_prepare_data` to apply
data aggregations to the other keys within an `example.jsonl`. file.

---------

Signed-off-by: Frankie Siino <[email protected]>
Co-authored-by: bxyu-nvidia <[email protected]>
abubakaria56 pushed a commit to abubakaria56/Gym that referenced this pull request Mar 2, 2026
This change updates the train_data_utils via `ng_prepare_data` to apply
data aggregations to the other keys within an `example.jsonl`. file.

---------

Signed-off-by: Frankie Siino <[email protected]>
Co-authored-by: bxyu-nvidia <[email protected]>
abubakaria56 pushed a commit to abubakaria56/Gym that referenced this pull request Mar 2, 2026
This change updates the train_data_utils via `ng_prepare_data` to apply
data aggregations to the other keys within an `example.jsonl`. file.

---------

Signed-off-by: Frankie Siino <[email protected]>
Co-authored-by: bxyu-nvidia <[email protected]>
agronskiy added a commit that referenced this pull request Jun 24, 2026
GDPval-AA v2 lets a model exit early when it cannot complete the task.
Upstream stirrup ships no dedicated abandon tool but supports multiple
finish tools since v0.1.9 (PR #49), so implement abandon as a second
finish tool in gym code rather than patching stirrup:

- ABANDON_FINISH_TOOL (`abandon_task_finish`, reason-only, no paths) in
  finish_tool_coercing.py
- pass finish_tool=[COERCING_FINISH_TOOL, ABANDON_FINISH_TOOL] for gdpval
- advertise the tool in the task + system prompts
- raise stirrup floor to >=0.1.9 (multiple finish tools)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Alex Gronskiy <[email protected]>
agronskiy added a commit that referenced this pull request Jun 26, 2026
GDPval-AA v2 lets a model exit early when it cannot complete the task.
Upstream stirrup ships no dedicated abandon tool but supports multiple
finish tools since v0.1.9 (PR #49), so implement abandon as a second
finish tool in gym code rather than patching stirrup:

- ABANDON_FINISH_TOOL (`abandon_task_finish`, reason-only, no paths) in
  finish_tool_coercing.py
- pass finish_tool=[COERCING_FINISH_TOOL, ABANDON_FINISH_TOOL] for gdpval
- advertise the tool in the task + system prompts
- raise stirrup floor to >=0.1.9 (multiple finish tools)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Alex Gronskiy <[email protected]>
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.

2 participants