Skip to content

Commit

Permalink
Fix: cases with empty sparsity config (vllm-project#12057)
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Tuli <[email protected]>
  • Loading branch information
rahul-tuli authored and jikunshang committed Jan 21, 2025
1 parent c4e26c6 commit f999f68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _sparsity_scheme_map_from_config(
:return: A dictionary mapping target layer names to their corresponding
sparsity compression configurations
"""
if (sparsity_config := config.get(SPARSITY_CONFIG_NAME)) is None:
if not (sparsity_config := config.get(SPARSITY_CONFIG_NAME)):
return dict()

sparsity_config = SparsityCompressionConfig.model_validate(
Expand Down

0 comments on commit f999f68

Please sign in to comment.