CPU-CACHE-RESIDENT TINY LANGUAGE MODELS ======================================= Summary of two small language models co-designed around the private L1 and L2 cache geometry of a single Intel Core i5-12400 (Golden Cove) P-core, using AVX-VNNI (vpdpbusd) and 0 MiB VRAM. ------------------------------------------------------------------------ 1. L1-GatedLM (48 KiB L1 Data Cache Resident) ------------------------------------------------------------------------ - Target: 100% of weights, state, and scratchpad inside the 48 KiB 12-way L1D cache; hot loop inside 32 KiB L1I / 4K-uop DSB. - Measured throughput: 1.23 million tokens/sec (815.9 ns/token) on a single isolated CPU core (52.79 GB/s effective weight bandwidth). - Hardware constraints respected: 64-byte line alignment, avoiding the 4 KiB set-aliasing cliff at 12+ ways in Set 0. ------------------------------------------------------------------------ 2. L2-BitLoop-LM (1.04 MiB L2 Cache Resident, 1.58-bit Ternary) ------------------------------------------------------------------------ - Weights binary: 1,067.75 KiB (83.4% of a single core's 1.25 MiB L2). - Hot inference state: 81.19 KiB (MinGRU states, Conv1D ring, FP16 sliding-window KV ring W=32). - Architecture: Factorized tied INT4 embeddings (V=2048) + 2x weight- tied looped trunk (4 unique / 8 effective layers) with native {-1, 0, +1} BitNet b1.58 ternary weights and zero FP multipliers in the trunk. - Parameters: 3.92M unique (~8.2M effective via depth looping). - Training corpus: 13.47 MB of Shakespeare, transcripts, and local C/C++/Python code (Val PPL 7.71, 1.30 bits/byte). - Measured throughput: 7,244 tok/s on 1 core (138.0 us/tok), ~43,400 tok/s across 6 P-cores.