NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimal Workload Placement on Multi-Instance GPUs

Bekir O. Turkkan, Pavankumar Murali, Pavithra Harsha, Rohan Arora, Gerard Vanloo, Chandra NarayanaswamiarXiv 2024 · DOI

Introduction

Researchers from IBM have developed a new framework to optimize how Large Language Model (LLM) workloads are assigned to partitioned GPUs. By using Mixed-Integer Programming (MIP) and specialized heuristics, their approach reduces GPU wastage by up to 70% and can improve GPU utilization by nearly 3x compared to standard scheduling methods.

The Challenge of GPU Partitioning

Modern hardware like the Nvidia A100 or H100 supports Multi-Instance GPU (MIG), a feature that allows a single physical GPU to be carved into up to seven smaller, isolated instances. However, using this feature efficiently is a complex variation of the "bin-packing" problem. LLM workloads vary wildly in size, and MIG partitions must follow strict hardware rules regarding which "slices" of compute and memory they can occupy.

Simple placement strategies often lead to fragmentation. In these cases, a GPU might have enough total free resources to host a model, but because those resources are not contiguous or correctly aligned, the workload remains "pending" while expensive hardware sits idle.

A Multi-Stage Optimization Framework

The authors propose a framework consisting of three core components: a Placement Recommender, a Migration Planner, and an Executor.

The system leverages Kubernetes Dynamic Resource Allocation (DRA) to allow for the flexible, non-disruptive creation and deletion of GPU partitions. The core innovation lies in two distinct placement strategies:

  1. Mixed-Integer Programming (MIP): A global optimization model called WPM (Workload Placement and Migration). It treats the cluster as a multi-dimensional bin-packing problem, aiming to maximize workloads placed while minimizing GPUs used and migration overhead.
  2. Rule-based Heuristics: A faster approach designed for massive clusters. It handles initial deployment by finding the "tightest" fit, compaction to vacate underutilized GPUs, and full reconfiguration for maintenance windows.

Key Insights: The "Index" Constraint

Unlike standard cloud instances, MIG partitions are constrained by hardware-level alignment. For example, a "3g.40gb" partition on an A100 can only start at specific slice indices. Ignoring these rules is the primary cause of scheduling failures. Furthermore, the paper identifies "wastage" specifically as slices that become unusable because of how other slices were placed—essentially "blocking" larger workloads from using remaining resources.

Performance and Efficiency

The researchers evaluated their methods using a simulation framework mimicking real-world GPU clusters of up to 80 GPUs. The MIP approach showed up to a 2.85x improvement in the number of GPUs required to host the same set of workloads compared to baseline heuristics.

An illustration of workload compaction, demonstrating how migration reduces wastage and frees up physical GPUs.

As shown in the compaction example, the framework can move workloads to consolidate resources. In this scenario, the system achieves a significant increase in memory and compute utilization (reaching 93-94%) and successfully frees up an entire physical GPU (GPU3).

Conclusion and Future Directions

While the current work focuses on LLM inference, the proposed methods significantly outperform standard load balancers, reducing resource wastage by up to 70%. Future work will focus on quantifying the "real-world" cost of migrations in terms of latency and integrating the framework with InstaSlice, an open-source tool for actuating these placements in live Kubernetes production environments.

Summary updated

BibTeX
@misc{turkkan2024optimal,
  author = {Bekir O. Turkkan and Pavankumar Murali and Pavithra Harsha and Rohan Arora and Gerard Vanloo and Chandra Narayanaswami},
  title = {{Optimal Workload Placement on Multi-Instance GPUs}},
  year = {2024},
  eprint = {2409.06646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.06646},
}
Figure