Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
7ba31254
"docs/vscode:/vscode.git/clone" did not exist on "c19ae1c1769ef9d5ade592dd3feb389ad09aea7e"
Commit
7ba31254
authored
Sep 13, 2023
by
Casper Hansen
Browse files
Fix ignore patterns
parent
db8ba322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
awq/models/base.py
awq/models/base.py
+3
-3
No files found.
awq/models/base.py
View file @
7ba31254
...
...
@@ -292,10 +292,10 @@ 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
)
model_weights_path
=
model_path
+
f
'/
{
model_filename
}
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment