Mayfull commited on
Commit
b8fd866
·
verified ·
1 Parent(s): 1209b4c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +58 -0
README.md CHANGED
@@ -80,6 +80,64 @@ The standard setup used in d1/d2/SPG:
80
  - **Prompt format**: System prompt with CoT reasoning (`<reasoning>...</reasoning><answer>...</answer>`)
81
  - **Evaluation metric**: Cell-level accuracy (fraction of correctly filled empty cells)
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  ### Benchmark Results
84
 
85
  | Method | Sudoku Accuracy | Paper |
 
80
  - **Prompt format**: System prompt with CoT reasoning (`<reasoning>...</reasoning><answer>...</answer>`)
81
  - **Evaluation metric**: Cell-level accuracy (fraction of correctly filled empty cells)
82
 
83
+ ### Model Input Prompt Example
84
+
85
+ The following is the actual prompt format used in d1/d2/SPG for training and evaluation:
86
+
87
+ ```
88
+ [System]
89
+ Please solve the following 4x4 Sudoku puzzle. The puzzle is provided as a 16-character
90
+ string reading left-to-right, top-to-bottom, where '0' represents empty cells.
91
+
92
+ Rules:
93
+ - Fill empty cells with digits 1-4
94
+ - Each row must contain digits 1-4 exactly once
95
+ - Each column must contain digits 1-4 exactly once
96
+ - Each 2x2 box must contain digits 1-4 exactly once
97
+
98
+ Important: Your solution must be a COMPLETE 16-character string with only the digits 1-4,
99
+ representing your final solved grid.
100
+
101
+ Respond in this exact format:
102
+ <reasoning>
103
+ Your step-by-step solving process
104
+ </reasoning>
105
+ <answer>
106
+ [16-character solution string with no spaces or separators]
107
+ </answer>
108
+
109
+ [User]
110
+ Solve the following Sudoku puzzle: 0321003004002100
111
+ ```
112
+
113
+ **Expected model output (example - actual CoT content varies by model):**
114
+
115
+ ```
116
+ <reasoning>
117
+ The puzzle grid is:
118
+ 0 3 | 2 1
119
+ 0 0 | 3 0
120
+ ----+----
121
+ 0 4 | 0 0
122
+ 2 1 | 0 0
123
+
124
+ Row 1: has 3,2,1 → missing 4 → position 0 = 4
125
+ Row 2: has 3 → need 1,2,4
126
+ Col 0: has 2 → need 1 or 4; Box0: has 3 → R1C0=4, so need 1 → position 4 = 1
127
+ Col 1: has 3,4,1 → need 2 → position 5 = 2
128
+ Col 3: has 1 → need 2,3,4; Row2 needs 4 → position 7 = 4
129
+ Row 3: has 4 → need 1,2,3
130
+ Col 2: has 2,3 → need 1 or 4; Row3 needs 1,2,3 → position 10 = 1
131
+ Col 3: has 1,4 → need 2 or 3; Box3: has 1 → position 11 = 2
132
+ Row 4: has 2,1 → need 3,4
133
+ Col 2: has 2,3,1 → need 4 → position 14 = 4
134
+ Col 3: has 1,4,2 → need 3 → position 15 = 3
135
+ </reasoning>
136
+ <answer>
137
+ 4321123434122143
138
+ </answer>
139
+ ```
140
+
141
  ### Benchmark Results
142
 
143
  | Method | Sudoku Accuracy | Paper |