Repository navigation
fix(reasoning_gym): use registered 'syllogism' task in README composite examples - #4542
Merged
yaoyu-33 merged 1 commit intoOct 13, 2026
Merged
Conversation
…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]>
yaoyu-33
approved these changes
Oct 13, 2026
yaoyu-33
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Both README examples now use the registered syllogism task name.
yaoyu-33
enabled auto-merge
October 13, 2026 02:27
Contributor
|
/ok to test 0c606d7 |
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38341672577 |
yaoyu-33
deleted the
qiaochuz/nvb-6805384-reasoning-gym-readme-syllogism
branch
October 13, 2026 03:41
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 issyllogism.Fixes NVBug 6805384. Closes #4488.
Cause
environments/reasoning_gym/README.md:29andresources_servers/reasoning_gym/README.md:21pass--tasks knights_knaves,syllogisms,leg_counting. reasoning-gym registers the task assyllogism(DATASET_NAMEinreasoning_gym/logic/syllogisms.py); no version allowed byreasoning-gym>=0.1.19(checked 0.1.19 and 0.1.25) registers the plural.create_dataset.pycatches the registry error, returns no entries, and exits 1.The typo came in with #113 (resources server README), whose own
create_dataset.pyalready usedsyllogism. #1378 then copied the line into the environment README.Fix
Change
syllogismstosyllogismin both README commands. This is the spelling already used by the script's docstring and itslogiccategory 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.jsonlAfter 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.jsonlThe
resources_servers/reasoning_gymform (python scripts/create_dataset.py ...run from that directory) gives the same 1000 rows.Validation
reasoning_gym, casecomposite(reads--tasksfrom the README): FAIL onf054cf644(Dataset 'syllogisms' not registered), PASS on0c606d710(1000 rows across the three families). Whole case: 4/6 → 5/6. The remaining failure is the download route (prepare.pyload_dataset→ArrowInvalid), which fails the same way on both commits and is tracked separately in NVBug 6805516.pre-commit run --all-files: passedtests/unit_tests/test_fern_docs_links.py: 18 passedCompatibility
None. Docs only.
🤖 Generated with Claude Code