Trending
Fewer Care Delays, More Cost Savings: Nationwide Diagnostic Image Exchange Is Possible With TEFCA Data Centers Bring Boom Times, But Will Gains Last? G42 signs MoU for AI infrastructure in Greece Daedalus supercomputer inaugurated in Greece Suki Secures $90 Million | Confido Health Expands Agentic Operating Platform DCD Studio: Equipping an AI future with Adrian Guggisberg, ABB OpenAI applies for federal permit to build portion of Effingham County, Texas, data center on wetlands – report Tesla appoints new head of energy programs Rethinking coolant selection for modern and future cooling systems Microsoft introduces new sovereignty tools across public and private cloud Cadence unveils Nvidia-powered AI data center in Munich, Germany Thieves repeatedly steal copper and tools from Culpeper data center construction site Anthropic files S-1 for IPO, with $417bn in compute commitments DCD Studio: The future of data centers with Jim Simonelli, Schneider Electric Fireworks to lease data center capacity in Dallas, Texas

Reduce LLM latency with prefix-aware routing on Amazon SageMaker Inference

When constructing an application that utilizes a substantial language model (LLM), the input prompt generally consists of two segments. The text describes a structure consisting of two components. The first component, referred to as the fixed part, establishes the context by providing information such as instructions, reference documents, or conversation history.

The second component, known as the variable part, is designed to hold the user’s input, which may vary depending on the situation. For instance, consider a customer service chatbot. As a support agent for AnyCompany, every request initiates with the same phrase: “You are a support agent for AnyCompany.

Here are our policies, as per your input: The commandments above could be 3,000 tokens. It is possible that the customer’s query at the end is 50 tokens long. This suggests that your model is repeatedly processing the initial 3,000-token sequence in numerous requests.

Frameworks such as vLLM and TensorRT-LLM provide a solution for this issue. The computed key-value (KV) pairs for previously encountered prompt prefixes are stored in their cache.

 

Join the conversation

Your email address will not be published. Required fields are marked *