Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion gptqmodel/looper/module_looper.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def loop(self, fail_safe: bool = False, **kwargs):
if hasattr(subset[name], 'forward_hook'):
original_hook = processor.pre_process_fwd_hook(name)
subset[name].forward_hook = self._masked_hook_wrapper(processor, original_hook)
if is_last:
if is_last and processor.fwd_after_process:
subset[name].forward_hook_last = True
else:
# Older registration path
Expand Down
1 change: 1 addition & 0 deletions gptqmodel/quantization/gptqv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __init__(self, module: NamedModule, qcfg: Optional[QuantizeConfig] = None):

super().__init__(module, qcfg)

self.H = None
self.dXXT = None

self.native_inps = module.state.pop(NATIVE_INPUTS_STATE_KEY)
Expand Down