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
0e77dbc1
"vscode:/vscode.git/clone" did not exist on "73b59f5203b5df71175dfd71f613b9bd380b4531"
Unverified
Commit
0e77dbc1
authored
Nov 18, 2023
by
Casper
Committed by
GitHub
Nov 18, 2023
Browse files
Fix MPT (#206)
parent
87350fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
awq/models/mpt.py
awq/models/mpt.py
+3
-0
No files found.
awq/models/mpt.py
View file @
0e77dbc1
...
@@ -31,6 +31,9 @@ class MptAWQForCausalLM(BaseAWQForCausalLM):
...
@@ -31,6 +31,9 @@ class MptAWQForCausalLM(BaseAWQForCausalLM):
@
staticmethod
@
staticmethod
def
get_layers_for_scaling
(
module
:
OldMptBlock
,
input_feat
,
module_kwargs
):
def
get_layers_for_scaling
(
module
:
OldMptBlock
,
input_feat
,
module_kwargs
):
layers
=
[]
layers
=
[]
if
module_kwargs
.
get
(
"output_attentions"
)
is
not
None
:
module_kwargs
.
pop
(
"output_attentions"
)
# attention input
# attention input
layers
.
append
(
dict
(
layers
.
append
(
dict
(
...
...
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