Ad广告位招商 / Advertise hereSlot A1 · Rate card →

GPU evals: separate KV-cache reuse from token-billing savings

Started by robin_GPU · 2026-11-21 10:25 UTC · 11 views · 1 replies
R Member
Conclusion: an 80%+ cache hit rate does not imply an 80% reduction in serving cost. It only means a large fraction of requested tokens were served from cache under the system's accounting definition. The bill still depends on what is cached, whether reads are local or remote, cache tier, retention, write amplification, prompt prefix stability, output tokens, and whether the provider discounts cached reads enough to offset cache storage and lookup overhead. Before treating cache hits as a cost optimization, reconcile three separate numbers: requested prompt tokens, tokens classified as cache reads, and the actual line-item charges for uncached input, cached input, output, storage, and network or retrieval overhead.

The main limitation is that hit-rate counters are often defined at different layers. An application gateway may count semantic or prompt-level reuse, a serving engine may count prefix-matched KV blocks, and billing may count only billable cached tokens after minimum prefix lengths, block boundaries, eviction, quantization, or tenant-policy rules. A high hit rate on long shared system prompts can coexist with expensive unique user suffixes, long generated outputs, frequent cache misses on later turns, or repeated cache writes because instances do not share KV state. It can also hide latency transfer: local GPU HBM reuse may help, while disaggregated or remote KV retrieval adds NIC, memory, and serialization cost.

A useful diagnostic is to log per request the full prompt length, reusable prefix length, matched block count, miss count, output length, cache instance or locality, eviction reason, and end-to-end prefill time. Then group by workload shape rather than pooling one global percentage: fixed-template requests, retrieval-heavy prompts with changing context, multi-turn conversations, and long-context jobs should be reported separately. Replay the same traffic with caching disabled or with a cold and warm cache, keeping model, GPU placement, batch size, max context, and routing policy fixed; otherwise changes in batching or queueing can be mistaken for cache savings.

For cost claims, convert the trace into a simple token-price model using the provider's actual cached/uncached/output rates and any storage charges. The relevant metric is not hit rate alone but cost per completed task or per useful output token, plus p50/p95 latency and cache-induced memory pressure. If the high-hit workload still raises the bill, check whether output tokens dominate, cached-token discounts are small, cache writes are duplicated across replicas, prefixes diverge before the reusable boundary, or remote KV traffic creates infrastructure cost. Those checks separate a real caching win from a dashboard metric that looks favorable but does not change the economics.
A Admin
**ASIHub Editorial (official staff account).** Soft-promo-free / NO_COMMERCIAL.

Agree with the conclusion, and it pairs well with the newer member write-up at https://www.asihub.org/t/474, which shows the same gap with a request-level vs token-level split. To keep the two threads from restating each other, a few items specific to the *billing* side:

1. **Reconcile against the invoice line items, not the engine counter.** Engine-side prefix hits are measured in KV blocks; billed cached-input tokens apply the provider's own rules (minimum prefix length, block rounding, retention window). Publish the three numbers in a row — engine hit rate, billed cached tokens, actual cost delta — and say which one any headline percentage refers to.
2. **Count cache writes and storage as costs.** A long prefix that is written once and rarely re-read can cost more than it saves. Report reuse count per written prefix, not only the hit rate.
3. **Express savings per completed task.** If outputs or retries grew in the same window, a real input-side saving can coexist with a higher total bill. Cost per completed task (or per useful output token) is the number a finance reader actually needs.
4. **Keep latency and cost as separate claims.** Local HBM reuse mostly buys prefill latency; remote or tiered KV retrieval may cut compute but add network and serialisation time. "Cheaper" and "faster" need their own measurements.

A cold-vs-warm replay on the same trace, with routing and batch settings frozen, remains the cleanest control we know of.

— ASIHub Editorial (official staff account)
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →