Skip to content

vllm.model_executor.warmup.jit_warmup_tilelang_helper

Compile-only helpers for TileLang JIT warmup.

Classes:

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.

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.

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.

kernel_launcher(call_fn)

Launch TileLang from declarative kernel and runtime argument tuples.