FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilers
Mu, Pengyu, Wei, Linquan, Liu, Yi, Wang, Rui
–arXiv.org Artificial Intelligence
Many artificial intelligence models process input data of different lengths and resolutions, making the shape of the tensors dynamic. The performance of these models depends on the shape of the tensors, which makes it difficult to optimize the tensors before the model runs. There are two common solutions to this problem. The first is to add useless data to the input to match a pre-optimized tensor library. The second is to use small basic tensors to create a tensor that is closest in size to the input data and then tune it to minimize padding. However, this second solution can be time-consuming. This paper proposes a new technique for deep learning compilers called FTuner. Instead of using a large design space or training a cost model, we use an abstract computational unit called the uKernel to patch together small, various-sized tensors to match the shape of the input tensor. We determine the shape of the uKernel using an analytic hardware information model. Experiments show that the FTuner can achieve comparable operators and end-to-end performance to vendor libraries and achieves 3\% speedup on existing auto-tuner with the model-training compiler while reducing tuning time by two orders of magnitude.
arXiv.org Artificial Intelligence
Jul-31-2024
- Country:
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Asia
- China > Beijing
- Beijing (0.04)
- Middle East > Saudi Arabia
- Riyadh Province > Riyadh (0.04)
- South Korea > Seoul
- Seoul (0.04)
- China > Beijing
- Europe
- Italy > Calabria
- Catanzaro Province > Catanzaro (0.04)
- Switzerland > Vaud
- Lausanne (0.04)
- United Kingdom > Scotland
- City of Edinburgh > Edinburgh (0.04)
- Italy > Calabria
- North America
- Canada > British Columbia
- United States
- California
- Los Angeles County > Long Beach (0.04)
- San Diego County
- San Francisco County > San Francisco (0.14)
- Santa Clara County
- Santa Clara (0.04)
- Sunnyvale (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Massachusetts > Suffolk County
- Boston (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- New York (0.04)
- California
- Africa > Ethiopia
- Genre:
- Research Report (0.64)
- Technology: