vllm.model_executor.warmup.jit_warmup_tilelang_helper ¶
Compile-only helpers for TileLang JIT warmup.
Classes:
-
TileLangWarmupTensor–Minimal tensor-like object accepted by TileLang compile().
-
VllmTileLangJitKernel–TileLang owner whose runtime launch specification is reused for warmup.
Functions:
-
compile_tilelang–Compile one TileLang specialization and populate its call cache.
-
kernel_launcher–Launch TileLang from declarative kernel and runtime argument tuples.
TileLangWarmupTensor dataclass ¶
Minimal tensor-like object accepted by TileLang compile().
TileLang builds its cache key and TIR from tensor dtype, shape and stride. This object deliberately has no storage, so compile-only warmup does not allocate GPU memory and does not launch the kernel.
Source code in vllm/model_executor/warmup/jit_warmup_tilelang_helper.py
VllmTileLangJitKernel ¶
Bases: VllmJitKernel[CompileKeyT], Generic[CompileKeyT]
TileLang owner whose runtime launch specification is reused for warmup.
Methods:
-
warmup_inputs–Return runtime-shaped inputs that reproduce one compile key.
Source code in vllm/model_executor/warmup/jit_warmup_tilelang_helper.py
warmup_inputs(compile_key) abstractmethod ¶
Return runtime-shaped inputs that reproduce one compile key.
compile_tilelang(jit_impl, *args, **kwargs) ¶
Compile one TileLang specialization and populate its call cache.
TileLang's compile() materializes the kernel without launching it. We also store the compiled kernel in _kernel_cache using the same parsed key as __call__ so runtime does not report a cache miss for an already materialized specialization.
Source code in vllm/model_executor/warmup/jit_warmup_tilelang_helper.py
kernel_launcher(call_fn) ¶
Launch TileLang from declarative kernel and runtime argument tuples.