We address the problem of scheduling jobs with non-identical sizes and distinct processing times on a single batch processing machine, aiming at minimizing the makespan. The extensive literature on this NP-hard problem mostly focuses on heuristics. Using an arc flow-based optimization approach, we construct an ingenious formulation that represents it as a problem of determining flows in graphs. The size of the formulation increases with the number of distinct sizes and processing times among the jobs, but it does not increase with the number of jobs, which makes it very effective to solve large instances to optimality, especially when multiple jobs have equal size and processing time. We compare our model to other models from the literature showing its clear superiority on benchmark instances, and proving optimality of random instances with up to 100 million jobs.
Fast Catch-Up, Late Switching: Optimal Batch Size Scheduling via Functional Scaling Laws
School of Mathematical Sciences, Peking University(北京大学数学科学学院);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心);School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学学院);State Key Laboratory of Cognitive Intelligence, University of Science and Technology of China(中国科学技术大学认知智能国家重点实验室);Meituan, Beijing(美团(北京));AI for Science Institute, Beijing(北京人工智能科学研究院)
LLM Serving Optimization with Variable Prefill and Decode Lengths
Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系);Department of Management Science and Engineering, Stanford University(斯坦福大学管理科学与工程系);Department of Industrial Engineering and Decision Analytics, HKUST(香港科技大学工业工程与决策分析系)