A chess-tuned System One option scorer: legal moves stay in python-chess, and a one-pass model (jevlike-shaped Choice over UCI candidates) ranks them.
This is not TypeSafe Jev, not OpenJev, and not Elo-tested. The playable default is chessjev-minilm-v1 when the checkpoint is present, then the small chessjev-byte-v1 baseline, then a local heuristic.
Weights: gopalanj/chessjev-minilm-v1
Code license: MIT. MiniLM encoder weights inherit Apache-2.0.
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
# optional: brew install stockfish
hf download gopalanj/chessjev-minilm-v1 --local-dir checkpoints/chessjev-minilm-v1
PYTHONPATH=src python -m unittest discover -s tests -v
PYTHONPATH=src uvicorn chess_jev.server:app --host 127.0.0.1 --port 8765Open http://127.0.0.1:8765. Optional CHESS_JEV_SCORER=minilm|chessjev|heuristic|nimble|typesafe. API keys stay on the server.
# 1) Stockfish labels (~3k positions, ~3 min)
PYTHONPATH=src python -m chess_jev.generate_data \
--output data/chessjev-stockfish \
--train-size 3000 --valid-size 400 --test-size 200 \
--movetime 0.04 --max-seconds 540
# 2) MiniLM-L6 full finetune on MPS (~5 min)
PYTHONPATH=src python -m chess_jev.train_minilm \
--data data/chessjev-stockfish \
--output checkpoints/chessjev-minilm-v1/model.pt \
--epochs 3 --batch-size 8 --lr 2e-5Recorded teacher-agreement on a 16-move shortlist: valid_acc 0.445. That is not playing strength.
Byte baseline (still supported):
PYTHONPATH=src python -m chess_jev.train \
--data data/chessjev \
--output checkpoints/chessjev-byte-v1/model.pt \
--train-size 800 --epochs 6 --batch-size 16See docs/base-decision.md for why this architecture, and what will not fit on 64 GB unified memory.