qgallouedec HF Staff commited on
Commit
271d852
·
verified ·
1 Parent(s): 7adaf94

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +25 -36
README.md CHANGED
@@ -1,38 +1,27 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: PuzzleId
5
- dtype: large_string
6
- - name: Rating
7
- dtype: uint16
8
- - name: Themes
9
- list: string
10
- - name: prompt
11
- list:
12
- - name: role
13
- dtype: string
14
- - name: content
15
- dtype: string
16
- - name: completion
17
- list:
18
- - name: role
19
- dtype: string
20
- - name: content
21
- dtype: string
22
- splits:
23
- - name: train
24
- num_bytes: 3480534813
25
- num_examples: 6156341
26
- - name: test
27
- num_bytes: 565357
28
- num_examples: 1000
29
- download_size: 3382125658
30
- dataset_size: 3481100170
31
- configs:
32
- - config_name: default
33
- data_files:
34
- - split: train
35
- path: data/train-*
36
- - split: test
37
- path: data/test-*
38
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - trl
4
+ license: cc0-1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ---
6
+
7
+ # Chess Puzzles Dataset
8
+
9
+ ## Summary
10
+
11
+ The Chess Puzzles dataset is a processed version of the [Lichess puzzle database](https://huggingface.co/datasets/Lichess/chess-puzzles): 6 million positions from real games, each with a single winning move, rated by how hard Lichess players found them. Each puzzle is a prompt showing the board, its FEN and the legal moves, and a completion with the first move of the solution in UCI notation.
12
+
13
+ ## Data Structure
14
+
15
+ - **Format**: [Conversational](https://huggingface.co/docs/trl/main/dataset_formats#conversational)
16
+ - **Type**: [Prompt-completion](https://huggingface.co/docs/trl/main/dataset_formats#prompt-completion)
17
+
18
+ Columns:
19
+ - `"prompt"`: The puzzle: the side to move, the board, its FEN and the legal moves.
20
+ - `"completion"`: The first move of the solution, in UCI notation (for example `e2e4`).
21
+ - `"PuzzleId"`, `"Rating"`, `"Themes"`: The Lichess puzzle ID, its rating, and its themes (`mateIn2`, `fork`, ...).
22
+
23
+ The test split holds 1,000 puzzles. Lichess also accepts any move that mates, so a model that answers with another mating move solves the puzzle too.
24
+
25
+ ## Generation script
26
+
27
+ The script used to generate this dataset can be found [here](https://github.com/huggingface/trl/blob/main/examples/datasets/chess_puzzles.py).