Registry / ai-ml / reasoning-gym

reasoning-gym

JSON →
library0.1.25pypypiunverified

A library of procedural dataset generators for training reasoning models. Current version 0.1.25, with frequent releases (multiple per month). Requires Python >=3.10.

pip install reasoning-gym
INSTALL
IMPORT
SIG · REASONING-GYM
R
reasoning-gym
ai-mlpythonv0.1.25
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

countdown
✓ from reasoning_gym.games.countdown import countdown
✗ from reasoning_gym import countdown
Top-level import does not expose submodules directly.

Import and use a generator from the games submodule.

import reasoning_gym from reasoning_gym.games.countdown import countdown # Create a dataset generator gen = countdown.CountdownGenerator() # Generate n items items = list(gen.generate(num_items=5)) for item in items: print(item)
Debug
Known issues
gotchaSubmodules like games, algebra, etc. are not imported at the top level. You must import from the full path (e.g., reasoning_gym.games.countdown).
fix
Use `from reasoning_gym.games.countdown import countdown` instead of `import reasoning_gym.games.countdown`.
affects: all
deprecatedSome older generator classes have been renamed or moved. Check the CHANGELOG if you get ImportError.
fix
Refer to the latest documentation or GitHub README for the correct import path.
affects: <=0.1.23
Upgrade
Version history
0.1.25latest on PyPI · released Mar 28, 2026
Audit
Dependencies
sympyrequiredused for symbolic math in some generators
numpyrequiredused for array operations
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
reasoning-gym — pip install reasoning-gym · libregistry