Skip to content

Commit

Permalink
Fix memory issue when running run_awq
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-vidas authored Feb 26, 2024
1 parent a8d9527 commit ef2ce1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions awq/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def build_model_and_enc(model_path):
model_base=None,
model_name=get_model_name_from_path(model_path),
device="cpu",
**{"use_cache": False}
)
else:
config = AutoConfig.from_pretrained(model_path, trust_remote_code=True)
Expand Down

0 comments on commit ef2ce1d

Please sign in to comment.