Brimkerndocs

Kern 0, a 290 KB chess model that learns in public

Kern 0 is brimkern’s chess model. It fits in 290 KB, plays in your browser tab on your GPU, and learns by playing Stockfish and Leela Chess Zero. Every game it plays is published as it happens.

Play against Kern 0 Watch it learn, live

Playing right now

Loading the game in progress…

What makes it different

Tiny

244,000 parameters in 290 KB. The smallest network on Leela’s recommended list is about 130 times larger.

One block, read six times

Instead of stacking distinct layers, Kern 0 applies one transformer block six times in a row to the same position, like rereading the board. That is where the size goes.

In your tab, on your GPU

No install and no server: it runs on brimkern’s own WebGPU engine, about 140 positions per second in Chrome on an Apple M4, with a CPU fallback when WebGPU is missing.

Taught by stronger engines

AlphaZero and Leela learned alone, against themselves, on thousands of machines. Kern 0 plays engines stronger than itself, Stockfish corrects each of its mistakes, and it all runs on one laptop.

A style of its own

It plays to win: attacking moves are explored first and a draw counts against it. Its games start from the openings of great players and from famous games.

Open

MIT-licensed code, weights in BRIK and GGUF, and every game in a public dataset. It also speaks UCI, so any chess program can use it.

Size, measured

Files on disk, measured on 2026-11-26.

Kern 08-bit weights (.brik); 351 KB as GGUF290 KB
Maia 1900Leela network trained to play like a 1900 human1.3 MB
Leela LD2a small Leela network6.4 MB
Leela T1-256x10the smallest network on Leela’s recommended list37 MB
Stockfish 19the program with its built-in networks100 MB

How it learns

  1. It plays 20 games against Stockfish or Leela, at the level where games stay close: the opponent gets stronger when Kern 0 wins, weaker when it loses.
  2. Stockfish analyses every position, at full strength. Kern 0’s mistakes, the moves that cost it at least 10% of its winning chances, count three times.
  3. It retrains on its own corrected games, mixed with the positions it learned first, so it does not forget.
  4. The new version must win: it plays 20 games against the champion and replaces it only with at least 55% of the points.

Each pair of games starts from the same opening, once with Kern 0 as white and once as black. In critical moments, when it thinks it is better but hesitates, it searches four times longer: on seven moves where it had thrown away a winning position, a search four times longer finds a sound move in six instead of one.

Results, generation by generation

Read live from the public dataset. Stockfish is limited by its UCI_Elo setting and plays 0.1 s per move, which makes it weaker than its label: these are not FIDE ratings. Stockfish at full strength and Leela’s large networks remain out of reach.

Loading the results…

Open

Play against Kern 0

Brimkern: open WebGPU engine, built by Romain Khanoyan. Local AI, WebGPU, on-device engines.