add sliding puzzle environment #54
Open
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.
PR Type
📝 General Information
Description
This pull request introduces a new Reinforcement Learning environment named
NemoRPSlidingPuzzleEnv. This environment implements a sliding puzzle game, inspired by examples from NVIDIA's NeMo-RL framework, and integrates it into the Atropos framework.The environment is designed for multi-turn interactions where a Language Model (LLM) attempts to solve a sliding puzzle of configurable size (e.g., 3x3). The LLM receives the current board state and a list of possible moves (moving the blank tile LEFT, UP, RIGHT, or DOWN) and must output its thinking process within
<think> </think>tags followed by an action number.Key features include:
<think> </think>tag before action output.debugflag for verbose logging of internal game and environment states._SlidingPuzzleGameclass, adapted from NeMo-RL.This environment does not use explicit JSON-based tool calls; instead, the LLM's action is a direct numerical output representing a move.
Related Issues
N/A
Type of Change
N/A
🔖 Environment Snapshot
nemorl_sliding_puzzleExample of a "good" interaction (conceptual):
Example of a "bad" interaction (conceptual):
📄 Citation
It is recommended to add a citation or acknowledgment in the project documentation or relevant code comments, recognizing that the core sliding puzzle logic was adapted from NVIDIA's NeMo-RL examples. For instance:
"The sliding puzzle game logic in this environment is adapted from the examples provided in the NVIDIA NeMo-RL repository (https://github.com/NVIDIA/NeMo-RL)."
✅ Developer & Reviewer Checklist