vllm.tilelang_utils ¶
Functions:
-
tilelang_jit–Apply
tilelang.jit, deferring until first use on ROCm.
_DeferredTileLangJitKernel ¶
Stand-in for a tilelang.jit kernel that decorates on first use.
Both attribute access and calling apply the decoration. Required for compile-only JIT warmup on platforms that defer import of tilelang.
Source code in vllm/tilelang_utils/__init__.py
_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 use 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.