Atlas — pokerlm

Model: checkpoints/pokerlm-reference.pt · 2,737,536 parameters · 6 layers × 6 heads, dim 192, context 256, vocab 152 · generated on 2026-12-04 21:18 UTC

a From CPN text to ids

A real hand from the corpus, as the model saw it in training — encoded with [BOS]/[EOS] (add_special_tokens=True), unlike pokerlm inspect, which does not add them by default. Each token becomes an integer; that is the only thing the model receives as input.

structure (format / street / result…) position card action / sizing

b Attention map

A row = a token that looks; a column = a token that is looked at. The causal mask forbids everything above the diagonal (greyed-out cell, no data) — the model can never read the future. Each row of coloured cells sums to 1.

c Embedding neighbourhood

2D projection (the two axes of greatest variance) of . The colour encodes the rank (2 → Ace, gradient); the symbol encodes the suit (♣ ♦ ♥ ♠). Tokens that are not cards appear as grey dots. The “full vocabulary” view excludes the 5 control tokens ([PAD]/[BOS]/[EOS]/[UNK]/[MASK]): [EOS], as measured, is such an extreme outlier that it crushes the scale and makes everything else indistinguishable — excluding it is more honest than letting a structure that is only a scale artefact pass for real.

d Next-token distribution

Five situations, softmax of the model's logits over the whole vocabulary (152 tokens), with the 8 most probable shown. Compare “AKs opens” and “AKo opens”: same ranks, different suits — if the model saw the suit, these two sets of bars would not overlap.

e The hand-strength probe

169 distinct preflop hands. X axis: equity against a random hand (pokerlm/equity.py). Y axis: P(aggressive) — the model's on the left, the corpus's on the right (the 2009 ACPC bots themselves). The colour distinguishes pairs, suited and offsuit hands: if the model saw the suits of the cards, the suited points would split away from the offsuit ones as they clearly do on the right.

pair suited offsuit

Model

Corpus

Aggression gap, suited hand minus offsuit hand of the same ranks (78 pairs, e.g. AKs − AKo):