vllm.kernels.helion.case_key
¶
Structured key for identifying kernel config/autotune/benchmark cases.
Classes:
-
CaseKey–Immutable, hashable dict for identifying kernel cases.
CaseKey
¶
Immutable, hashable dict for identifying kernel cases.
Used as the key for config lookup, autotuning, benchmarking, and input generation. Behaves like a read-only dict and can be used as a dict key or in sets.
The canonical string form (__str__) is stable JSON with sorted
keys. Use CaseKey.default() for the default/fallback key.
The regular constructor requires at least one key-value pair::
CaseKey({"intermediate": 2048, "numtokens": 256})
CaseKey.default() # default/fallback
Methods:
-
default–Create a default case key (empty).
-
is_default–Return True if this is the default case key (empty).