Open Access
- 1 November 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 18-32
Abstract
Modern deep learning systems embrace the compilation idea to self generate code of a deep learning model to catch up the rapidly changed deep learning operators and newly emerged hardware platforms. The performance of the self-generated code is guaranteed via auto-tuning frameworks which normally take a long time to find proper execution schedules for the given operators, which hurts both user experiences and time-to-the-market in terms of model developments and deployments. To efficiently deliver a high-performance schedule upon requests, in this paper, we present Lorien, an open source infrastructure, to tune the operators and orchestrate the tuned schedules in a systematic way. Lorien is designed to be extensible to state-of-the-art auto-tuning frameworks, and scalable to coordinate a number of compute resources for its tuning tasks with fault tolerance. We leveraged Lorien to extract thousands of operator-level tuning tasks from 29 widely-used models in Gluon CV model zoo [22], and tune them on x86 CPU, ARM CPU, and NVIDIA GPU to construct a database for queries. In addition, to deliver reasonably high performance schedules for unseen workloads in seconds or minutes, Lorien integrates an AutoML solution to train a performance cost model with collected large-scale datasets. Our evaluation shows that the AutoML-based solution is accurate enough to enable zero-shot tuning, which does not fine-tune the cost model during tuning nor perform on-device measurements, and is able to find decent schedules with at least 10x less time than existing auto-tuning frameworks.Keywords
This publication has 12 references indexed in Scilit:
- Elastic Machine Learning Algorithms in Amazon SageMaker2020
- FlexTensor2020
- Analytical cache modeling and tilesize optimization for tensor contractions2019
- Auto-Keras: An Efficient Neural Architecture Search System2019
- Learning to optimize halide with tree search and random programsACM Transactions on Graphics, 2019
- Google Vizier2017
- XGBoost2016
- Automatically scheduling halide image processing pipelinesACM Transactions on Graphics, 2016
- HalideACM SIGPLAN Notices, 2013
- Cumulated gain-based evaluation of IR techniquesACM Transactions on Information Systems, 2002