Go to file
yyda 6af4c9074b feat: solve puzzle 04 (broadcast mul+relu forward & backward) 2026-07-15 22:37:12 +08:00
ans [Fix] Fix shape spec typo in puzzle 5 (#10) 2026-04-28 22:31:02 +08:00
common [Release] Initial version (#2) 2026-01-31 00:37:44 +08:00
docs [Docs] Add i18n Tutorial For Puzzles (#5) 2026-03-31 20:14:54 +08:00
images [Release] Initial version (#2) 2026-01-31 00:37:44 +08:00
puzzles feat: solve puzzle 04 (broadcast mul+relu forward & backward) 2026-07-15 22:37:12 +08:00
scripts [Release] Initial version (#2) 2026-01-31 00:37:44 +08:00
.gitignore [Release] Initial version (#2) 2026-01-31 00:37:44 +08:00
README.md [Release] Initial version (#2) 2026-01-31 00:37:44 +08:00
ruff.toml [Release] Initial version (#2) 2026-01-31 00:37:44 +08:00

README.md

TileLang Puzzles

TileLang Puzzles is a set of puzzles to help you learn TileLang, a domain-specific language for developing high-performance deep learning kernels. We will start from some trivial examples and smoothly progress to modern kernels such as GEMM and FlashAttention, aiming to provide a comprehensive understanding of the design principles of TileLang.

Getting Started

Environment Configuration

The only thing you need to install is TileLang and its dependency. To check your installation, run:

python -c "import tilelang; print(tilelang.__version__);"

You can also run our environment check script to confirm that TileLang and your GPU are configured correctly:

python3 scripts/check_tilelang_env.py

Run Puzzles

We provide 10 puzzles in the puzzles/ directory, each as a standalone executable script. Reference implementations are available in ans/ for comparison. To run a puzzle, use:

python3 puzzles/01-copy.py
python3 ans/01-copy.py

Acknowledgements

This is project is inspired by the following projects: Triton Puzzles & Triton Puzzles Lite, LeetGPU.