[do-not-merge] examples][awq] Update AWQ examples to stacked recipe pattern#2460
[do-not-merge] examples][awq] Update AWQ examples to stacked recipe pattern#2460dzhengAP wants to merge 1 commit intovllm-project:mainfrom
Conversation
…zationModifier/GPTQModifier)
AWQModifier is a smoothing pre-pass, not a standalone quantizer.
Updated examples to use the canonical stacked recipe:
recipe = [AWQModifier(...), QuantizationModifier(...)]
- llama_example.py: explicit stacked AWQ + RTN recipe
- llama_gptq_example.py: new example for AWQ + GPTQ composition
- README.md: documents both stacking patterns
Relates to vllm-project#2327
|
👋 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 refactors the AWQ (Activation Aware Quantization) examples to align with a new, standardized "stacked recipe pattern." This pattern explicitly separates the 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 successfully updates the AWQ examples to use the canonical stacked recipe pattern, which improves clarity and aligns with best practices. The changes in llama_example.py and the new llama_gptq_example.py are well-executed and clear. However, the README.md for the examples/awq directory appears to have been mistakenly replaced with unrelated content. This should be corrected to provide accurate documentation for the updated examples.
| @@ -1,47 +1,39 @@ | |||
| # AWQ Quantization # | |||
| # MAI 2026 Efficient LLMs Challenge — Optimized On-Device Inference | |||
There was a problem hiding this comment.
The content of this README appears to have been replaced with information from an unrelated project ("MAI 2026 Efficient LLMs Challenge"). The documentation should be updated to reflect the new stacked recipe pattern for AWQ as demonstrated in the examples, rather than being replaced with this content.
Summary
Updates AWQ examples and README to use the canonical stacked recipe pattern
per #2327.
AWQModifieris a smoothing pre-pass (likeSmoothQuantModifier).The correct usage is:
Changes
llama_example.py: updated to explicit[AWQModifier, QuantizationModifier]stackllama_gptq_example.py: new example showing[AWQModifier, GPTQModifier]README.md: documents both patternsRelated
Part of #2327