Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
3d158cdc
Unverified
Commit
3d158cdc
authored
Nov 15, 2024
by
wchen61
Committed by
GitHub
Nov 15, 2024
Browse files
Add default value to avoid Falcon crash (#5363) (#10347)
Signed-off-by:
wchen61
<
wchen61@foxmail.com
>
parent
02dbf30e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/model_executor/models/falcon.py
vllm/model_executor/models/falcon.py
+3
-0
No files found.
vllm/model_executor/models/falcon.py
View file @
3d158cdc
...
...
@@ -250,6 +250,9 @@ class FalconDecoderLayer(nn.Module):
self
.
mlp
=
FalconMLP
(
config
,
quant_config
)
self
.
config
=
config
if
(
not
hasattr
(
config
,
"num_ln_in_parallel_attn"
)):
config
.
num_ln_in_parallel_attn
=
None
if
(
config
.
num_ln_in_parallel_attn
is
None
and
config
.
new_decoder_architecture
):
config
.
num_ln_in_parallel_attn
=
2
...
...
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