Downloads · 30 days
0
jd0g/chessgpt-board-probes
chessgpt-board-probes is a machine learning model from jd0g. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains linear probes trained to predict chess piece positions from the internal representations of various chess language models.
Downloads · 30 days
0
Access
Public
Updated Aug 29, 2025
Repo size
450 MB
Likes
0
Public
Click a slice to open those files.
.pth450 MB · 100%
From the Hugging Face model README
This repository contains linear probes trained to predict chess piece positions from the internal representations of various chess language models.
These probes were trained as part of interpretability research on chess LLMs, investigating how board-state representations develop across different model architectures and layers.
Linear classifiers trained on activations from models trained on chess games.
tf_lens_{model_name}_chess_piece_probe_layer_{N}.pthtf_lens_large-16-600K_iters_chess_piece_probe_layer_8.pthLinear classifiers trained on activations from models with randomized weights, used as experimental controls.
tf_lens_{model_name}_RANDOM_chess_piece_probe_layer_{N}.pthtf_lens_large-16_RANDOM_chess_piece_probe_layer_8.pthtf_lens_{model_size}-{layers}[-{training_iters}][_RANDOM]_chess_piece_probe_layer_{layer_num}.pth
Where:
model_size: small, medium, largelayers: 16, 24, 36training_iters: 600K_iters, 600k_itersRANDOM: Present for randomized baseline modelslayer_num: 0 to (layers-1)Load probes using PyTorch:
import torch
# Load a trained probe
probe = torch.load('tf_lens_large-16-600K_iters_chess_piece_probe_layer_8.pth')
# The probe is a linear layer: torch.nn.Linear(d_model, 64*13)
# where d_model depends on the model (512/768/1024)
# and 64*13 represents 64 squares × 13 piece classes
This work is part of mechanistic interpretability research on chess language models, investigating:
If you use these probes in your research, please cite the original work:
@misc{chessgpt-board-probes-2024,
title={ChessGPT Board State Probes},
author={[Author Name]},
year={2024},
url={https://huggingface.co/jd0g/chessgpt-board-probes}
}
MIT License - See LICENSE file for details.