LeMix: Unified Scheduling for LLM Training and Inference on Multi-GPU Systems
Preprint
Abstract
Modern deployment of large language models (LLMs) frequently involves both inference serving and continuous retraining to stay aligned with evolving data and user feedback. Common practices separate these workloads onto distinct servers in isolated phases, causing substantial inefficiencies (e.g., GPU idleness) and delayed adaptation to new data in distributed settings. Our empirical analysis reveals that these inefficiencies stem from dynamic request arrivals during serving and workload heterogeneity in pipeline-parallel training. To address these challenges, we propose LeMix, a system for co-locating and managing concurrent LLM serving and training workloads. LeMix integrates offline profiling, execution prediction mechanisms, and runtime scheduling to dynamically adapt resource allocation based on workload characteristics and system conditions. By understanding task-specific behaviors and co-execution interference across shared nodes, LeMix improves utilization and serving quality without compromising serving responsiveness. Our evaluation shows that LeMix improves throughput by up to 3.53x, reduces inference loss by up to 0.61x, and delivers up to 2.12x higher response time SLO attainment over traditional separate setups. To our knowledge, this is the first work to uncover and exploit the opportunities of joint LLM inference and training, paving the way for more resource-efficient deployment of LLMs in production environments.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Large Language Models Empowered Autonomous Edge AI for Connected IntelligenceIEEE Communications Magazine, 2024
- SGLang: Efficient Execution of Structured Language Model Programs2024
- Merak: An Efficient Distributed DNN Training Framework With Automated 3D Parallelism for Giant Foundation ModelsIEEE Transactions on Parallel and Distributed Systems, 2023
- Tree of Thoughts: Deliberate Problem Solving with Large Language Models2023
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena2023
- Learn to Reverse DNNs from AI Programs Automatically2022
- Chain-Of-Thought Prompting Elicits Reasoning in Large Language Models2022