Repository navigation
Labels
core-infraHelpful infrastructure
Description
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 listoutput
Additional context
Add any other context about the problem here.
Example: GPU model
Metadata
Metadata
Assignees
Labels
core-infraHelpful infrastructure
Activity
[-]ng_prepare_data metrics conflict[/-][+]bug: ng_prepare_data metrics conflict[/+]fix: ng prepare data metrics conflict (#738)
fix: ng prepare data metrics conflict (#738)
fix: ng prepare data metrics conflict (#738)
fix: ng prepare data metrics conflict (NVIDIA-NeMo#738)
fix: ng prepare data metrics conflict (NVIDIA-NeMo#738)