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
0e52a5c2
Unverified
Commit
0e52a5c2
authored
Apr 13, 2024
by
TechxGenus
Committed by
GitHub
Apr 12, 2024
Browse files
Fix starcoder2 fused norm (#442)
parent
e9f62694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
awq/models/starcoder2.py
awq/models/starcoder2.py
+3
-7
No files found.
awq/models/starcoder2.py
View file @
0e52a5c2
...
@@ -110,13 +110,9 @@ class Starcoder2Fuser:
...
@@ -110,13 +110,9 @@ class Starcoder2Fuser:
module
.
self_attn
.
k_proj
,
module
.
self_attn
.
k_proj
,
module
.
self_attn
.
v_proj
,
module
.
self_attn
.
v_proj
,
)
)
norm_1
=
FasterTransformerRMSNorm
(
# SC2 use normal LayerNorm
module
.
input_layernorm
.
weight
,
module
.
input_layernorm
.
eps
norm_1
=
module
.
input_layernorm
)
norm_2
=
module
.
post_attention_layernorm
norm_2
=
FasterTransformerRMSNorm
(
module
.
post_attention_layernorm
.
weight
,
module
.
post_attention_layernorm
.
eps
,
)
blocks
.
append
(
blocks
.
append
(
LlamaLikeBlock
(
LlamaLikeBlock
(
hidden_size
=
self
.
model
.
config
.
hidden_size
,
hidden_size
=
self
.
model
.
config
.
hidden_size
,
...
...
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