Skip to content

Commit

Permalink
Add default value to avoid Falcon crash (#5363) (#10347)
Browse files Browse the repository at this point in the history
Signed-off-by: wchen61 <[email protected]>
  • Loading branch information
wchen61 authored Nov 15, 2024
1 parent 02dbf30 commit 3d158cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vllm/model_executor/models/falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def __init__(
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
Expand Down

0 comments on commit 3d158cd

Please sign in to comment.