Dataset Viewer
The dataset viewer is not available for this dataset.
The JWT signature verification failed. Check the signing key and the algorithm.
Error code:   JWTInvalidSignature
Exception:    InvalidSignatureError
Message:      Signature verification failed
Traceback:    Traceback (most recent call last):
                File "/src/libs/libapi/src/libapi/jwt_token.py", line 286, in validate_jwt
                  decoded = jwt.decode(
                      jwt=token,
                  ...<2 lines>...
                      options=options,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 368, in decode
                  decoded = self.decode_complete(
                      jwt,
                  ...<8 lines>...
                      leeway=leeway,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 265, in decode_complete
                  decoded = self._jws.decode_complete(
                      jwt,
                  ...<3 lines>...
                      detached_payload=detached_payload,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 270, in decode_complete
                  self._verify_signature(
                  ~~~~~~~~~~~~~~~~~~~~~~^
                      signing_input,
                      ^^^^^^^^^^^^^^
                  ...<4 lines>...
                      options=merged_options,
                      ^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 417, in _verify_signature
                  raise InvalidSignatureError("Signature verification failed")
              jwt.exceptions.InvalidSignatureError: Signature verification failed

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Dataset Card for Lichess Puzzles

Dataset Description

6,057,356 puzzles, rated and tagged. See them in action on Lichess.

This dataset is updated monthly, and was last updated on July 7th, 2026.

Dataset Creation

Generating the initial dataset chess puzzles took more than 50 years of CPU time. We went through 300,000,000 analyzed games from the Lichess database, and re-analyzed interesting positions with Stockfish 12/13/14/15 NNUE at 40 meganodes. The resulting puzzles were then automatically tagged. To determine the rating, each attempt to solve is considered as a Glicko-2 rated game between the player and the puzzle. Finally, player votes refine the tags and define popularity.

Dataset Usage

Using the datasets library:

from datasets import load_dataset
dset = load_dataset("Lichess/chess-puzzles", split="train")

Dataset Details

Dataset Sample

One row of the dataset looks like this:

{'PuzzleId': '000hf',
 'GameId': '71ygsFeE/black#38',
 'FEN': 'r1bqk2r/pp1nbNp1/2p1p2p/8/2BP4/1PN3P1/P3QP1P/3R1RK1 b kq - 0 19',
 'Moves': 'e8f7 e2e6 f7f8 e6f7',
 'Rating': 1575,
 'RatingDeviation': 75,
 'Popularity': 92,
 'NbPlays': 674,
 'Themes': ['mate', 'mateIn2', 'middlegame', 'short'],
 'OpeningTags': ['Horwitz_Defense', 'Horwitz_Defense_Other_variations']}

Dataset Fields

Every row of the dataset contains the following fields:

  • PuzzleId: string, the puzzle's unique identifier. The puzzle would be live at https://lichess.org/training/{PuzzleID}.
  • GameId: string, the unique identifier of the specific game and move the puzzle was extracted from. The game would be accessible at https://lichess.org/{GameId}
  • FEN: string, the FEN string of the position before the opponent makes their move.
  • Moves: string, the solution to the puzzle. All player moves of the solution are "only moves", i.e. playing any other move would considerably worsen the player position. An exception is made for mates in one: there can be several. Any move that checkmates should win the puzzle.
  • Rating: int, the Glicko-2 rating of the puzzle.
  • RatingDeviation: int, the Glicko-2 rating deviation of the puzzle.
  • Popularity: int, a number between 100 (best) and -100 (worst), calculated as 100 * (upvotes - downvotes)/(upvotes + downvotes). Votes are weighted by various factors such as whether the puzzle was solved successfully or the solver's puzzle rating in comparison to the puzzle's.
  • NbPlays: int, the number of times a puzzle was played.
  • Themes: list, a list of puzzle themes.
  • OpeningTags: list, a list of openings. This is only set for puzzles starting before move 20.

Additional Information

Downloads last month
4,450

Models trained or fine-tuned on Lichess/chess-puzzles

Spaces using Lichess/chess-puzzles 7

Collection including Lichess/chess-puzzles