Nano Chess: 20M, 2.6B tokens, 2k BPE - Pretraining
Final pretrained chess checkpoint from run pretrain_20m-2p6b-bpe-2k_48d0714a_seed1 (seed 1).
2p6b refers to the pretraining token budget, not the parameter count.
- Architecture: Qwen3 causal language model; 6 layers, hidden size 512, 4 attention heads.
- Parameters: 21,479,424 with tied input/output embeddings.
- Tokenizer: self-contained byte-pair encoding (BPE), vocabulary size 2,000.
- Configured pretraining token budget: 2,641,541,000.
- Context length: 1,024 tokens.
- Stored weight precision: bfloat16, unchanged from the original checkpoint.
- Companion SFT model: nano-chess-20m-2p6b-bpe-2k-sft.
Loading
The checkpoint was saved with Transformers 4.57.1. Use a Transformers version with Qwen3 support.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "jtuyls/nano-chess-20m-2p6b-bpe-2k-pretrain"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(repo_id, dtype="auto")
This is a chess-domain model, not a general-purpose chat model. Use its bundled BPE tokenizer rather than the original LAN token IDs. Special tokens include <T>, <sep>, </T>, <call_env>, <bos>, and <eos>.
The repository contains the original model weights, generation config, and tokenizer files. For Hugging Face compatibility, config.json sets architectures to ["Qwen3ForCausalLM"]; all other model config values are unchanged. Optimizer states, training logs, and local corpus manifests are excluded. The pretrained safetensors file also stores the tied output-head tensor, so its stored tensor element count exceeds the unique model parameter count.