Lune

NSDI2023Top-tier venue

SHEPHERD: Serving DNNs in the Wild

Hong Zhang, Yupeng Tang, Anurag Khandelwal, Ion Stoica

Abstract

Model serving systems observe massive volumes of inference requests for many emerging interactive web services. These systems need to be scalable, guarantee high system goodput and maximize resource utilization across compute units. However, achieving all three goals simultaneously is challenging since inference requests have very tight latency constraints (10-500ms), and production workloads can be extremely unpredictable at such small time granularities.

We present SHEPHERD, a model serving system that achieves all three goals in the face of workload unpredictability. SHEPHERD uses a two-level design that decouples model serving into planning and serving modules. For planning, SHEPHERD exploits the insight that while individual request streams can be highly unpredictable, aggregating request streams into moderately-sized groups greatly improves predictability, permitting high resource utilization as well as scalability. For serving, SHEPHERD employs a novel online algorithm that provides guaranteed goodput under workload unpredictability by carefully leveraging preemptions and modelspecific batching properties. Evaluation results over production workloads show that SHEPHERD achieves up to 18.1× higher goodput and 1.8× better utilization compared to prior state-of-the-art, while scaling to hundreds of workers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

48 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving cites Microsecond-scale Preemption for Concurrent GPU-accelerated DNN Inferences
  • AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving cites INFaaS: Automated Model-less Inference Serving
  • Orion: Interference-aware, Fine-grained GPU Sharing for ML Applications cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • Orion: Interference-aware, Fine-grained GPU Sharing for ML Applications cites Microsecond-scale Preemption for Concurrent GPU-accelerated DNN Inferences
  • Orion: Interference-aware, Fine-grained GPU Sharing for ML Applications cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Orion: Interference-aware, Fine-grained GPU Sharing for ML Applications cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving
  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites Microsecond-scale Preemption for Concurrent GPU-accelerated DNN Inferences
  • Llumnix: Dynamic Scheduling for Large Language Model Serving cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Serving DNNs like Clockwork: Performance Predictability from the Bottom Up cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • Microsecond-scale Preemption for Concurrent GPU-accelerated DNN Inferences cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • Microsecond-scale Preemption for Concurrent GPU-accelerated DNN Inferences cites INFaaS: Automated Model-less Inference Serving
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites Microsecond-scale Preemption for Concurrent GPU-accelerated DNN Inferences
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning Serving
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • ServerlessLLM: Low-Latency Serverless Inference for Large Language Models cites Batch: machine learning inference serving on serverless platforms with adaptive batching
  • INFaaS: Automated Model-less Inference Serving cites Serving DNNs like Clockwork: Performance Predictability from the Bottom Up
  • INFaaS: Automated Model-less Inference Serving cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers48

  1. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
  2. AlpaServe: Statistical Multiplexing with Model Parallelism for Deep Learning ServingZhuohan Li, Lianmin Zheng, Yinmin Zhong, Vincent Liu et al.OSDI 2023 · 211 citations
  3. Llumnix: Dynamic Scheduling for Large Language Model ServingBiao Sun, Ziming Huang, Hanyu Zhao, Wencong Xiao et al.OSDI 2024 · 189 citations
  4. ServerlessLLM: Low-Latency Serverless Inference for Large Language ModelsYao Fu, Leyang Xue, Yeqi Huang, Andrei-Octavian Brabete et al.OSDI 2024 · 125 citations
  5. Orion: Interference-aware, Fine-grained GPU Sharing for ML ApplicationsFoteini Strati, Xianzhe Ma, Ana KlimovicEuroSys 2024 · 96 citations

Builds on8

  1. Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud ProviderMohammad Shahrad, Rodrigo Fonseca, Iñigo Goiri, Gohar Irfan Chaudhry et al.USENIX ATC 2020 · 946 citations
  2. Serving DNNs like Clockwork: Performance Predictability from the Bottom UpArpan Gujarati, Reza Karimi, Safya Alzayat, Wei Hao et al.OSDI 2020 · 392 citations
  3. INFaaS: Automated Model-less Inference ServingFrancisco Romero, Qian Li, Neeraja J. Yadwadkar, Christos KozyrakisUSENIX ATC 2021 · 325 citations
  4. Batch: machine learning inference serving on serverless platforms with adaptive batchingAhsan Ali, Riccardo Pinciroli, Feng Yan, Evgenia SmirniSC 2020 · 184 citations
  5. Microsecond-scale Preemption for Concurrent GPU-accelerated DNN InferencesMingcong Han, Hanze Zhang, Rong Chen, Haibo ChenOSDI 2022 · 153 citations

Related papers

  1. USHER: Holistic Interference Avoidance for Resource Optimized ML InferenceSudipta Saha Shubha, Haiying Shen, Anand P. IyerOSDI 2024 · 35 citations
  2. Proteus: A High-Throughput Inference-Serving System with Accuracy ScalingSohaib Ahmad, Hui Guan, Brian D. Friedman, Thomas Williams et al.ASPLOS 2024 · 31 citations
  3. Libra: Flexible Request Partitioning and Scheduling for Serving Unbalanced and Dynamic LLM WorkloadsChaoyi Ruan, Yinhe Chen, Dongqi Tian, Yandong Shi et al.NSDI 2026 · 5 citations
  4. Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-ServeAmey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan et al.OSDI 2024 · 537 citations
  5. JITServe: SLO-aware LLM Serving with Imprecise Request InformationWei Zhang, Zhiyu Wu, Yi Mu, Rui Ning et al.NSDI 2026 · 29 citations
Dusk over the sea between two cliffs drawn in fine vertical lines