Datasets:
messages listlengths 32 64 | tools stringclasses 1
value |
|---|---|
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
[
{
"role": "user",
"content": "You are playing Sudoku. Fill every empty cell (shown as '.') of the 9x9 grid with a digit from 1 to 9 so that each row, each column and each 3x3 box contains every digit exactly once.\n\nUse the tool `place` to fill one cell at a time. Rows and columns are numbered from 1 to 9.... | [{"type": "function", "function": {"name": "place", "description": "Place a number in an empty cell of the Sudoku grid.", "parameters": {"type": "object", "properties": {"row": {"type": "integer", "description": "Row number (1-9)."}, "col": {"type": "integer", "description": "Column number (1-9)."}, "number": {"type": ... |
Sudoku tool-call SFT
1,000 solved Sudoku games written as tool-calling conversations, for a short SFT warmup before training with GRPO on the OpenEnv Sudoku environment. Used in the OpenEnv Sudoku tutorial to train openenv/Qwen3-1.7B-Sudoku-SFT.
A solver played every game against the TextArena Sudoku-v0 environment from OpenEnv 0.10.0, run in-process, on boards from TextArena's own generator with 50, 55, 60 or 65 clues (15 to 31 empty cells). It only uses single candidates: the one digit a cell can take, or the one cell a digit can take in a row, column or box. Boards that need more than that are skipped, so every reasoning step can be checked on the grid.
messages: the user prompt (the rules plus the starting grid), then one assistant turn per move, with a shortreasoning_contentand a call to theplacetool, each followed by atoolmessage with the updated grid. The last assistant turn says the puzzle is solved.tools: theplacetool schema, as a JSON string.
This is the format TRL's GRPOTrainer renders with environment_factory, so a model trained on it plays the same way during RL. Train with SFTTrainer and assistant_only_loss=True. Games are 8k to 15k tokens long, since every tool result carries the whole grid.
Games have 24 moves on average, and the reasoning is about 45 words per move. None of the boards appears in the evaluation puzzles of the tutorial.
Regenerate
uv run generate_sft_data.py --games 1000 --push-to-hub <user>/sudoku-tool-calls-sft
The script is in OpenEnv examples/sudoku.
- Downloads last month
- 56