Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
cbe94391
Unverified
Commit
cbe94391
authored
Jan 15, 2025
by
Rahul Tuli
Committed by
GitHub
Jan 15, 2025
Browse files
Fix: cases with empty sparsity config (#12057)
Signed-off-by:
Rahul Tuli
<
rahul@neuralmagic.com
>
parent
994fc655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py
...ers/quantization/compressed_tensors/compressed_tensors.py
+1
-1
No files found.
vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py
View file @
cbe94391
...
...
@@ -113,7 +113,7 @@ class CompressedTensorsConfig(QuantizationConfig):
: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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment