The question and measured result
Can a 35B MoE model (33.75 GiB at UD-Q4_K_XL) run fast and cool on a 48 GB Linux laptop with zero swap and exact greedy parity?
- Setup: Snapdragon X2 Elite (SC8480XP), Omarchy Linux, 12 Prime cores (
taskset -c 6-17 -t 12), clean2.611 GHzclock clamp, greedy sampling, 0 swap. - Prefill (end-to-end pp214):
68.72 -> 184.38 tok/s(2.68x) via asyncCPU ‖ NPUoverlap (154.09 tok/son reasoning pp39). - Decode (end-to-end):
22.05 -> 32.06 tok/s(+45%) plain M=1 reasoning, and32.11 tok/swith losslessngram-mod K=8spec decode. - Parity & thermals: 64/64 exact greedy match (
245/245chars on reasoning; exact on pp256 and code refactor) at 61.7 °C CPU / 54.8 °C DSP.
Four bottlenecks cleared by profiling
- 405 dense Q8_0 ops on Hexagon HMX (
68.72 -> 101.48 tok/s): packed into1.68 GiBdma-buf (well under the 6 GiB limit) and executed in99.1 msDSP (kernel-only) with 12-thread parallel packing. - Hidden scalar BF16 loop (
101.48 -> 157.56 tok/s): per-op profiling caught653 ms(33% of prefill) stuck in a scalar C loop. A 19-line ARMv8.6vbfdotq_f32kernel sped upple_keyby 29.6x and pushed M=1 decode past 30 tok/s. - 2x2
i8mmMoE tiles (157.56 -> 166.73 tok/s): zero-copy 2x2 tiles replaced 1-rowMUL_MAT_IDdots and sped upQ4_K,Q5_K, andQ6_Kexperts. - Async
CPU ‖ NPUoverlap (166.73 -> 184.38 tok/s): eager ring open removed a26 mswake spike, and non-blocking submits let Oryon run independent CPU ops alongside Hexagon.
Thermal failure and kernel-only boundaries
- Discarded high-clock run: locking Prime cores to
4.454 GHzhit 89.6 °C, crossed the85 °CCPU gate, and was stopped and discarded. Every published number comes from repeatable2.611 GHzruns (61.7 °Casync peak;66.4 °Cmax on the baseline sweep). - Kernel-only M1 figure:
ring.gemm_q8_0hit1.95 msvs21.54 msOryon (11.0x,49.4 °CDSP) in an opt-in common-scale W8A8 mode (1.87%normalized RMS error) and is tagged kernel-only. - Rejected CPU MTP: depth-2 MTP on CPU was exact but slower (
17.83 / 22.40 tok/s) because verification is compute-bound on Oryon.
Where the DRAM ceiling sits
Plain decode streams 2,961.8 MB of active weights per token.
At our measured 142 GB/s bandwidth, the physics ceiling is 47.02 tok/s (~21.3 ms/token), leaving ~15 tok/s above our current 32.06 tok/s.
For the discrete-GPU reference on the same checkpoint, see the RTX 5090 (32 GB) recipe.
Takeaway
Profile every op before writing an NPU kernel.
Offloading dense Q8_0 ops to Hexagon mattered, but fixing one scalar BF16 loop delivered the biggest jump in both prefill and decode, and clamping clocks kept a 35B model repeatable at 61.7 °C.