paper-with-me

Papers

Fast Inference for Augmented Large Language Models

2024-10-23 · Rana Shahout, Cong Liang, Shiji Xin, Qianru Lao, Yong Cui, Minlan Yu, Michael Mitzenmacher

Augmented Large Language Models (LLMs) enhance the capabilities of standalone LLMs by integrating external data sources through API calls. In interactive LLM applications, efficient scheduling is crucial for maintaining low request completion times, directly impacting user engagement. However, these augmentations introduce scheduling challenges due to the need to manage limited memory for cached information (KV caches). As a result, traditional size-based scheduling algorithms, such as Shortest Job First (SJF), become less effective at minimizing completion times. Existing work focuses only on handling requests during API calls by preserving, discarding, or swapping memory without considering how to schedule requests with API calls. In this paper, we propose LAMPS, a novel LLM inference framework for augmented LLMs. LAMPS minimizes request completion time through a unified scheduling approach that considers the total length of requests and their handling strategies during API calls. Recognizing that LLM inference is memory-bound, our approach ranks requests based on their consumption of memory over time, which depends on both the output sizes and how a request is managed during its API calls. To implement our scheduling, LAMPS predicts the strategy that minimizes memory waste of a request during its API calls, aligning with but improving upon existing approaches. We also propose starvation prevention techniques and optimizations to mitigate the overhead of our scheduling. We implement LAMPS on top of vLLM and evaluate its performance against baseline LLM inference systems, demonstrating improvements in end-to-end latency by 27%-85% and reductions in TTFT by 4%-96% compared to the existing augmented-LLM system, with even greater gains over vLLM.

📄 PDF Abstract BibTeX arXiv:2410.18248

Code (0)

등록된 구현이 없습니다.

Tasks

Scheduling

Similar Papers 제목 키워드 기반

FiDO: Fusion-in-Decoder optimized for stronger performance and faster inference

2022-12-15 · Michiel de Jong, Yury Zemlyanskiy, Joshua Ainslie, Nicholas FitzGerald 외

Fusion-in-Decoder (FiD) is a powerful retrieval-augmented language model that sets the state-of-the-art on many knowledge-intensive NLP tasks. However, the architecture used for FiD was chosen by making minimal modificat…

DecoderLanguage ModelingLanguage ModellingQuestion Answering+1

FlashBack:Efficient Retrieval-Augmented Language Modeling for Long Context Inference

2024-05-07 · Runheng Liu, Xingchen Xiao, Heyan Huang, Zewen Chi 외

Retrieval-Augmented Language Modeling (RALM) by integrating large language models (LLM) with relevant documents from an external corpus is a proven method for enabling the LLM to generate information beyond the scope of …

Language ModelingLanguage ModellingRetrieval

Context-augmented Retrieval: A Novel Framework for Fast Information Retrieval based Response Generation using Large Language Model

2024-06-24 · Sai Ganesh, Anupam Purwar, Gautam B

Generating high-quality answers consistently by providing contextual information embedded in the prompt passed to the Large Language Model (LLM) is dependent on the quality of information retrieval. As the corpus of cont…

Answer GenerationInformation RetrievalLanguage ModelingLanguage Modelling+8

Automated Augmented Conjugate Inference for Non-conjugate Gaussian Process Models

2020-02-26 · Théo Galy-Fajou, Florian Wenzel, Manfred Opper

We propose automated augmented conjugate inference, a new inference method for non-conjugate Gaussian processes (GP) models. Our method automatically constructs an auxiliary variable augmentation that renders the GP mode…

Gaussian ProcessesVariational Inference

TeleRAG: Efficient Retrieval-Augmented Generation Inference with Lookahead Retrieval

2025-02-28 · Chien-Yu Lin, Keisuke Kamahori, Yiyu Liu, Xiaoxiang Shi 외

Retrieval-augmented generation (RAG) extends large language models (LLMs) with external data sources to enhance factual correctness and domain coverage. Modern RAG pipelines rely on large datastores, leading to system ch…

CPUGPURAGRetrieval+1