Skip to content

bug: ng_prepare_data metrics conflict #736

Closed

Description

@cmunley1

Describe the bug

Fresh gym install

 ng_prepare_data     "+config_paths=[responses_api_models/vllm_model/configs/vllm_model.yaml,resources_servers/workplace_assistant/configs/workplace_assistant.yaml]"     +output_dirpath=resources_servers/workplace_assistant/data     +mode=train_preparation     +should_download=true     +data_source=huggingface

gives


Differences found in aggregate metrics:
[
    'Missing key in new metrics: name',
    'Missing key in new metrics: type',
    'Missing key in new metrics: jsonl_fpath',
    'Missing key in new metrics: num_repeats',
    'Missing key in new metrics: gitlab_identifier',
    'Missing key in new metrics: huggingface_identifier',
    'Missing key in new metrics: license',
]
Differences found in aggregate metrics:
[
    'Missing key in new metrics: name',
    'Missing key in new metrics: type',
    'Missing key in new metrics: jsonl_fpath',
    'Missing key in new metrics: num_repeats',
    'Missing key in new metrics: gitlab_identifier',
    'Missing key in new metrics: huggingface_identifier',
    'Missing key in new metrics: license',
]
Traceback (most recent call last):
  File "/home/shadeform/trl/.venv/bin/ng_prepare_data", line 10, in <module>
    sys.exit(prepare_data())
             ^^^^^^^^^^^^^^
  File "/home/shadeform/trl/Gym/nemo_gym/train_data_utils.py", line 804, in prepare_data
    data_processor.run(global_config_dict)
  File "/home/shadeform/trl/Gym/nemo_gym/train_data_utils.py", line 338, in run
    self.collate_samples(config, server_instance_configs, dataset_type_to_aggregate_metrics)
  File "/home/shadeform/trl/Gym/nemo_gym/train_data_utils.py", line 758, in collate_samples
    raise ValueError(f"""
ValueError:
Found conflicting aggregate metrics that need to be corrected:
- resources_servers/workplace_assistant/data/train_metrics_conflict.json
- resources_servers/workplace_assistant/data/validation_metrics_conflict.json

This could be due to a change in how metrics are calculated, leading to outdated metrics. Try deleting the below file(s) and rerunning data preparation:
- resources_servers/workplace_assistant/data/train_metrics.json
- resources_servers/workplace_assistant/data/validation_metrics.json

 diff resources_servers/workplace_assistant/data/train_metrics.json resources_servers/workplace_assistant/data/train_metrics_conflict.json
2,11d1
<     "name": "train",
<     "type": "train",
<     "jsonl_fpath": "resources_servers/workplace_assistant/data/train.jsonl",
<     "num_repeats": 1,
<     "gitlab_identifier": null,
<     "huggingface_identifier": {
<         "repo_id": "nvidia/Nemotron-RL-agent-workplace_assistant",
<         "artifact_fpath": "train.jsonl"
<     },
<     "license": "Apache 2.0",

Steps/Code to reproduce bug

Please list minimal steps or code snippet for us to be able to reproduce the bug.

A helpful guide on on how to craft a minimal bug report http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports.

Expected behavior

A clear and concise description of what you expected to happen.

Configs
NeMo Gym (e.g. via ng_dump_config) or RL training framework config files.

Environment details

Otherwise, please provide:

  • OS version
  • Python version
  • uv pip list output

Additional context

Add any other context about the problem here.
Example: GPU model

Activity

  1. added
    core-infra
    on Feb 19, 2026
  2. added theissue type on Feb 19, 2026
  3. changed the title [-]ng_prepare_data metrics conflict[/-] [+]bug: ng_prepare_data metrics conflict[/+] on Feb 19, 2026
  4. linked a pull request that will close this issuefix: ng prepare data metrics conflict #738on Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

core-infra

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions