Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Lei, Cheng, Yu, Shi, Yining, Tang, Zhengju, Mo, Zhiwen, Xie, Wenhao, Ma, Lingxiao, Xia, Yuqing, Xue, Jilong, Yang, Fan, Yang, Zhi
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2504.17577
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912348943417344
author Wang, Lei
Cheng, Yu
Shi, Yining
Tang, Zhengju
Mo, Zhiwen
Xie, Wenhao
Ma, Lingxiao
Xia, Yuqing
Xue, Jilong
Yang, Fan
Yang, Zhi
author_facet Wang, Lei
Cheng, Yu
Shi, Yining
Tang, Zhengju
Mo, Zhiwen
Xie, Wenhao
Ma, Lingxiao
Xia, Yuqing
Xue, Jilong
Yang, Fan
Yang, Zhi
contents Modern AI workloads rely heavily on optimized computing kernels for both training and inference. These AI kernels follow well-defined data-flow patterns, such as moving tiles between DRAM and SRAM and performing a sequence of computations on those tiles. However, writing high-performance kernels remains complex despite the clarity of these patterns. Achieving peak performance requires careful, hardware-centric optimizations to fully leverage modern accelerators. While domain-specific compilers attempt to reduce the burden of writing high-performance kernels, they often struggle with usability and expressiveness gaps. In this paper, we present TileLang, a generalized tiled programming model for more efficient AI Kernel programming. TileLang decouples scheduling space (thread binding, layout, tensorize and pipeline) from dataflow, and encapsulated them as a set of customization annotations and primitives. This approach allows users to focus on the kernel's data-flow itself, while leaving most other optimizations to compilers. We conduct comprehensive experiments on commonly-used devices, across numerous experiments, our evaluation shows that TileLang can achieve state-of-the-art performance in key kernels, demonstrating that its unified block-and-thread paradigm and transparent scheduling capabilities deliver both the power and flexibility demanded by modern AI system development.
format Preprint
id arxiv_https___arxiv_org_abs_2504_17577
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TileLang: A Composable Tiled Programming Model for AI Systems
Wang, Lei
Cheng, Yu
Shi, Yining
Tang, Zhengju
Mo, Zhiwen
Xie, Wenhao
Ma, Lingxiao
Xia, Yuqing
Xue, Jilong
Yang, Fan
Yang, Zhi
Machine Learning
Modern AI workloads rely heavily on optimized computing kernels for both training and inference. These AI kernels follow well-defined data-flow patterns, such as moving tiles between DRAM and SRAM and performing a sequence of computations on those tiles. However, writing high-performance kernels remains complex despite the clarity of these patterns. Achieving peak performance requires careful, hardware-centric optimizations to fully leverage modern accelerators. While domain-specific compilers attempt to reduce the burden of writing high-performance kernels, they often struggle with usability and expressiveness gaps. In this paper, we present TileLang, a generalized tiled programming model for more efficient AI Kernel programming. TileLang decouples scheduling space (thread binding, layout, tensorize and pipeline) from dataflow, and encapsulated them as a set of customization annotations and primitives. This approach allows users to focus on the kernel's data-flow itself, while leaving most other optimizations to compilers. We conduct comprehensive experiments on commonly-used devices, across numerous experiments, our evaluation shows that TileLang can achieve state-of-the-art performance in key kernels, demonstrating that its unified block-and-thread paradigm and transparent scheduling capabilities deliver both the power and flexibility demanded by modern AI system development.
title TileLang: A Composable Tiled Programming Model for AI Systems
topic Machine Learning
url https://arxiv.org/abs/2504.17577