Skip to content

Commit

Permalink
Add default value to avoid Falcon crash (vllm-project#5363) (vllm-pro…
Browse files Browse the repository at this point in the history
…ject#10347)

Signed-off-by: wchen61 <wchen61@foxmail.com>
Signed-off-by: rickyx <rickyx@anyscale.com>
  • Loading branch information
wchen61 authored and rickyyx committed Nov 20, 2024
1 parent f25a69a commit fc35bf1
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 fc35bf1

Please sign in to comment.