Skip to content

[Hotfix] Implement method on dense compressor #345

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
Jun 10, 2025
Merged

Conversation

kylesayrs
Copy link
Contributor

@kylesayrs kylesayrs commented Jun 9, 2025

Purpose

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
@kylesayrs kylesayrs changed the title swap to dense [Hotfix] Implement method on dense compressor Jun 9, 2025
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Copy link
Contributor

@shanjiaz shanjiaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kylesayrs kylesayrs merged commit cef3b60 into main Jun 10, 2025
1 check passed
@kylesayrs kylesayrs deleted the kylesayrs/fix-dense branch June 10, 2025 14:57
kylesayrs added a commit to vllm-project/llm-compressor that referenced this pull request Jun 10, 2025
## Purpose ##
* Fix example failure where sparsity stats were attempted to be computed
on a compressed model
* This happened because the `get_model_compressor` cannot compute
sparsity stats of a compressed model

## Prerequisites ##
* neuralmagic/compressed-tensors#345

## Changes ##
* When saving checkpoints, call `get_model_compressor` on the
decompressed model (before it is compressed, not after)
* Do not save checkpoints with sparsity stats by default, due to high
runtime

## Testing ##
* Ran example to completion with reduced training duration

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants