vllm.model_executor.layers.quantization.quark.utils
_is_equal_or_regex_match
¶
Checks whether a value is exactly equal or a regex match for target if target starts with 're:'. If check_contains is set to True, additionally checks if the target string is contained within the value.
Source code in vllm/model_executor/layers/quantization/quark/utils.py
check_equal_or_regex_match
¶
Checks whether a layer_name is exactly equal or a regex match for if target starts with 're:' to any target in list.
Source code in vllm/model_executor/layers/quantization/quark/utils.py
deep_compare
¶
Source code in vllm/model_executor/layers/quantization/quark/utils.py
should_ignore_layer
¶
should_ignore_layer(
layer_name: Optional[str],
ignore: Iterable[str],
fused_mapping: Mapping[
str, list[str]
] = MappingProxyType({}),
) -> bool