Run this model with HF Jobs

Run DedeProGames/Checkmate-5M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/DedeProGames/Checkmate-5M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/DedeProGames/Checkmate-5M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/DedeProGames/Checkmate-5M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/DedeProGames/Checkmate-5M. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Checkmate-5M

A tiny chess move model built for the Chess LLM Arena.

  • Architecture: Pythia / GPT-NeoX (6 layers, hidden size 128, 4 heads), trained from scratch.
  • Parameters: 4.8M
  • Tokenizer: move-level chess tokenizer: one token per SAN move (without +/#), plus the move-number prompt 1. and single SAN characters. Every legal SAN move is a single token.
  • Training: the move-selection policy was optimized with reinforcement learning (policy gradient) on millions of simulated games against the models at the top of the arena leaderboard, then distilled into the network.
  • Best used as White.

Usage in the arena

Type DedeProGames/Checkmate-5M as the White model in the arena and press Fight!.

Usage with transformers + outlines

import chess, re
import outlines.models as models
from outlines import generate

model = models.transformers("DedeProGames/Checkmate-5M")
board = chess.Board()
legal = "|".join(re.escape(re.sub(r"[+#]", "", board.san(m))) for m in board.legal_moves)
print(generate.regex(model, legal)("1."))
Downloads last month
482
Safetensors
Model size
4.78M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support