Conversation
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
|
👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review. Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request deprecates and removes all support for Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request removes support for sparse24 compression, which is a significant change. The modifications are consistent across the codebase, including removing logic from the main library and updating/removing relevant tests. The changes are well-aligned with the goal of deprecating this feature. I've found a minor issue in the test suite that could be improved for clarity.
| @pytest.mark.parametrize( | ||
| "quant_style, quant_type, is_24, expected_quant_compressor, " | ||
| "expected_sparsity_compressor", | ||
| "quant_style,quant_type,is_24,expected_format", | ||
| [ | ||
| ("W8A8", "int", False, "int-quantized", "dense"), | ||
| ("W4A16", "int", False, "pack-quantized", "dense"), | ||
| ("W8A16", "int", False, "pack-quantized", "dense"), | ||
| ("W8A8", "int", True, "int-quantized", "sparse-24-bitmask"), | ||
| ("W4A16", "int", True, "marlin-24", "dense"), | ||
| ("W8A16", "int", True, "marlin-24", "dense"), | ||
| ("W8A8", "float", False, "float-quantized", "dense"), | ||
| ("W8A16", "float", False, "naive-quantized", "dense"), | ||
| ("W8A8", "float", True, "float-quantized", "sparse-24-bitmask"), | ||
| ("W8A16", "float", True, "naive-quantized", "dense"), | ||
| ("W8A8", "int", False, "int-quantized"), | ||
| ("W4A16", "int", False, "pack-quantized"), | ||
| ("W8A16", "int", False, "pack-quantized"), | ||
| ("W8A8", "float", False, "float-quantized"), | ||
| ("W8A16", "float", False, "naive-quantized"), | ||
| ("W8A16", "float", True, "naive-quantized"), | ||
| ], | ||
| ) | ||
| def test_correct_compressor_inferred( | ||
| quant_style, | ||
| quant_type, | ||
| is_24, | ||
| expected_quant_compressor, | ||
| expected_sparsity_compressor, | ||
| expected_format, | ||
| ): |
There was a problem hiding this comment.
The is_24 parameter appears to be a leftover from refactoring and is no longer used within the test body. This can be confusing for future readers of the code. To improve clarity and maintainability, it should be removed from the test function signature and the pytest.mark.parametrize decorator. The test cases should also be updated to remove the now-redundant parameter and a duplicate test case.
@pytest.mark.parametrize(
"quant_style,quant_type,expected_format",
[
("W8A8", "int", "int-quantized"),
("W4A16", "int", "pack-quantized"),
("W8A16", "int", "pack-quantized"),
("W8A8", "float", "float-quantized"),
("W8A16", "float", "naive-quantized"),
],
)
def test_correct_compressor_inferred(
quant_style,
quant_type,
expected_format,
):Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
|
This pull request has merge conflicts that must be resolved before it can be |
| test_type: "regression" | ||
| compressed_model_stub: "nm-testing/tinyllama-fp8-dynamic-compressed" | ||
| skeleton_model_stub: "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T" No newline at end of file | ||
| compressed_model_stub: "nm-testing/tinyllama-fp8-dynamic-compressed" No newline at end of file |
There was a problem hiding this comment.
Why are these all showing up as line changes? Did you remove the new line?
HDCharles
left a comment
There was a problem hiding this comment.
Seems fine though you should fix those newlines
Purpose
Corequisites
Testing