tile-ai/tilelang
Domain-specific language designed to streamline the development of high-performance GPU/CPU/Accelerators kernels
Python · ★ 8,512 · Fork 862 · 在 GitHub 查看
在手机上浏览源码、订阅每日 AI 趋势日报与项目架构深度解读:获取 CopoHub 客户端(iOS & HarmonyOS)→
GitHub Trending 上榜记录
tile-ai/tilelang 已在 GitHub Trending 每日榜单上榜 2 天,最高排名第 11,首次上榜 2026-10-01,最近一次上榜 2026-10-02。
| 日期 | 排名 | Star | 当日增长 |
|---|---|---|---|
| 2026-10-02 | #11 | 8,192 | +163 |
| 2026-10-01 | #11 | 8,079 | +157 |
同期上榜的项目
- Panniantong/Agent-Reach – Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
- JuliusBrussee/caveman – why use many token when few token do trick. Skill + local proxy for coding agents: shorter answers, smaller tool output, every original recoverable.
- obra/superpowers – An agentic skills framework & software development methodology that works.
- DietrichGebert/ponytail – Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
- pbakaus/impeccable – The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
- mattpocock/skills – Skills for Real Engineers. Straight from my .agents directory.
TileLang (tile-ai/tilelang) 项目深度剖析与商业评估报告
TileLang (tile-ai/tilelang) 项目深度剖析与商业评估报告
1. 核心定位与商业落地价值
TileLang 定位于面向 AI 加速器的领域特定语言(DSL)+ 编译器基础设施,其根本痛点是:在 CUDA/HIP/Metal/Ascend 等异构后端上手工编写高性能算子(GEMM、FlashAttention、MLA、Dequant GEMM)成本极高,而 Triton 等现有方案在显式内存层级控制、Warp 特化、TMA/TCGEN5 等新硬件特性暴露上存在抽象泄漏。TileLang 通过 Pythonic 的 T.Kernel / T.allocshared / T.Pipelined / T.gemm 原语,在保留 TVM 级编译优化的同时,把"tile 级"编程模型作为一等公民。
商业落地场景: 推理引擎算子库:DeepSeek MLA/V3.2/V4、GDN、Linear Attention 等示例直接对标 vLLM/SGLang 的核心 kernel,可作为自研推理栈的算子底座。 国产算力适配:Ascend 950 原生后端 + MetaX/HYGON/Moore Threads/Sunrise 生态适配器,构成信创场景下的关键卖点(多后端语言方言 PR #2734 是战略级动作)。 量化与稀疏算子:MXFP8/MXFP4 block-scaled GEMM、2:4 稀疏 T.gemmsp、INT4 GEMM,直接服务 Blackwell/AMD CDNA4 时代的低比特推理。
竞品差异化与护城河: vs Triton:TileLang 显式暴露 shared/fragment/TMEM 层级与 T.Pipelined(numstages),对 Blackwell TCGEN5、TMA multicast、cluster 等特性支持更早、更细。 vs CUTLASS/CuTe DSL:TileLang 提供 CuTe DSL 作为后端之一(PR #1421/#1855),形成"高层 DSL 写一次、多后端编译"的差异化路径。 护城河核心在于TVM 生态继承 + 多后端 registry 抽象 + 北大/微软研究院背书,以及围绕 DeepSeek 系列模型的高频 kernel 迭代速度。
2. 核心架构设计与技术深度
TileLang 采用分层编译器架构,可拆解为四层:
1. 语言层(Python DSL):tilelang.language as T,通过 AST 重写将 Python 语法映射为 TileLang IR。@tilelang.jit 在首次调用时做形状特化(shape specialization),实现零开销抽象。 2. IR 层(TIRX):PR #2216 将 TileLang IR 迁移至 TVM 的 TIRX 表示,复用 TVM 成熟的 pass 基础设施;PR #2751 引入源码位置追踪,把 Python 行号注入 TIRX,使编译错误可定位到用户代码。 3. Pass 与调度层:T.Pipelined 触发软件流水线变换;T.Parallel 做循环映射与向量化;warp specialization(PR #1909)自动生成 producer-consumer 分工;Z3 集成(PR #1367)增强符号算术化简能力。 4. 后端 CodeGen 层:PR #2442 将 device/host CodeGen 收敛到 backend registry,支持 CUDA/ROCm/Metal/LLVM/Ascend/CuTe DSL/WebGPU 多目标 dispatch。
在 README 中展示上榜徽章
[](https://github.fq6825.top/repo/tile-ai/tilelang)