Publish tiny-greedy
Browse filesFiles changed (2)
- README.md+41-15
- config.json+1-1
16 unmodified lines171819202122232425262728293031323334353637383940414215 unmodified lines585960616263646566676869707172737475767778798094 unmodified lines17517617717817918018116 unmodified lines# chorcat/rukh-tinyA GPT decoder written from scratch that plays chess by predicting the next move of a gamewritten in UCI. This is the `tiny` stage of [Rukh](https://github.com/borja-glez/rukh), a coursethat builds a chess language model end to end: 5,309,952 parameters, avocabulary of 2030 fixed tokens and a context of200 moves.Play against it in the browser: [https://rukh.borjaglez.com/?stage=tiny](https://rukh.borjaglez.com/?stage=tiny) · read how it was built:[https://lab.rukh.borjaglez.com](https://lab.rukh.borjaglez.com)## ResultsMeasured with `rukh eval --suite quick` on 2026-09-19.| Metric | Value ||---|---|| Legality without the mask, argmax | 94.5 % || Legality without the mask, sampled (T=0.6, top-k 20) | 93.8 % || Top-1 next move | 40.3 % || Top-3 next move | 67.1 % || Puzzles solved | n/a || Estimated Elo | 64 (95 % CI -200-292) |Legality is measured **without** the legality mask, twice, because the two numbers answerdifferent questions:15 unmodified lines| Bar | Target | Measured | Verdict ||---|---|---|---|| Legality without the mask, argmax | at least 99 % | 94.5 % | **not met** || Estimated Elo | at least 1200 | 64 (95 % CI -200-292) | **not met** |**The legality bar is not met**: without the legality mask the weights propose an illegal movemore often than one time in a hundred. The demo masks before sampling and therefore never playsone, but the bar is about the weights and the weights do not clear it.**The Elo bar is not met**, and the reason is the corpus rather than the recipe: this model wastrained on 5.9 M games, against the 16 M of the reference work it is measured against, and the`medium` stage with three times the parameters and the same data bought only 84 more Elo, withoverlapping intervals. The constraint is data, not capacity, so the honest fix is more months ofLichess and not more layers.How to read these numbers:- legality_argmax is the share of validation positions where the single most likely token is a legal move (no temperature, no top-k, no mask): this is the >= 99 % bar of GOAL.md. legality_sampled draws the token the way the demo does (temperature 0.6, top-k 20) and is always the lower of the two.- puzzles not found at E:\work\ai\chess-lm\rukh\data\puzzles\puzzles.parquet: puzzle suite skipped- the Elo interval covers sampling noise only: the four ``skill-*`` rungs are nominal ``Skill Level`` anchors rather than measured ratings, and Stockfish plays at 0.1 s per move, far below any setting ``UCI_Elo`` is calibrated for## Input and output94 unmodified lines"model_type": "rukh-move-decoder","library_name": "rukh","rukh_version": "0.0.1","stage": "tiny","step": 6000,"params": 5309952,"tokenizer": "uci",16 unmodified lines1718192021222324252627282930313233343536373839404142434445464748495015 unmodified lines6667686970717273747576777879808182838485868788899091929394959697989910010110210310410510694 unmodified lines20120220320420520620716 unmodified lines# chorcat/rukh-tinyA GPT decoder written from scratch that plays chess by predicting the next move of a gamewritten in UCI. This is the `tiny-greedy` stage of [Rukh](https://github.com/borja-glez/rukh), a coursethat builds a chess language model end to end: 5,309,952 parameters, avocabulary of 2030 fixed tokens and a context of200 moves.Play against it in the browser: [https://rukh.borjaglez.com/?stage=tiny-int8](https://rukh.borjaglez.com/?stage=tiny-int8) · read how it was built:[https://lab.rukh.borjaglez.com](https://lab.rukh.borjaglez.com)## ResultsMeasured with `rukh eval --suite full` on 2026-09-20.| Metric | Value ||---|---|| Legality without the mask, argmax | 94.5 % || Legality without the mask, sampled (T=0.05, top-k 1) | 94.5 % || Top-1 next move | 40.3 % || Top-3 next move | 67.1 % || Puzzles solved | 8.9 % || Estimated Elo | 921 (95 % CI 713-1040) |Puzzles by difficulty band:| Band | Solved ||---|---|| 1000-1500 | 14.1 % || 1500-2000 | 8.6 % || 2000+ | 3.9 % |Legality is measured **without** the legality mask, twice, because the two numbers answerdifferent questions:15 unmodified lines| Bar | Target | Measured | Verdict ||---|---|---|---|| Legality without the mask, argmax | at least 99 % | 94.5 % | **not met** || Estimated Elo | at least 1200 | 921 (95 % CI 713-1040) | **not met** |**The legality bar is not met**: without the legality mask the weights propose an illegal movemore often than one time in a hundred. The demo masks before sampling and therefore never playsone, but the bar is about the weights and the weights do not clear it.**The Elo bar is not met.** This stage exists as a baseline, not as a release: it is the smallestmodel in the project and it is published so the larger stages have something to be comparedagainst. The stages that carry the project's answer to this bar are `rukh-medium` (1504) and`rukh-medium-dpo` (1529), trained on 19.0 M games where this one saw 2.9 M.A note on the number itself: an earlier release of these cards reported far lower ratings —1007 for `small`, 64 for this stage — and gave the bar as missed across the board. Those figureswere wrong. Four of the eight Stockfish rungs the rating is fitted against carried Elo labelswritten by hand, and playing the ladder against itself showed they were 428 to 581 points toolow. The ladder is now measured, every stage was re-evaluated on it, and the numbers above arefrom those runs.### An Elo belongs to the pair model+samplingThe same weights (`4591cf8cca0b`) measure **921 Elo** attemperature 0.05, top-k 1 and **64 Elo** at temperature 0.6, top-k 20.Nothing about the tensors changed between the two runs; only the way a move is drawn from themdid. A rating is therefore a property of the pair model+sampling and not of the file youdownload, and any table that compares stages has to fix the sampling first.The results above are the temperature 0.05, top-k 1 point. The demo samples for varietyrather than always playing its best move, so what a player meets over the board is the weaker ofthe two numbers.How to read these numbers:- legality_argmax is the share of validation positions where the single most likely token is a legal move (no temperature, no top-k, no mask): this is the >= 99 % bar of GOAL.md. legality_sampled draws the token the way the demo does (temperature 0.05, top-k 1) and is always the lower of the two.- the Elo interval covers sampling noise only: the four ``skill-*`` rungs are nominal ``Skill Level`` anchors rather than measured ratings, and Stockfish plays at 0.1 s per move, far below any setting ``UCI_Elo`` is calibrated for- 3 of 160 games hit the context limit and were adjudicated (3 of them) instead of being scored as draws## Input and output94 unmodified lines"model_type": "rukh-move-decoder","library_name": "rukh","rukh_version": "0.0.1","stage": "tiny-greedy","step": 6000,"params": 5309952,"tokenizer": "uci",
4 unmodified lines5678910114 unmodified lines"model_type": "rukh-move-decoder","library_name": "rukh","rukh_version": "0.0.1","stage": "tiny","step": 6000,"params": 5309952,"tokenizer": "uci",4 unmodified lines5678910114 unmodified lines"model_type": "rukh-move-decoder","library_name": "rukh","rukh_version": "0.0.1","stage": "tiny-greedy","step": 6000,"params": 5309952,"tokenizer": "uci",
README.md+41-15
config.json+1-1