-
Notifications
You must be signed in to change notification settings - Fork 36
Enable module state_dict compression, simplify compression logic #302
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
Conversation
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! great job!
src/compressed_tensors/compressors/quantized_compressors/base.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to run all our e2e tests before this can land.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, we should wait to merge until after release
…m-project#302) * use map_module_to_scheme, _should_save_zp Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> * remove unused import Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> * remove unused imports Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> * rename to _skip_zp Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> * type hint nit Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> * safetensors function signature is weird Signed-off-by: Kyle Sayers <kylesayrs@gmail.com> --------- Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
…gic (vllm-project#302)" (vllm-project#306) This reverts commit 4438d08.
Purpose
ModelCompressor.compressto compress individual modules, as is required by Reduce memory requirementsChanges
map_modules_to_quant_args->map_module_to_schemestr, qargs, or tuple of qargsto just theschemeapplied to that moduleModelCompressor.compress_skip_zp