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
36913edb
Commit
36913edb
authored
Jun 25, 2023
by
Jiaming Tang
Browse files
[Minor] add comments
parent
bef5dd2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
awq/quantize/auto_scale.py
awq/quantize/auto_scale.py
+2
-1
No files found.
awq/quantize/auto_scale.py
View file @
36913edb
...
@@ -235,11 +235,12 @@ def auto_scale_block(module, module_kwargs,
...
@@ -235,11 +235,12 @@ def auto_scale_block(module, module_kwargs,
module2inspect
=
module
,
kwargs
=
module_kwargs
,
module2inspect
=
module
,
kwargs
=
module_kwargs
,
))
))
# attn out
# attn out
# Please refer to https://github.com/mit-han-lab/llm-awq/issues/2#issuecomment-1606297469
"""
"""
scales_list.append(_auto_get_scale(
scales_list.append(_auto_get_scale(
prev_op=module.self_attention.query_key_value,
prev_op=module.self_attention.query_key_value,
layers=[module.self_attention.dense],
layers=[module.self_attention.dense],
inp=input_feat['self_attn.dense'],
inp=input_feat['self_att
entio
n.dense'],
))
))
"""
"""
# fc1
# fc1
...
...
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