Nov 17, 2026
Layer-Hot Decoding: A Second Token per Weight Pass Ran at 0.87x of Plain Decoding on an M4
A proof of concept that runs a guessed second token through each layer while its weights are loaded. Measured 14 to 16 November 2026 on a MacBook Air M4 with Qwen3 0.6B, 1.7B and 4B at 4 bits: a second token cost 2 to 11% extra on MLX, but a guess from the first layers was right 27 to 40% of the time, and the loop ran at 0.87x of plain mlx-lm on 4B. Tuned llama.cpp DFlash2 reached 1.22x on the same machine.
llm-inferencespeculative-decodingmlxllama-cppbenchmarkopen-source
Read Article