Discussion about this post

User's avatar
Anh Duong's avatar

regarding parallelism strategies, this is also a great source to explore the topic in more depth: https://rocm.blogs.amd.com/software-tools-optimization/vllm-moe-guide/README.html

Emanuel Maceira's avatar

Really well-structured breakdown — the prefill/decode split is one of those fundamental concepts that clarifies so much downstream confusion about why inference optimization is non-trivial.

One dimension worth adding to the conversation, especially as this space matures: the principles covered here apply beautifully to cloud-scale inference, but they translate in fascinating and constrained ways when you move to edge and on-device deployments. The decode phase being memory-bandwidth-bound is, if anything, even more acute on mobile silicon — where you're dealing with shared LPDDR memory across CPU, NPU, and GPU, and where sustained inference heats up the package fast.

For edge AI deployments — standalone IoT devices, connected hardware, embedded systems with cellular (eSIM-based) connectivity — the build vs. buy calculus flips almost entirely. You're not evaluating API costs vs. self-hosting; you're evaluating whether inference can happen at all without a network connection. Quantization goes from a cost optimization to a hard requirement: Q4 INT8 or bust for most MCU-class targets.

The speculative decoding insight is particularly interesting at the edge: the "draft model + verify" pattern maps well to constrained hardware because the draft model can live entirely on a small local NPU while verification gets offloaded opportunistically when connectivity (via eSIM/cellular) is available. This hybrid local/remote inference pattern is genuinely underexplored and I think it's where the next wave of edge AI product design will live.

Thanks for making these concepts accessible — this is the kind of foundational literacy the field needs as inference moves beyond the datacenter.

6 more comments...

No posts

Ready for more?