paper-with-me

Papers

Stateful Large Language Model Serving with Pensieve

2023-12-09 · Lingfan Yu, JinKun Lin, Jinyang Li

Large Language Models (LLMs) are wildly popular today and it is important to serve them efficiently. Existing LLM serving systems are stateless across requests. Consequently, when LLMs are used in the common setting of multi-turn conversations, a growing log of the conversation history must be processed alongside any request by the serving system at each turn, resulting in repeated processing. In this paper, we design $Pensieve$, a system optimized for multi-turn conversation LLM serving. $Pensieve$ maintains the conversation state across requests by caching previously processed history to avoid duplicate processing. $Pensieve$'s multi-tier caching strategy can utilize both GPU and CPU memory to efficiently store and retrieve cached data. $Pensieve$ also generalizes the recent PagedAttention kernel to support attention between multiple input tokens with a GPU cache spread over non-contiguous memory. Our evaluation shows that $Pensieve$ can achieve $1.14$-$3.0\times$ the throughput of vLLM and TensorRT-LLM and significantly reduce latency.

📄 PDF Abstract BibTeX arXiv:2312.05516

Code (0)

등록된 구현이 없습니다.

Tasks

CPUGPULanguage ModelingLanguage ModellingLarge Language Modelmodel

Similar Papers 제목 키워드 기반

The Pensieve Paradigm: Stateful Language Models Mastering Their Own Context

2026-02-12 · Xiaoyuan Liu, Tian Liang, Dongyang Ma, Deyu Zhou 외 arxiv

In the world of Harry Potter, when Dumbledore's mind is overburdened, he extracts memories into a Pensieve to be revisited later. In the world of AI, while we possess the Pensieve-mature databases and retrieval systems, …

Pensieve Grader: An AI-Powered, Ready-to-Use Platform for Effortless Handwritten STEM Grading

2025-07-02 · Yoonseok Yang, Minjune Kim, Marlon Rondinelli, Keren Shao arxiv

Grading handwritten, open-ended responses remains a major bottleneck in large university STEM courses. We introduce Pensieve (https://www.pensieve.co), an AI-assisted grading platform that leverages large language models…

Pensieve: Retrospect-then-Compare Mitigates Visual Hallucination

2024-03-21 · Dingchen Yang, Bowen Cao, Guang Chen, Changjun Jiang

Multi-modal Large Language Models (MLLMs) demonstrate remarkable success across various vision-language tasks. However, they suffer from visual hallucination, where the generated responses diverge from the provided image…

HallucinationMMESpecificity

Pensieve 5G: Implementation of RL-based ABR Algorithm for UHD 4K/8K Content Delivery on Commercial 5G SA/NR-DC Network

2022-12-29 · Kasidis Arunruangsirilert, Bo Wei, Hang Song, Jiro Katto

While the rollout of the fifth-generation mobile network (5G) is underway across the globe with the intention to deliver 4K/8K UHD videos, Augmented Reality (AR), and Virtual Reality (VR) content to the mass amounts of u…

4k8k

Q-Pensieve: Boosting Sample Efficiency of Multi-Objective RL Through Memory Sharing of Q-Snapshots

2022-12-06 · Wei Hung, Bo-Kai Huang, Ping-Chun Hsieh, Xi Liu

Many real-world continuous control problems are in the dilemma of weighing the pros and cons, multi-objective reinforcement learning (MORL) serves as a generic framework of learning control policies for different prefere…

continuous-controlContinuous ControlMulti-Objective Reinforcement Learning