-
Notifications
You must be signed in to change notification settings - Fork 23
Refactor module / parameter matching logic #406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
…_or_class_matches` Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Removed `yield_matched_targets` and `warn_on_unmatched_ignores` and updated rest of code Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
This function is currently used by llm-compressor so adding it back with a deprecation warning for now. Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good! few comments
Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the updates, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really impressive work, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for updating!
This reverts commit d99d38b.
* Update `apply_quantiation_config` to use `match_named_modules` Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Refactor usages of `expand_target_names`, `is_target`, and `find_name_or_class_matches` Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Small fixes Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Simplify signature of `match_named_modules` Removed `yield_matched_targets` and `warn_on_unmatched_ignores` and updated rest of code Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Ensure `match_targets` doesn't return duplicates Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Remove `preprocess_name` parameter from `match_named_modules` Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Update match.py util fn signatures and small fixes Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Restore `find_name_or_class_matches` as a deprecated function This function is currently used by llm-compressor so adding it back with a deprecation warning for now. Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Use deprecated decorator instead of manual deprecation warning Signed-off-by: Fynn Schmitt-Ulms <[email protected]> * Update syntax of of optional types * Remove default None target value in match utils --------- Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Closes #405
match_named_modules
match_named_modules