The Serving Stack
Start hereCollectionsNewsletter
Sign in

prefill-decode

2 posts

REQUEST TO TOKENS · 01PROMPT · ONE PASSANSWER · ONE PASS PER TOKENFIRST TOKEN 82 ms · THEN 73 ms EACH
request-to-tokensinferenceserving

From Prompt to Token: The Life of an LLM Request

One chat request followed through a real inference server, from chat template and tokens to prefill, decode, sampling, and streaming, each stage timed.

by The Serving Stack
REQUEST TO TOKENS · 02PREFILL · ALL TOKENS, ONE PASSDECODE · ONE TOKEN PER PASS0.20 ms vs 74 ms PER TOKEN
request-to-tokensprefill-decodegpu

Prefill vs. Decode: Why the Second Token Is a Different Workload

Why a prompt token costs hundreds of times less than an answer token on the same weights: prefill and decode, seen in a kernel trace.

by The Serving Stack

Inference Notes

Once a week: what changed in serving AI models, and what it means if you build, run or pay for them, in about five minutes.

The Serving Stack

Inference Engineering, In Depth

Navigate

HomeStart hereCollectionsNewsletterAll articles

Collections

Inference EnginesHow an LLM Request Becomes TokensLLMs, ExplainedThe GPU for Inference EngineersQuantization in PracticeServing in Production

Links

RSS Feed

Legal

Privacy PolicyTerms of ServiceCookie Policy
© 2026 The Serving Stack. All rights reserved.