Skip to content

Commit f999f68

Browse files
rahul-tulijikunshang
authored andcommitted
Fix: cases with empty sparsity config (vllm-project#12057)
Signed-off-by: Rahul Tuli <[email protected]>
1 parent c4e26c6 commit f999f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _sparsity_scheme_map_from_config(
113113
:return: A dictionary mapping target layer names to their corresponding
114114
sparsity compression configurations
115115
"""
116-
if (sparsity_config := config.get(SPARSITY_CONFIG_NAME)) is None:
116+
if not (sparsity_config := config.get(SPARSITY_CONFIG_NAME)):
117117
return dict()
118118

119119
sparsity_config = SparsityCompressionConfig.model_validate(

0 commit comments

Comments
 (0)