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
25f57e2e
Unverified
Commit
25f57e2e
authored
Jul 01, 2024
by
drbh
Committed by
GitHub
Jul 01, 2024
Browse files
fix: use weights from base_layer (#2141)
parent
b4552f9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
...ion_server/models/custom_modeling/flash_llama_modeling.py
+3
-1
No files found.
server/text_generation_server/models/custom_modeling/flash_llama_modeling.py
View file @
25f57e2e
...
@@ -309,7 +309,9 @@ class LlamaMLP(nn.Module):
...
@@ -309,7 +309,9 @@ class LlamaMLP(nn.Module):
dtype
=
hidden_states
.
dtype
,
dtype
=
hidden_states
.
dtype
,
device
=
"cuda"
,
device
=
"cuda"
,
)
)
_custom_C
.
LLMM_Silu
(
self
.
gate_up_proj
.
linear
.
weight
,
hidden_states
,
out
,
8
)
_custom_C
.
LLMM_Silu
(
self
.
gate_up_proj
.
base_layer
.
linear
.
weight
,
hidden_states
,
out
,
8
)
return
self
.
down_proj
(
out
,
adapter_data
)
return
self
.
down_proj
(
out
,
adapter_data
)
else
:
else
:
gate_up_states
=
self
.
gate_up_proj
(
hidden_states
,
adapter_data
)
gate_up_states
=
self
.
gate_up_proj
(
hidden_states
,
adapter_data
)
...
...
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