Commit 7ba31254 authored by Casper Hansen's avatar Casper Hansen
Browse files

Fix ignore patterns

parent db8ba322
......@@ -292,9 +292,9 @@ class BaseAWQForCausalLM(nn.Module):
if not os.path.isdir(model_path):
ignore_patterns = ["*msgpack*", "*h5*"]
if safetensors:
ignore_patterns.extend(["*.pt", "*.bin"])
ignore_patterns.extend(["*.pt*", "*.bin*"])
else:
ignore_patterns.append("*safetensors*")
ignore_patterns.append("*.safetensors*")
model_path = snapshot_download(model_path, ignore_patterns=ignore_patterns)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment