[Paper Review] MIGPerf: A Comprehensive Benchmark for Deep Learning Training and Inference Workloads on Multi-Instance GPUs
MIGPerf is an open-source benchmarking tool that streamlines performance evaluation of deep learning training and inference workloads on Multi-Instance GPU (MIG)-enabled GPUs. It enables comprehensive characterization of MIG performance, compares MIG with software-based GPU sharing, and evaluates framework compatibility—revealing MIG's superior low-latency performance under large batch sizes and isolation benefits for large models.
New architecture GPUs like A100 are now equipped with multi-instance GPU (MIG) technology, which allows the GPU to be partitioned into multiple small, isolated instances. This technology provides more flexibility for users to support both deep learning training and inference workloads, but efficiently utilizing it can still be challenging. The vision of this paper is to provide a more comprehensive and practical benchmark study for MIG in order to eliminate the need for tedious manual benchmarking and tuning efforts. To achieve this vision, the paper presents MIGPerf, an open-source tool that streamlines the benchmark study for MIG. Using MIGPerf, the authors conduct a series of experiments, including deep learning training and inference characterization on MIG, GPU sharing characterization, and framework compatibility with MIG. The results of these experiments provide new insights and guidance for users to effectively employ MIG, and lay the foundation for further research on the orchestration of hybrid training and inference workloads on MIGs. The code and results are released on https://github.com/MLSysOps/MIGProfiler. This work is still in progress and more results will be published soon.
Motivation & Objective
- Address the lack of holistic, practical benchmarking for Multi-Instance GPU (MIG) technology in real-world deep learning workloads.
- Overcome the challenges of manual benchmarking and tuning for MIG partitioning and workload isolation.
- Compare MIG with software-based GPU sharing (MPS) across training and inference workloads to identify optimal deployment scenarios.
- Evaluate the compatibility of major deep learning frameworks (PyTorch, TensorFlow, etc.) with MIG partitions to guide framework development.
- Provide actionable insights for efficient orchestration of hybrid training and inference workloads on MIG-enabled GPUs.
Proposed method
- Design and implement MIGPerf, an open-source tool with a modular backend and controller to automate MIG GPU partitioning and workload benchmarking.
- Abstract a standardized benchmarking workflow for training and inference workloads on MIG instances, enabling rapid setup with minimal configuration.
- Integrate MIGPerf with monitoring tools (e.g., Prometheus, Jupyter) via structured, machine-readable output formats for easy result analysis.
- Conduct controlled experiments across multiple models (ResNet, BERT), batch sizes, and MIG partitioning schemes (e.g., 1/7, 2/7, 4/7 GI) to measure performance and latency.
- Compare MIG with MPS (software-based GPU sharing) under identical conditions to evaluate isolation benefits and interference effects.
- Test framework compatibility by deploying models on different MIG instances (MIG 0, MIG 1, etc.) and measuring device visibility and performance.
Experimental results
Research questions
- RQ1How does MIG performance compare to software-based GPU sharing (MPS) in terms of latency and stability under varying batch sizes?
- RQ2What is the impact of model size and batch size on tail latency in MIG versus MPS environments?
- RQ3To what extent are popular deep learning frameworks (PyTorch, TensorFlow, Triton, Ray Serve) compatible with MIG GPU partitions beyond MIG 0?
- RQ4How does physical isolation in MIG improve performance for large models compared to shared GPU environments?
- RQ5What are the practical performance trade-offs between MIG and MPS in real-world training and inference workloads?
Key findings
- MIG significantly outperforms MPS in tail latency under large batch sizes (e.g., batch size = 8), with lower and more stable latency across ResNet18 and ResNet50 models.
- The performance gap between MIG and MPS increases with larger batch sizes, indicating MIG’s superior handling of resource contention and interference.
- For large models, MIG provides lower latency than MPS due to physical isolation of memory and cache, which prevents cross-workload interference.
- All tested training frameworks (PyTorch, TensorFlow, MXNet, PaddlePaddle) only detect and utilize MIG 0, failing to recognize or access MIG 1 and beyond.
- All serving frameworks (TensorFlow Serving, Triton Inference Server, Ray Serve) similarly fail to detect or deploy on MIG 1, highlighting a critical compatibility gap.
- The inability of frameworks to detect multiple MIG instances necessitates manual container binding via Docker, which introduces operational overhead and limits dynamic resource reconfiguration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.