Skip to content

Commit

Permalink
ignore onnx in ignore_patterns (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-hansen authored Aug 4, 2024
1 parent b9e9b73 commit 4d5c4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awq/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def _load_config(
):
# [STEP 1] Download model if path is not a directory
if not os.path.isdir(model_path):
ignore_patterns = ["*msgpack*", "*h5*", "optimizer.pt"]
ignore_patterns = ["*msgpack*", "*h5*", "optimizer.pt", "*.onnx*"]
if safetensors:
ignore_patterns.extend(["*.pt*", "*.bin*", "consolidated*"])
else:
Expand Down

0 comments on commit 4d5c4a9

Please sign in to comment.