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 c83f247 commit b7f61b9Copy full SHA for b7f61b9
src/compressed_tensors/utils/match.py
@@ -158,7 +158,7 @@ def match_modules_set(
158
matches = dict.fromkeys(targets, None)
159
160
# check that none are left over
161
- unmatched_keys = [match for match, value in matches.items() if value is None]
+ unmatched_keys = [match for match, value in matches.items() if value is not None]
162
if len(unmatched_keys):
163
raise ValueError(f"Unable to match targets into set: {unmatched_keys}")
164
0 commit comments