Skip to content

Commit

Permalink
Small fix to logic
Browse files Browse the repository at this point in the history
Signed-off-by: mzusman <[email protected]>
  • Loading branch information
mzusman committed Dec 10, 2024
1 parent 704f29a commit fcce742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def get_num_layers_by_block_type(

if self.is_attention_free and attn_block_type:
return 0
if is_full_attn_model and attn_block_type:
if is_full_attn_model and not attn_block_type:
return 0

start, end = self.get_layers_start_end_indices(parallel_config)
Expand Down

0 comments on commit fcce742

Please sign in to comment.