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
91de3bfa
"...csrc/cpu/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "67f5fcf7099aa0857230995277c264d66d2fc0ab"
Commit
91de3bfa
authored
Sep 27, 2023
by
s4rduk4r
Browse files
Clean
parent
4f76ecb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
awq/models/base.py
awq/models/base.py
+1
-2
No files found.
awq/models/base.py
View file @
91de3bfa
...
@@ -156,7 +156,7 @@ class BaseAWQForCausalLM(nn.Module):
...
@@ -156,7 +156,7 @@ class BaseAWQForCausalLM(nn.Module):
no_split_module_classes
=
[
self
.
layer_type
],
no_split_module_classes
=
[
self
.
layer_type
],
max_memory
=
max_memory
,
max_memory
=
max_memory
,
dtype
=
torch_dtype
dtype
=
torch_dtype
)
)
# Load checkpoint
# Load checkpoint
load_checkpoint_in_model
(
load_checkpoint_in_model
(
...
@@ -183,7 +183,6 @@ class BaseAWQForCausalLM(nn.Module):
...
@@ -183,7 +183,6 @@ class BaseAWQForCausalLM(nn.Module):
model
=
dispatch_model
(
model
=
dispatch_model
(
model
,
model
,
device_map
=
device_map
,
device_map
=
device_map
,
# offload_buffers=offload_folder is not None,
offload_dir
=
offload_folder
offload_dir
=
offload_folder
)
)
...
...
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