vllm.model_executor.warmup.jit_warmup_triton_helper ¶
Functions:
-
triton_scalar_specialization_rep–Return an integer with the same default Triton JIT specialization.
triton_scalar_specialization_rep(value) ¶
Return an integer with the same default Triton JIT specialization.
For an ordinary integer argument, Triton's cache key contains its inferred type (i32, i64, or u64) and one of three value classes:
1is specialized as the exact constant1.- Multiples of 16 receive a
tt.divisibility = 16attribute. - All other values have no value specialization.
Warmup only needs one concrete value for each cache-key class. This helper returns 1 for the exact-one class and otherwise returns a divisible or generic representative while preserving the inferred integer type.
This applies only to non-constexpr integer arguments using Triton's default specialization. Do not use it for arguments listed in do_not_specialize or do_not_specialize_on_alignment.