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
b190df35
Commit
b190df35
authored
Aug 14, 2023
by
Jiaming Tang
Browse files
[Minor] add a comment
parent
9b427ebc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
awq/quantize/auto_scale.py
awq/quantize/auto_scale.py
+1
-0
No files found.
awq/quantize/auto_scale.py
View file @
b190df35
...
@@ -213,6 +213,7 @@ def auto_scale_block(module, module_kwargs,
...
@@ -213,6 +213,7 @@ def auto_scale_block(module, module_kwargs,
module2inspect
=
module
.
self_attn
,
kwargs
=
module_kwargs
,
module2inspect
=
module
.
self_attn
,
kwargs
=
module_kwargs
,
))
))
# attn out
# attn out
# Please refer to https://github.com/mit-han-lab/llm-awq/pull/67#issue-1850622696
if
module
.
self_attn
.
v_proj
.
weight
.
shape
==
module
.
self_attn
.
o_proj
.
weight
.
shape
:
if
module
.
self_attn
.
v_proj
.
weight
.
shape
==
module
.
self_attn
.
o_proj
.
weight
.
shape
:
scales_list
.
append
(
_auto_get_scale
(
scales_list
.
append
(
_auto_get_scale
(
prev_op
=
module
.
self_attn
.
v_proj
,
prev_op
=
module
.
self_attn
.
v_proj
,
...
...
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