Home / Companies / Anyscale / Blog / Post Details
Content Deep Dive

Ray Serve: Reduce LLM Inference Latency by 60% with Custom Request Routing

Blog post from Anyscale

Post Details
Company
Date Published
Author
Seiji Eicher
Word Count
1,709
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

Ray Serve, a scalable model serving library built on Ray, has introduced a custom request routing feature, the PrefixCacheAffinityRouter, which significantly reduces latency in large language model (LLM) inference, particularly for models like Deepseek-R1 and Kimi K2. By utilizing a prefix cache that stores computed key-value vectors from previous requests' attention computations, the router effectively routes requests sharing a common prefix to the same replica, optimizing cache hits and reducing GPU cycle waste. This approach enhances performance, achieving a 60% reduction in time-to-first-token (TTFT) and over 40% improvement in end-to-end throughput, particularly benefiting large Mixture of Experts models that require efficient data parallel attention and expert parallel sharding. The new routing strategy was benchmarked using the PrefixRepetitionDataset, demonstrating improved throughput and constant cache hit rates even as the number of replicas scales, compared to the traditional "Power of Two Choices" routing strategy.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 9 3,636 538 190 -7%
Kubernetes 1 893 168 80 -9%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.