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
  
  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
  
  Source code in vllm/model_executor/layers/quantization/quark/utils.py
  
 should_ignore_layer(
    layer_name: str | None,
    ignore: Iterable[str],
    fused_mapping: Mapping[
        str, list[str]
    ] = MappingProxyType({}),
) -> bool