[compressed-tensors] update find_matched_target order to prioritize fused name matches over class match (#49483)

Signed-off-by: Brian Dellabetta <bdellabe@redhat.com>
This commit is contained in:
Brian Dellabetta
2026-07-28 17:03:08 +00:00
committed by GitHub
parent 05a0814863
commit 8a7b3c2990
@@ -145,8 +145,8 @@ def find_matched_target(
matched_target = (
_find_first_match(layer_name, targets)
or _find_first_match(module.__class__.__name__, targets, True)
or _match_fused_layer(layer_name, targets, fused_mapping)
or _find_first_match(module.__class__.__name__, targets, True)
)
return matched_target