Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion vptq/layers/model_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ def make_quant_linear(
if layer_conf is None and tail_name in shared_layer_config:
layer_conf = shared_layer_config[tail_name]
if layer_conf is not None:
# Pop enable_proxy_error to avoid duplicate kwarg when saved config
# (from algorithm branch) also contains it — see issue #196
conf = dict(layer_conf)
Comment on lines +46 to +48
conf.pop("enable_proxy_error", None)
new_module = target_layer(
**layer_conf,
**conf,
enable_proxy_error=False,
dtype=sub_module.weight.dtype,
)
Expand Down