We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33df50f commit 6e1ec39Copy full SHA for 6e1ec39
src/compressed_tensors/quantization/lifecycle/apply.py
@@ -331,10 +331,12 @@ def find_name_or_class_matches(
331
3. matches on module names
332
"""
333
targets = sorted(targets, key=lambda x: ("re:" in x, x))
334
- matches = _find_matches(name, targets) + _find_matches(
335
- module.__class__.__name__, targets, check_contains
336
- )
337
- return [match for match in matches if match is not None]
+ if isinstance(targets, Iterable):
+ matches = _find_matches(name, targets) + _find_matches(
+ module.__class__.__name__, targets, check_contains
+ )
338
+ matches = [match for match in matches if match is not None]
339
+ return matches
340
341
342
def _find_matches(
0 commit comments