Nano Chess: 20M, 2.6B tokens, 2k BPE - SFT
Final supervised fine-tuning checkpoint from run sft_local-20m-2p6b-bpe-2k-sft_dba08f7c_seed1 (seed 1).
2p6b refers to the base model's pretraining token budget, not the parameter count or SFT token count.
- Base model: nano-chess-20m-2p6b-bpe-2k-pretrain.
- 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; same vocabulary as the base model.
- SFT: multi-turn chess reasoning,
trajectory_sep_no_labels, prompt masking, 3 epochs, learning rate 3e-4. - Context length: 3,072 tokens; YaRN scaling factor 3 from the base context of 1,024.
- RoPE initialization: fixed.
- Stored weight precision: float32, unchanged from the original checkpoint.
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-sft"
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 padding token is <eos>.
The repository contains the original model weights, model/generation configs, and tokenizer files. Optimizer states, training logs, and local corpus manifests are excluded.