Skip to content

feat: automatic dataset download at evaluation time #1353

Description

@cwing-nvidia

Problem

When a user runs an evaluation, the dataset should be available without a separate manual step. Today, users must run ng_prepare_data with +should_download=true before they can evaluate. For evaluation workflows, this is unnecessary friction — the run command should handle it transparently.

Proposal

When gym run (or ng_collect_rollouts) is invoked and the dataset JSONL file is not present locally, Gym should automatically download it from the configured registry (HuggingFace or GitLab) based on the dataset config's huggingface_identifier or gitlab_identifier.

Expected behavior

  1. User runs gym run --env vals --agent simple_agent --model Qwen/Qwen3-30B-A3B
  2. Gym checks whether the dataset JSONL exists at the configured jsonl_fpath
  3. If missing, downloads from the registry specified in the dataset config
  4. Proceeds with evaluation

No separate ng_prepare_data step required for evaluation.

Acceptance Criteria

  • gym run (or equivalent) automatically downloads missing datasets before evaluation
  • Download source is determined from the dataset config (huggingface_identifier or gitlab_identifier)
  • Downloaded datasets are cached locally so subsequent runs don't re-download
  • Clear progress output during download (dataset name, source, size)
  • ng_prepare_data remains available as a standalone command for training data preparation and PR validation workflows

Related

Part of #1338 (epic: dataset preparation)

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions