The question and measured result
Can a 35 W Linux laptop beat Qualcomm’s published HTP prefill number on Llama-3.2-1B and break the single-token DRAM decode ceiling without losing accuracy?
- Setup: Snapdragon X2 Elite (SC8480XP), Omarchy Linux, Q4_0 GGUF -> W4A8 on Hexagon HMX, 12 Prime cores (
taskset -c 6-17), greedy sampling. - Prefill (end-to-end pp512):
379 -> 13,716.3 tok/smedian (13,818.6peak). That is 36.2x our starting CPU baseline and 1.92x Qualcomm’s vendor-reported7,137 tok/sHTP figure. - Decode (end-to-end lossless EAGLE-3):
115.5 -> 257.6 tok/son coding (146.6 tok/safter plain Oryon M=1 tuning;184.9–257.6 tok/sacross six open-ended prompts). - Parity & thermals: 64/64 exact greedy parity (58.65M KV/hidden values byte-identical across 52 accepted runs, 105 passing tests), 1,152 / 1,152 exact EAGLE-3 token IDs across 18 cooled pairs, peak 68.7 °C CPU / 52.9 °C DSP.
Why prefill was compute- and handoff-bound
One DRAM pass over Llama-3.2-1B takes only 6.57 ms at the 136 GB/s spec ceiling.
Plain CPU prefill stalled at 379 tok/s because compute, per-op RPC calls, and data conversions dominated wall time.
- Persistent 1.5 us ring (W8A8 on HMX): lifted prefill to
10,933 tok/s. - Native 4-bit into VTCM + 2-plane writeback: cut weight traffic in half and reached
12,912 tok/s. - True
CPU ‖ NPUoverlap: ran Oryon KV-head-group attention concurrently with HMX projections for 13,716.3 tok/s.
How EAGLE-3 breaks the 178.5 tok/s decode ceiling
Plain M=1 decode cannot pass 178.5 tok/s because every token must read the full weights from DRAM.
Pairing a 68.7 MB Q4_0 EAGLE-3 draft head with batched i8mm verification lets one DRAM pass check three drafted tokens at once.
Where the gains stop
- Stretch targets missed: prefill stayed below our
14,500 tok/sand2.0x HTPmedian targets. - Vendor comparison: Qualcomm’s
7,137 tok/sHTP number is vendor-reported and was not re-measured on this laptop. - Prompt sensitivity: EAGLE-3 hits
257.6 tok/son structured coding prompts, and sits closer to184.9 tok/son harder open-ended writing.
Takeaway
Treat prefill and decode as separate bottlenecks on unified-memory laptops.
Overlap NPU matmuls with CPU attention to clear prefill overhead, then use a tiny draft head to amortize DRAM reads during decode.