Skip to content

Conversation

fynnsu
Copy link
Contributor

@fynnsu fynnsu commented Aug 21, 2025

Reopen #406

fynnsu added 13 commits July 29, 2025 15:17
…_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]>
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]>
@fynnsu fynnsu mentioned this pull request Aug 21, 2025
Copy link
Contributor

@kylesayrs kylesayrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDIT: see next comment

Copy link
Contributor

@kylesayrs kylesayrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this part removed?

Copy link
Contributor

@kylesayrs kylesayrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet

@fynnsu fynnsu merged commit d4354b0 into neuralmagic:main Aug 21, 2025
1 check passed
Etelis added a commit to Etelis/compressed-tensors that referenced this pull request Sep 11, 2025
* 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

* Test warning raised on unmatched target

---------

Signed-off-by: Fynn Schmitt-Ulms <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants