Deepak Verma (@cieftn007) header
Deepak Verma (@cieftn007) profile picture

Carpediem

Mumbai
Joined May 2023
Google just showed why cache hits matter! (cache-aware routing clearly explained) Varun Mohan from Google's Antigravity team says they raised the cache hit rate for Neon in Antigravity by another 4.5%. he says that means you can "complete 28% more tasks within quota." Google didn't say how they did it. but one big lever for cache hits sits on the server side, and few developers ever see it. that lever is the router. a cache hit means the start of your prompt, called the prefix, is already stored as KV cache. so the model skips the work of computing it again. the catch is that a large deployment has many workers. a worker is one model server, and each worker keeps its own KV cache. so the cache only helps if your next request lands on the worker that holds it. a normal load balancer doesn't know this. round-robin sends each request to the next worker in line. with N workers, a follow-up request has only about a 1/N chance to reach the right worker. with 8 workers, that's 12.5%. the rest of the time, the worker computes the whole prefix again. agents feel this the most. every agent turn re-sends the same long prefix with the system prompt, tools, files and earlier turns. inference routers fix this with prefix-aware routing. here are the main ways, from simple to precise: โ†ณ prefix affinity sends requests from the same client to the same worker. one busy client can overload that worker. โ†ณ consistent hashing hashes a session key or the start of the prompt, so requests that share it land on the same worker. โ†ณ approximate tracking means the router keeps its own guess of what each worker has cached. that guess can go stale after evictions or restarts. โ†ณ precise tracking has workers send KV cache events, so the router knows where each cache block lives. good routers then add load to the score. a cache hit on an overloaded worker can still be slower than a smaller hit on a worker with free memory. you can see this in open source: - vLLM Router started as a fork of the SGLang gateway and uses consistent hashing to keep a session on the worker that holds its cache - SGLang router tracks prefixes with radix trees and switches to the shortest queue when load gets uneven - NVIDIA Dynamo tracks KV cache events and estimates the prefill and decode cost on each worker - llm-d uses KV cache events from vLLM, SGLang and TensorRT-LLM to route on Kubernetes if you self-host on several replicas, track your cache hit rate for each workload. a cache-blind load balancer can waste the cache hits that your prompt layout earned. hope you found it helpful. Cheers! :)
We've increased the cache hit rate for Neon in Antigravity again by another 4.5%. This means you can complete 28% more tasks within quota. In the last 5 days, we've effectively increased Neon usage on the subscription by close to 75% through caching and harness improvements!
42
11
1
106
10,978
Deepak Verma retweeted
AMMs have a slippage problem. The bigger your trade, the worse your price. JupiterZ v2 takes a different approach. Market makers stream quotes in real time, and Jupiter locks in the best offer with 0% slippage. Competitive liquidity enables better price discovery. V2 also adds orderbooks and partial swaps for better execution, and tighter Iris integration for MMs. Institutional-grade RFQ when you Just Use Jupiter.
34
23
10
236
21,541
$XYRO Is Live for Trading! ๐Ÿ‘พ ๐Ÿ”— Trade on CEXs: โ€ข KuCoin: kucoin.com/trade/XYRO-USDT โ€ข Gate: gate.io/trade/XYRO_USDT โ€ข MEXC: mexc.com/exchange/XYRO_USDT ๐Ÿ”— Trade on DEX: โ€ข Uniswap Ethereum: [bit.ly/40Gw814] Arbitrum: [bit.ly/3CePAJ9] Ethereum CA: 0x4eddb15a0abfa2c349e8065af9214e942d9a6d36 Arbitrum CA: 0xAeAC3b55c3522157ecdA7EC8fcB86C832fAA28aF This is just the start โ€“ more listings and updates are on the way. Stay tuned! โšก๏ธ
2
288