vllm.compilation.inductor_pass
CallableInductorPass
¶
Bases: InductorPass
This class is a wrapper for a callable that automatically provides an implementation of the UUID.
Source code in vllm/compilation/inductor_pass.py
InductorPass
¶
Bases: Torch25CustomGraphPass
A custom graph pass that uses a hash of its source as the UUID. This is defined as a convenience and should work in most cases.
Source code in vllm/compilation/inductor_pass.py
hash_dict
staticmethod
¶
Utility method to hash a dictionary, can alternatively be used for uuid. :return: A sha256 hash of the json rep of the dictionary.
Source code in vllm/compilation/inductor_pass.py
hash_source
staticmethod
¶
Utility method to hash the sources of functions or objects. :param srcs: strings or objects to add to the hash. Objects and functions have their source inspected. :return:
Source code in vllm/compilation/inductor_pass.py
is_applicable_for_shape
¶
PassContext
¶
Source code in vllm/compilation/inductor_pass.py
get_pass_context
¶
get_pass_context() -> PassContext
pass_context
¶
A context manager that stores the current pass context, usually it is a list of sizes to specialize.