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: 2 additions & 0 deletions gptqmodel/looper/module_looper.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def loop(self, fail_safe: bool = False, **kwargs):
with ThreadPoolExecutor(max_workers=max_workers) as executor:
futures = []

@torch.inference_mode()
def process_module(name, m):
# prevent cuda sync memory ctx bugs
m_device = get_device(m)
Expand Down Expand Up @@ -541,6 +542,7 @@ def process_module(name, m):
torch_sync()
for reverse_p in reversed(self.processors):
for name in processed_subset:
@torch.inference_mode()
def finalize_module(module):
# prevent cuda sync memory ctx bugs
m_device = get_device(module)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_qqq_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
framework=EVAL.LM_EVAL,
tasks=[EVAL.LM_EVAL.ARC_CHALLENGE])

print(f"{eval_results}")
print(f"{eval_results}")