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]>
Signed-off-by: Isotr0py <[email protected]>
  • Loading branch information
rahul-tuli authored and Isotr0py committed Feb 2, 2025
1 parent 0c6e88a commit 14ecc2c
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 14ecc2c

Please sign in to comment.