FlexLLM: Token-Level Co-Serving of LLM Inference and Finetuning with SLO Guarantees
Not on the map. Why?
Abstract (arXiv)
Finetuning large language models (LLMs) is essential for task adaptation, yet today's serving stacks isolate inference and finetuning on separate GPU clusters -- wasting resources and under-utilizing hardware. We introduce FlexLLM, the first system to co-serve LLM inference and PEFT-based finetuning on shared GPUs by fusing computation at the token level. FlexLLM's static compilation optimizations -- dependent parallelization and graph pruning significantly shrink activation memory, leading to end-to-end GPU memory savings by up to 80%. At runtime, a novel token-level finetuning mechanism paired with a hybrid token scheduler dynamically interleaves inference and training tokens within each co-serving iteration, meeting strict latency SLOs while maximizing utilization. In end-to-end benchmarks on LLaMA-3.1-8B, Qwen-2.5-14B, and Qwen-2.5-32B, FlexLLM maintains inference SLO compliance at up to 20 req/s, and improves finetuning throughput by 1.9-4.8× under heavy inference workloads and 2.5-6.8× under light loads, preserving over 76% of peak finetuning progress even at peak demand. FlexLLM is publicly available at https://flexllm.github.io.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 42 of its 100 references that are in the map. First posted on arXiv 29 Feb 2024.
Builds on
42 of 100 references.
References · 42
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2020Learning to summarize from human feedbackcited by 2,588
30 more
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 872
- 2020AdapterFusion: Non-Destructive Task Composition for Transfer Learningcited by 788
- 2021GPT Understands, Toocited by 716
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 245
- 2023SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefillscited by 193
- 2016Clipper: A Low-Latency Online Prediction Serving Systemcited by 191
- 2021UniPELT: A Unified Framework for Parameter-Efficient Language Model Tuningcited by 162
- 2023A Unified Continual Learning Framework with General Parameter-Efficient Tuningcited by 125
- 2020Serving DNNs like Clockwork: Performance Predictability from the Bottom Upcited by 120
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 91
- 2024Democratizing Large Language Models via Personalized Parameter-Efficient Fine-tuningcited by 90
- 2023SpotServe: Serving Generative Large Language Models on Preemptible Instancescited by 87
- 2023Punica: Multi-Tenant LoRA Servingcited by 83
- 2022Pathways: Asynchronous Distributed Dataflow for MLcited by 82
- 2023Fairness in Serving Large Language Modelscited by 78
- 2023AutoPEFT: Automatic Configuration Search for Parameter-Efficient Fine-Tuningcited by 49
- 2019Pretraining-Based Natural Language Generation for Text Summarizationcited by 40
- 2019PREMA: A Predictive Multi-task Scheduling Algorithm For Preemptible Neural Processing Unitscited by 30
- 2022Aryl: An Elastic Cluster Scheduler for Deep Learningcited by 27
- 2018PRETZEL: Opening the Black Box of Machine Learning Prediction Serving Systemscited by 22
- 2023Angel-PTM: A Scalable and Economical Large-scale Pre-training System in Tencentcited by 8
- 2022A Survey of Multi-Tenant Deep Learning Inference on GPUcited by 7
- 2023MuxFlow: Efficient and Safe GPU Sharing in Large-Scale Production Deep Learning Clusterscited by 7
- 2022Deep Learning Workload Scheduling in GPU Datacenters: Taxonomy, Challenges and Visioncited by 6
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 3.
9 papers.
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunitiescited by 46
- 2024ConServe: Fine-Grained GPU Harvesting for LLM Online and Offline Co-Servingcited by 5
- 2025MEADOW: Memory-efficient Dataflow and Data Packing for Low Power Edge LLMscited by 4
- 2024Snake Learning: A Communication- and Computation-Efficient Distributed Learning Framework for 6Gcited by 3
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
- 2025Alchemist: Towards the Design of Efficient Online Continual Learning Systemcited by 0
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decodingcited by 0
- 2026Inference-Native Zeroth-Order Optimization for LLMscited by 0
- 2026Not Every Sync Is Safe: Calibrated DiLoCo Scheduling for Shared AI Infrastructurecited by 0
- 2026Not Every Sync Is Safe: Calibrated DiLoCo Scheduling for Shared AI Infrastructure24 Jun 2026
- 2026Inference-Native Zeroth-Order Optimization for LLMs27 May 2026
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decoding20 May 2026
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025Alchemist: Towards the Design of Efficient Online Continual Learning System3 Mar 2025
- 2025MEADOW: Memory-efficient Dataflow and Data Packing for Low Power Edge LLMs14 Feb 2025
- 2024ConServe: Fine-Grained GPU Harvesting for LLM Online and Offline Co-Serving2 Oct 2024
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunities17 Jul 2024
- 2024Snake Learning: A Communication- and Computation-Efficient Distributed Learning Framework for 6G6 May 2024