Skip to content

Commit 52e7074

Browse files
authored
Remove redundant call (#349)
Unless I am missing something, this call into _scheme_from_targets is redundant
1 parent adae77b commit 52e7074

File tree

1 file changed

+1
-3
lines changed
  • src/compressed_tensors/quantization/lifecycle

1 file changed

+1
-3
lines changed

src/compressed_tensors/quantization/lifecycle/apply.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ def apply_quantization_config(
183183
replace_module(model, name, compressed_linear)
184184

185185
# target matched - add layer and scheme to target list
186-
submodule.quantization_scheme = _scheme_from_targets(
187-
target_to_scheme, targets, name
188-
)
186+
submodule.quantization_scheme = scheme
189187

190188
names_to_scheme[name] = submodule.quantization_scheme
191189

0 commit comments

Comments
 (0)