paper-with-me

홈 › Papers

FTuner: A Fast Dynamic Shape Tensors Program Auto-Tuner for Deep Learning Compilers

2024-07-31 · Pengyu Mu, Linquan Wei, Yi Liu, Rui Wang

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.

📄 PDF Abstract BibTeX arXiv:2407.21418

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

TimeRL: Efficient Deep Reinforcement Learning with Polyhedral Dependence Graphs

2025-01-09 · Pedro F. Silvestre, Peter Pietzuch

Modern deep learning (DL) workloads increasingly use complex deep reinforcement learning (DRL) algorithms that generate training data within the learning loop. This results in programs with several nested loops and dynam…

CPUDeep Reinforcement LearningGPUreinforcement-learning+2

Tensors Fitting Perfectly

2021-02-26 · Adam Paszke, Brennan Saeta

Multidimensional arrays (NDArrays) are a central abstraction in modern scientific computing environments. Unfortunately, they can make reasoning about programs harder as the number of different array shapes used in an ex…

ConfTuner: Training Large Language Models to Express Their Confidence Verbally

2025-08-26 · Yibo Li, Miao Xiong, Jiaying Wu, Bryan Hooi arxiv

Large Language Models (LLMs) are increasingly deployed in high-stakes domains such as science, law, and healthcare, where accurate expressions of uncertainty are essential for reliability and trust. However, current LLMs…

Prompt Engineering

XEngine: Optimal Tensor Rematerialization for Neural Networks in Heterogeneous Environments

2022-12-19 · Manuela Schuler, Richard Membarth, Philipp Slusallek

Memory efficiency is crucial in training deep learning networks on resource-restricted devices. During backpropagation, forward tensors are used to calculate gradients. Despite the option of keeping those dependencies in…

Scheduling

A Robust Spectral Algorithm for Overcomplete Tensor Decomposition

2022-03-05 · Samuel B. Hopkins, Tselil Schramm, Jonathan Shi

We give a spectral algorithm for decomposing overcomplete order-4 tensors, so long as their components satisfy an algebraic non-degeneracy condition that holds for nearly all (all but an algebraic set of measure $0$) ten…

Tensor Decomposition