Maxime Labonne has introduced LFM2.5-230M-Chess, a compact chess engine with a language model interface that leverages the efficiency of Liquid AI's architecture. The model is fine-tuned from LFM2.5-230M-Base, a smaller sibling of the on-device models previously analyzed by AlexTech.ai, which brought high token speeds to smartphones.
Distillation and Architecture
The engine is built using Stockfish distillation, a process where the model learns to mimic the outputs of a state-of-the-art engine. According to Labonne, every possible chess move is represented as a single token in the vocabulary, with 2,106 added tokens. The model processes board positions as a fixed 80-token prompt, which encodes the FEN (Forsyth-Edwards Notation), including square occupancy, castling rights, and move history.
The inference process occurs in two short forward passes: first, the model predicts its own win probability (using 64 value tokens); second, it predicts the best move. To ensure validity, the host masks the logits to only allow legal moves, preventing the model from ever playing an illegal move.
Performance and Search
Performance varies significantly based on the inference method. Labonne reports that with a shallow depth-3 search implemented on top, the model reaches roughly 2004 Elo. In contrast, using a raw one-pass policy without search results in an estimated 1500 Elo.
This approach mirrors the logic of other compact chess models. For instance, Joshua Gao's Athena, a 270M parameter transformer, reached an Elo of 1959 by distilling Stockfish 17 across billions of positions. While Athena focused on eliminating search entirely through dedicated mating bins to avoid "indecisiveness," LFM2.5-230M-Chess demonstrates how combining a small distilled policy with minimal test-time search can push performance past the 2000 Elo mark.
The model is available on Hugging Face, including an ONNX version for optimized deployment, and can be tested via the ChessLFM Space.

No comments yet. Be the first!