Nimble: 딥러닝을 위한 경량 및 병렬 GPU 작업 스케줄링
Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learning
Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learning
@misc{kwon2020nimble,
title = {Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learning},
author = {Woosuk Kwon and Gyeong-In Yu and Eunji Jeong and Byung-Gon Chun},
year = {2020},
eprint = {2012.02732},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2012.02732}
}
Kwon, W., Yu, G.-I., Jeong, E., & Chun, B.-G. (2020). Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learning [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.02732
KWON W, YU GI, JEONG E, et al. Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learning[EB/OL]. (2020-12-04)[2026-11-29]. https://arxiv.org/abs/2012.02732.
초록
딥러닝 (DL) 프레임워크는 GPU 를 활용하여 딥러닝 추론 및 학습의 속도를 향상시킵니다. 이상적으로 딥러닝 프레임워크는 GPU 의 계산 능력을 최대한 활용하여 실행 시간이 GPU 에 할당된 계산량에 의존해야 합니다. 그러나 GPU 작업 스케줄링에서 기존 딥러닝 프레임워크는 큰 스케줄링 오버헤드와 불필요한 직렬 실행과 같은 비효율성을 겪고 있습니다. 이에 따라 우리는 최소한의 스케줄링 오버헤드로 GPU 작업을 병렬로 실행하는 딥러닝 실행 엔진인 Nimble 을 제안합니다. Nimble 은 ahead-of-time (AoT) 스케줄링이라는 새로운 기법을 도입합니다. 여기서 스케줄링 절차는 GPU 커널 실행 전에 완료되어 런타임 동안 대부분의 스케줄링 오버헤드를 제거합니다. 또한 Nimble 은 단일 GPU 의 여러 GPU 스트림을 활용하여 GPU 작업 실행을 자동으로 병렬화합니다. 다양한 신경망에 대한 평가 결과, PyTorch 와 비교하여 Nimble 은 추론과 학습을 각각 최대 22.34x 와 3.61x 만큼 가속화합니다. 또한 Nimble 은 TensorRT 와 TVM 과 같은 최상위 수준의 추론 시스템을 각각 최대 2.81x 와 1.70x 만큼 우월한 성능을 보입니다.
Deep learning (DL) frameworks take advantage of GPUs to improve the speed of DL inference and training. Ideally, DL frameworks should be able to fully utilize the computation power of GPUs such that the running time depends on the amount of computation assigned to GPUs. Yet, we observe that in scheduling GPU tasks, existing DL frameworks suffer from inefficiencies such as large scheduling overhead and unnecessary serial execution. To this end, we propose Nimble, a DL execution engine that runs GPU tasks in parallel with minimal scheduling overhead. Nimble introduces a novel technique called ahead-of-time (AoT) scheduling. Here, the scheduling procedure finishes before executing the GPU kernel, thereby removing most of the scheduling overhead during run time. Furthermore, Nimble automatically parallelizes the execution of GPU tasks by exploiting multiple GPU streams in a single GPU. Evaluation on a variety of neural networks shows that compared to PyTorch, Nimble speeds up inference and training by up to 22.34x and 3.61x, respectively. Moreover, Nimble outperforms state-of-the-art inference systems, TensorRT and TVM, by up to 2.81x and 1.70x, respectively.