Skip to content

fix(reasoning_gym): use registered 'syllogism' task in README composite examples - #4542

Merged
yaoyu-33 merged 1 commit into
mainfrom
qiaochuz/nvb-6805384-reasoning-gym-readme-syllogism
Oct 13, 2026
Merged

yaoyu-33 merged 1 commit into
mainfrom
qiaochuz/nvb-6805384-reasoning-gym-readme-syllogism

Conversation

@qiaochuz-nv

@qiaochuz-nv qiaochuz-nv commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

The "Multiple tasks (composite)" dataset command in both reasoning_gym READMEs now works. Before this change it exited 1 without generating anything, because it asked for a task named syllogisms, which reasoning-gym does not register. The registered name is syllogism.

Fixes NVBug 6805384. Closes #4488.

Cause

environments/reasoning_gym/README.md:29 and resources_servers/reasoning_gym/README.md:21 pass --tasks knights_knaves,syllogisms,leg_counting. reasoning-gym registers the task as syllogism (DATASET_NAME in reasoning_gym/logic/syllogisms.py); no version allowed by reasoning-gym>=0.1.19 (checked 0.1.19 and 0.1.25) registers the plural. create_dataset.py catches the registry error, returns no entries, and exits 1.

The typo came in with #113 (resources server README), whose own create_dataset.py already used syllogism. #1378 then copied the line into the environment README.

Fix

Change syllogisms to syllogism in both README commands. This is the spelling already used by the script's docstring and its logic category table. Docs only; no code change.

Before the fix

Gym f054cf644 (main):

uv run --no-project --with 'reasoning-gym>=0.1.19' python environments/reasoning_gym/scripts/create_dataset.py \
    --tasks knights_knaves,syllogisms,leg_counting --size 1000 --output environments/reasoning_gym/data/train_composite.jsonl
Creating composite dataset with 3 tasks: knights_knaves, syllogisms, leg_counting
Total samples: 1000, seed: 42
Error creating composite dataset: Dataset 'syllogisms' not registered
Error: No entries generated
(exit 1)

After the fix

Gym 0c606d710 (this branch), with the README's corrected command:

uv run --no-project --with 'reasoning-gym>=0.1.19' python environments/reasoning_gym/scripts/create_dataset.py \
    --tasks knights_knaves,syllogism,leg_counting --size 1000 --output environments/reasoning_gym/data/train_composite.jsonl
Creating composite dataset with 3 tasks: knights_knaves, syllogism, leg_counting
Total samples: 1000, seed: 42

Generated 1000 total entries
Task distribution:
  knights_knaves: 344
  leg_counting: 311
  syllogism: 345
(exit 0)

The resources_servers/reasoning_gym form (python scripts/create_dataset.py ... run from that directory) gives the same 1000 rows.

Validation

  • QA testcase reasoning_gym, case composite (reads --tasks from the README): FAIL on f054cf644 (Dataset 'syllogisms' not registered), PASS on 0c606d710 (1000 rows across the three families). Whole case: 4/6 → 5/6. The remaining failure is the download route (prepare.py load_dataset → ArrowInvalid), which fails the same way on both commits and is tracked separately in NVBug 6805516.
  • pre-commit run --all-files: passed
  • tests/unit_tests/test_fern_docs_links.py: 18 passed
  • Rollout evidence: N/A, docs-only change (dataset generation command verified above)

Compatibility

None. Docs only.

🤖 Generated with Claude Code

…te examples

The composite dataset examples in both reasoning_gym READMEs passed
'syllogisms', which reasoning-gym does not register, so the documented
command exited 1 with "Dataset 'syllogisms' not registered".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: qiaochuz <[email protected]>
@qiaochuz-nv qiaochuz-nv added QA_fix Fix implemented by a QA team member docs Documentation-only updates or documentation debt area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer complexity:low Localized change in one scope with a small, straightforward review surface labels Oct 12, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 12, 2026

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.

@yaoyu-33 yaoyu-33 left a comment

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.

LGTM. Both README examples now use the registered syllogism task name.

@yaoyu-33
yaoyu-33 enabled auto-merge October 13, 2026 02:27
@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test 0c606d7

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38341672577

Merged via the queue into main with commit 57cfd51 Oct 13, 2026
53 of 55 checks passed
@yaoyu-33
yaoyu-33 deleted the qiaochuz/nvb-6805384-reasoning-gym-readme-syllogism branch October 13, 2026 03:41

This branch was previously deployed

1 inactive deployment
public — 0c606d71 Deployed Oct 13, 2026 by copy-pr-bot[bot] via release / finalize / notify #5139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:low Localized change in one scope with a small, straightforward review surface docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer QA_fix Fix implemented by a QA team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NVBug 6805384] Fix README composite command: syllogisms -> syllogism

2 participants