Skip to content

[Help Wanted] Refactor module / parameter matching logic #405

@kylesayrs

Description

@kylesayrs
  • There currently exist 7 different functions for matching modules/parameters. Let's consolidate this logic by using only the functions defined in utils/match.py
Function Used for/by Maps to
apply_quantization_config Quantization match_named_modules
expand_target_names Compressor match_named_parameters
is_target Quantization is_match
find_name_or_class_matches Quantization match_name or match_class
_find_matches Quantization Delete
get_nested_weight_mappings Compressor match_named_parameters
match_param_name get_nested_weight_mappings Delete,match_name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions