Repository navigation
Description
Queue rank 32/48 · Difficulty 3/5 · Status on main: not_fixed
NVBug: https://nvbugspro.nvidia.com/bug/6847514 · Priority: Unprioritized · ARB: Ananth Subramaniam
GitHub: none found (no PR/issue on NVIDIA-NeMo/Gym); JIRA sync NMGYM-73
Summary
The ns_tools README documents regenerating data/compmath_prepared.jsonl with prepare_dataset.py, but that command fails at import before reading any input: ModuleNotFoundError: No module named 'transformers'. resources_servers/ns_tools/requirements.txt installs nemo-gym[dev] and pinned nemo-skills-tools@da85a881, neither of which declares transformers. A second defect (bug-comment-evidenced, not re-verified): even with transformers present, the pinned Skills tools package may not ship the prompt YAMLs, so load_config('generic/math') silently falls back to the raw problem.
Reproduction
From an installed ns_tools checkout (no GPU, no dataset):
resources_servers/ns_tools/.venv/bin/python resources_servers/ns_tools/prepare_dataset.py --help
Exits 1 at prepare_dataset.py:47 → nemo_skills/prompt/utils.py:25 → from transformers import AutoTokenizer.
Root cause
prepare_dataset.py:47 does from nemo_skills.prompt.utils import load_config; that upstream module imports transformers.AutoTokenizer at module scope. transformers is an undeclared transitive dependency. Per the bug comment (not re-verified here): nemo-skills-tools@da85a881 omits nemo_skills/prompt/config/generic/*.yaml (no MANIFEST.in under tools/), so load_config raises and lines 201-203 log "Could not load prompt config … Using raw problem" (warning at 202; 200 is the success return).
Status on main (not_fixed)
HEAD 75bb53e. Defect line still present at prepare_dataset.py:47. requirements.txt declares no transformers and is unchanged since the bug revision 4b30acc (git log 4b30acc3..HEAD empty). The two ns_tools commits since (016bb6b, b4d3fbc) touch neither the import nor deps. Silent-fallback except still at prepare_dataset.py:201-203. Bug comment confirms it reproduces on rc1 (efe58ab) and main.
Proposed fix
Primary (Gym-side): add transformers to resources_servers/ns_tools/requirements.txt, or make the import lazy. Secondary (the real acceptance gate): make load_config('generic/math') succeed — bump the Skills pin to a revision packaging the prompt YAMLs, or vendor the generic/math template, and change the silent except to fail loudly. Add a unit test asserting prepare_dataset.py --help imports and that output messages carry the generic/math template.
Validation
Re-run QA testcases/environments/ns_tools.py case "README preparation preserves all 256 original comp-math tasks using pinned Skills tools": it asserts no "Could not load prompt config" warning (lines 98-99) and that user messages start with MATH_PROMPT_PREFIX (lines 108-109). Exit-0 alone is insufficient.
Triage
Difficulty 3/5 — adding transformers is trivial, but passing the QA gate also needs the upstream Skills prompt-YAML packaging resolved (bump pin or vendor the template). Needs GPU/model: no.
Reviewer notes
Verifier confirmed not_fixed (prepare_dataset.py:47 live, no transformers declared) and difficulty 3. Corrections: the QA case name is the full ns_tools.py:71 string "…comp-math tasks using pinned Skills tools"; the silent-fallback lines are 201-203 (warning at 202, 200 is the success return), not 200-201; and Summary/Root-cause now flag the prompt-YAML packaging defect as bug-comment-evidenced, not confirmed fact.
Activity
fix(ns_tools): apply the generic/math prompt in prepare_dataset.py
fix(ns_tools): apply the generic/math prompt in prepare_dataset.py (N…