Skip to main content
QUICK REVIEW

[论文解读] MIGPerf: A Comprehensive Benchmark for Deep Learning Training and Inference Workloads on Multi-Instance GPUs

Huaizheng Zhang, Yuanming Li|arXiv (Cornell University)|Jan 1, 2023
Advanced Neural Network ApplicationsComputer Science被引用 3
一句话总结

MIGPerf 是一个开源基准测试工具,可简化在支持多实例 GPU(MIG)的 GPU 上对深度学习训练和推理工作负载的性能评估。它能够全面表征 MIG 性能,对比 MIG 与基于软件的 GPU 资源共享机制,评估框架兼容性,揭示了 MIG 在大批次设置下具有更优的低延迟性能,以及在大模型场景下的资源隔离优势。

ABSTRACT

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.

研究动机与目标

  • 解决现实世界中深度学习工作负载下对多实例 GPU(MIG)技术缺乏整体性、实用型基准测试的问题。
  • 克服 MIG 分区与工作负载隔离的手动基准测试与调优挑战。
  • 在训练和推理工作负载下,将 MIG 与基于软件的 GPU 共享(MPS)进行对比,以识别最优部署场景。
  • 评估主流深度学习框架(如 PyTorch、TensorFlow 等)与 MIG 分区的兼容性,为框架开发提供指导。
  • 为在 MIG 支持的 GPU 上高效编排混合训练与推理工作负载提供可操作的见解。

提出的方法

  • 设计并实现 MIGPerf,一个具有模块化后端和控制器的开源工具,用于自动化 MIG GPU 分区与工作负载基准测试。
  • 抽象出一种标准化的 MIG 实例上训练与推理工作负载的基准测试工作流,实现快速部署并最小化配置需求。
  • 通过结构化、机器可读的输出格式,将 MIGPerf 与监控工具(如 Prometheus、Jupyter)集成,便于结果分析。
  • 在多个模型(ResNet、BERT)、批次大小及 MIG 分区方案(如 1/7、2/7、4/7 GI)下开展受控实验,测量性能与延迟。
  • 在相同条件下将 MIG 与 MPS(基于软件的 GPU 共享)进行对比,评估隔离优势与干扰效应。
  • 通过在不同 MIG 实例(MIG 0、MIG 1 等)上部署模型,并测量设备可见性与性能,测试框架兼容性。

实验结果

研究问题

  • RQ1在不同批次大小下,MIG 在延迟和稳定性方面与基于软件的 GPU 共享(MPS)相比如何?
  • RQ2模型大小与批次大小对 MIG 与 MPS 环境下尾部延迟的影响是什么?
  • RQ3主流深度学习框架(如 PyTorch、TensorFlow、Triton、Ray Serve)在 MIG 0 之外的 MIG 分区中,其兼容性程度如何?
  • RQ4与共享 GPU 环境相比,MIG 中的物理隔离如何提升大模型的性能?
  • RQ5在现实世界的训练与推理工作负载中,MIG 与 MPS 之间的实际性能权衡是什么?

主要发现

  • 在大批次设置下(如批次大小 = 8),MIG 显著优于 MPS,表现出更低且更稳定的尾部延迟,适用于 ResNet18 和 ResNet50 模型。
  • 随着批次大小增加,MIG 与 MPS 之间的性能差距扩大,表明 MIG 在处理资源竞争与干扰方面更具优势。
  • 对于大模型,由于内存与缓存的物理隔离,MIG 的延迟低于 MPS,有效防止了跨工作负载的干扰。
  • 所有测试的训练框架(PyTorch、TensorFlow、MXNet、PaddlePaddle)仅能检测并使用 MIG 0,无法识别或访问 MIG 1 及更高编号的实例。
  • 所有推理框架(TensorFlow Serving、Triton Inference Server、Ray Serve)同样无法检测或在 MIG 1 上部署,暴露出严重的兼容性缺口。
  • 框架无法检测多个 MIG 实例,导致必须通过 Docker 手动绑定容器,这引入了操作开销,并限制了动态资源重新配置的能力。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。