Skip to content

Raise warning for 24 compressed sparse-only models #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ def is_sparse24_bitmask_supported(
return False

if not is_model_quantized(model):
# non-quantized 2:4 sparse models are supported
logger.warning(
"Compressed Sparse-only 2:4 models are not supported in vLLM<=0.7.0, "
"consider saving with `disable_sparse_compression` set, "
"`model.save_pretrained(..., disable_sparse_compression=True)`"
)
return True

# when model is quantized, and has 2:4 sparsity
Expand Down