vllm.tilelang_utils ¶
Functions:
-
tilelang_jit–Apply
tilelang.jit, deferring until first call on ROCm.
_ensure_tilelang_imported() ¶
Bind the tilelang and T module globals, importing them if needed.
On ROCm, this runs on the first kernel call instead of at import time.
Raises:
-
ImportError–If TileLang is not installed.
Source code in vllm/tilelang_utils/__init__.py
tilelang_jit(kernel_function) ¶
Apply tilelang.jit, deferring until first call on ROCm.
ROCm defers JIT decoration so importing the caller's module does not require TileLang immediately. CUDA keeps the eager decoration behavior.
The kernel body parsed by TileLang references T as an unqualified global, so on the deferred ROCm path this rebinds T/tilelang in the decorated function's own module globals once they become available.