In lesson 2, we followed a sentence into the model and back out, through the same table both ways.
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.