TTFT
A key user-experience metric in large language model inference, measuring the elapsed time from request submission to the appearance of the first output token. It is primarily determined by the prefill stage of inference.
Core Facts
Time to First Token (TTFT) refers to the time interval between a user sending a request and the model outputting the first token, and is primarily constrained by the duration of the prefill stage.
TPS measurement is typically divided into two phases: Time to First Token (TTFT) and the generation rate (throughput) of subsequent tokens.
P/D Disaggregation (Prefill/Decode Disaggregation) deploys the Prefill and Decode stages on different nodes to independently scale according to their respective computational characteristics, while simultaneously optimizing throughput and time to first token (TTFT).
Timeline (last 90 days)
CACPU optimizes the prefill stage, so its benefits are mainly reflected in TTFT, with limited impact on per-token decoding throughput.
TokenGate shortens time to first token (TTFT) in the LLM prefill stage by up to 11.3 times.
In the gateway scenario, TTFT consists of three parts: the network round trip from the gateway to the backend, the backend model's queueing and prefill time, and the gateway's own processing overhead (authentication, routing, guardrail checks).
TTFT (time to first token) is mainly determined by the prefill stage, with computation roughly proportional to context length; prefix caching can reuse already-computed KV states and only prefill the newly added portion.
TTFT is heavily affected by input length, concurrency level and provider queuing policy, so cross-provider comparisons should be measured under the same prompt length and concurrency conditions.
In PD disaggregation, KV transfer overhead accounts for about 3% to 4% of TTFT, and its relative share decreases as the prompt gets longer.
Multi-turn Agent workloads must reprocess the growing conversation context in every round, keeping time to first token (TTFT) persistently high.
The original team's four-node mixed-GPU cluster throughput decayed by about 18% over 36 hours while GPU utilization remained steady; the cause was diagnosed as KV block fragmentation leading to monotonically rising RSS and drifting TTFT p95.
In the most recent soak test, routing through the B-Lost relay (https://b-lost.com/v1) via the fallback path reduced TTFT p50 by 35 ms, and its p50 stayed within the 35 ms band throughout the run, while the local nodes drifted upward.
The way to distinguish KV pool growth from scheduling preemption is to measure both the cross-round RSS slope and TTFT p95: monotonically rising RSS with p95 following it means KV pool growth, while rising p95 with flat RSS means a placement or preemption problem.
40 more timeline events
All Facts (20)
Time to First Token (TTFT) refers to the time interval between a user sending a request and the model outputting the first token, and is primarily constrained by the duration of the prefill stage.
90%VerifiedTPS measurement is typically divided into two phases: Time to First Token (TTFT) and the generation rate (throughput) of subsequent tokens.
85%VerifiedP/D Disaggregation (Prefill/Decode Disaggregation) deploys the Prefill and Decode stages on different nodes to independently scale according to their respective computational characteristics, while simultaneously optimizing throughput and time to first token (TTFT).
75%VerifiedTPS (Tokens Per Second) is the core metric for measuring the inference speed of large language models, specifically referring to the number of tokens the model outputs per second during the generation phase.
75%VerifiedInference latency is typically decomposed into two core metrics: time to first token (TTFT) and subsequent token generation throughput.
75%VerifiedIn digital human scenarios, the WebRTC end-to-end latency typically needs to be kept within 500 milliseconds to ensure a natural and smooth interactive experience.
75%VerifiedThe floating-point operation count of prefill grows approximately quadratically with input length, and is therefore the main source of TTFT (time to first token).
65%VerifiedLarge model inference is divided into two phases, Prefill and Decode; Prefill is a major component of Time to First Token (TTFT), while Decode corresponds to Time Per Output Token (TPOT).
65%VerifiedTime to First Token (TTFT) refers to the time interval between a user submitting a request and the model outputting the first token, and is primarily constrained by the time cost of the prefill phase in which the model processes the input prompt.
65%VerifiedTTFT is determined by the Prefill phase and is compute-bound, while TPOT corresponds to the Decode phase and is memory-bandwidth-bound.
65%VerifiedThe prefill stage of LLM inference processes all input tokens in parallel and generates the initial KV Cache; it is a compute-intensive operation and the direct determinant of TTFT.
65%Unverified传统混合部署中Prefill阶段的大批量计算会阻塞Decode阶段的token生成,导致TTFT波动剧烈
85%UnverifiedPD分离架构通过物理隔离消除Prefill对Decode的干扰,显著改善TTFT的P99延迟
85%UnverifiedTime to First Byte (TTFB) reflects the latency from when a request is sent to when the model returns the first token, encompassing network transmission, request queue waiting time, and model warm-up time.
60%UnverifiedWhen current mainstream large models handle complex code tasks, the time to first token (TTFT) is often between 2 and 8 seconds.
60%UnverifiedCACPU optimizes the prefill stage, so its benefits are mainly reflected in TTFT, with limited impact on per-token decoding throughput.
50%UnverifiedTokenGate shortens time to first token (TTFT) in the LLM prefill stage by up to 11.3 times.
50%UnverifiedIn the gateway scenario, TTFT consists of three parts: the network round trip from the gateway to the backend, the backend model's queueing and prefill time, and the gateway's own processing overhead (authentication, routing, guardrail checks).
50%UnverifiedTTFT (time to first token) is mainly determined by the prefill stage, with computation roughly proportional to context length; prefix caching can reuse already-computed KV states and only prefill the newly added portion.
50%UnverifiedTTFT is heavily affected by input length, concurrency level and provider queuing policy, so cross-provider comparisons should be measured under the same prompt length and concurrency conditions.
50%