Downloads · 30 days
0
MostLime/lcm-chess
lcm-chess is a text generation model from MostLime. Use it when you need the model to write or continue text. It is set up for custom. The card lists the license as mit.
A 29.2M parameter hybrid transformer trained to play chess, built from scratch. LCM uses a novel combination of GQA attention and LIV convolution blocks from Liquid AI's LFM2 architecture, trained with dual NTP + TOP…
Downloads · 30 days
0
Access
Public
Updated Aug 9, 2026
Parameters
29.2M
117 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors117 MB · 100%
From the Hugging Face model README
A 29.2M parameter hybrid transformer trained to play chess, built from scratch. LCM uses a novel combination of GQA attention and LIV convolution blocks from Liquid AI's LFM2 architecture, trained with dual NTP + TOP objectives on ~8 million chess games.
Play against it online here.
Read the blog post about it here.
LCM is a hybrid transformer with two interleaved block types, distributed evenly across 16 layers using a Bresenham algorithm:
Layer pattern: GQA LIV LIV GQA LIV LIV GQA LIV LIV GQA LIV LIV GQA LIV LIV GQA
| Parameter | Value |
|---|---|
| Parameters | 29.2M |
| d_model | 512 |
| Layers | 16 (6 GQA + 10 LIV) |
| Attention heads | 8Q / 2KV |
| Context length | 255 tokens |
| Vocab size | 1,977 |
LCM was trained on a combined dataset of ~7.9M chess games:
Tokenization: Each game is encoded as a sequence of UCI move strings (e2e4, g1f3, etc.), prepended with a POV token (<W> or <B>) indicating the side to predict for.
Training objectives:
Optimizer: Muon (2D params) + AdamW (1D params) + AdamW with LRM-specific weight decay
LCM represents an initial exploration of LFM2-style hybrid architectures for chess as well as TOP to teach the model how to predict future moves. Known limitations:
git clone https://huggingface.co/MostLime/lcm-chess
cd lcm-chess
pip install -r requirements.txt
python generate.py
Play as black:
python generate.py --side black
Custom checkpoint:
python generate.py --checkpoint model.safetensors --temperature 0.8
Requirements: Python 3.10+, PyTorch 2.0+, chess, safetensors
| File | Description |
|---|---|
model.safetensors | Model weights |
vocab.json | UCI move vocabulary (1,977 tokens) |
config.py | Architecture hyperparameters |
model.py | Model implementation |
generate.py | Interactive terminal chess interface |
requirements.txt | Python dependencies |
Built by MostLime