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
text-generation-inference
Commits
f8521900
Unverified
Commit
f8521900
authored
Aug 08, 2024
by
drbh
Committed by
GitHub
Aug 08, 2024
Browse files
fix: prefer hidden_activation over hidden_act in gemma2 (#2381)
parent
2ca59806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/text_generation_server/models/custom_modeling/flash_gemma2_modeling.py
...on_server/models/custom_modeling/flash_gemma2_modeling.py
+1
-1
No files found.
server/text_generation_server/models/custom_modeling/flash_gemma2_modeling.py
View file @
f8521900
...
@@ -265,7 +265,7 @@ class FlashGemma2Attention(torch.nn.Module):
...
@@ -265,7 +265,7 @@ class FlashGemma2Attention(torch.nn.Module):
class
Gemma2MLP
(
nn
.
Module
):
class
Gemma2MLP
(
nn
.
Module
):
def
__init__
(
self
,
prefix
,
config
,
weights
):
def
__init__
(
self
,
prefix
,
config
,
weights
):
super
().
__init__
()
super
().
__init__
()
act
=
config
.
hidden_act
act
=
config
.
hidden_act
ivation
self
.
act
=
(
self
.
act
=
(
ACT2FN
[
act
]
ACT2FN
[
act
]
if
"gelu"
not
in
act
if
"gelu"
not
in
act
...
...
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