The Communication Bus

In lesson 2, we followed a sentence into the model and back out, through the same table both ways.

What the picture shows

Lesson 2’s last picture: the table of 248,320 rows, the closed box, Qwen3.5-4B, and the output row, with the two arrows that use the one table, in and out. Then the table’s size: 635,699,200 numbers, 15% of the model’s 4.21 billion; the box holds the other 85%, and changes the rows that pass through it.

Rows of the embedding table of mlx-community/Qwen3.5-4B-4bit: 248,320 rows of 2,560 numbers. The 25 rows nearest space, “rain” by cosine similarity: #1 space, “Rain”, 0.75; #2 “Rain”, 0.68; #3 “雨” (Chinese characters), 0.62; #4 “rain”, 0.61; #5 space, “rainfall”, 0.53; #6 space, “rains”, 0.52; #7 “雨水” (Chinese characters), 0.50; #8 “的雨” (Chinese characters), 0.50; #9 “雨的” (Chinese characters), 0.49; #10 space, “raining”, 0.44; #11 space, “rainy”, 0.43; #12 “降雨” (Chinese characters), 0.42; #13 space, “hujan”, 0.39; #14 space, “mưa”, 0.39; #15 “下雨” (Chinese characters), 0.39; #16 “雨が” (Japanese), 0.39; #17 space, “pluie”, 0.38; #18 “雨中” (Chinese characters), 0.38; #19 space, “lluvia”, 0.38; #20 “雨天” (Chinese characters), 0.38; #21 space, “chuva”, 0.37; #22 space, “rainbow”, 0.36; #23 “大雨” (Chinese characters), 0.36; #24 “如雨” (Chinese characters), 0.36; #25 “RAIN”, 0.35. A typical row scores 0.04.

The logits of mlx-community/Qwen3.5-4B-4bit for the token after “A single raindrop fell from a height of 1000 meters.”: one score for each of its 248,320 table rows. Highest: space, “It” 18.75, space, “What” 18.75, space, “How” 18.50, space, “The” 18.38, space, “When” 18.00. Lowest: space, “flexibil” -8.88, space, “tonn” -8.44, space, “concor” -8.13. 69% of the scores are below zero; the median is -0.9. After softmax: space, “It” 13%, space, “What” 13%, space, “How” 10%, space, “The” 8.9%, space, “When” 6.1%, everything else 49%.

Qwen3.5-4B: 32 layers, 2560 numbers wide, 248,077 tokens in its vocabulary, 4,205,751,296 parameters in 2,367,118,848 bytes, quantised to 4 bits in groups of 64.

Where this comes from

dictionary-rows-qwen Measurement

Rows of the model's embedding table as the 4-bit model reads it (dequantised), rounded to 4 decimals: the whole rows of chosen tokens, and the 25 rows nearest ' rain''s by cosine similarity, ranked over every other row of the table, with the rows' lengths and how the vocabulary's rows score against ' rain'.

Model
mlx-community/Qwen3.5-4B-4bit, quantised: 4-bit, groups of 64
Built by
lab/precompute/shared-dictionary.py
Commit
c8f839c
From stored results
No: a fresh run
Inputs
sha256:3ac37aa99d6006ebea1aeb13a3f5557c819ec5b95143efc687f745387845e367
Made
2026-10-15

dictionary-logits-qwen Measurement

The model's logits for the token after 'A single raindrop fell from a height of 1000 meters.' as plain text, in float32 from its own output at the last position: the final output vector (after the final norm), the top and bottom 10, a histogram of all of them in bins of 1, the softmax odds of the top 5 over every logit, where the spare rows fall, and the largest difference from the logits recomputed as the output vector scored against each row of the input embedding table.

Model
mlx-community/Qwen3.5-4B-4bit, quantised: 4-bit, groups of 64
Built by
lab/precompute/shared-dictionary.py
Commit
c8f839c
From stored results
No: a fresh run
Inputs
sha256:67a877d871d671e696c21b3e4b431559a9178b85c31a96858d75e88b920900ee
Made
2026-10-15

model-card-qwen Measurement

The model's specifications, computed from its config.json, tokenizer and weights: parameters and bytes count the language model only, without the vision encoder; a quantised weight counts at its unpacked size.

Model
mlx-community/Qwen3.5-4B-4bit, quantised: 4-bit, groups of 64
Built by
lab/precompute/next-token-flipbook.py
Commit
5f8af57
From stored results
No: a fresh run
Inputs
sha256:6710545c77d59f772adbd96e4626fda9a8caa218848e3989cdd758056d06fedb
Made
2026-10-15

Glossary