Skip to content

Comments

[Examples] Qwen3_vl#2303

Merged
dsikka merged 2 commits intomainfrom
kylesayrs/qwen3_vl_example
Jan 28, 2026
Merged

[Examples] Qwen3_vl#2303
dsikka merged 2 commits intomainfrom
kylesayrs/qwen3_vl_example

Conversation

@kylesayrs
Copy link
Collaborator

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
@github-actions
Copy link

👋 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.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kylesayrs, 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 introduces a new example for the Qwen3-VL-8B-Instruct multimodal model, demonstrating the complete workflow for applying AWQ quantization. It covers loading the model, preparing a multimodal dataset, configuring the AWQ recipe, executing the oneshot compression, and verifying the quantized model's performance through sample generation. This addition is crucial for showcasing multimodal model compression capabilities and resolves a prior offloading issue, enhancing the robustness of the compression framework.

Highlights

  • New Qwen3-VL Example: Introduces a comprehensive example script for applying AWQ quantization to the Qwen3-VL-8B-Instruct multimodal model, demonstrating the full compression workflow.
  • AWQ Quantization Workflow: The example showcases the end-to-end process, including model loading, multimodal dataset preparation (Flickr30k), defining an AWQ recipe, performing oneshot quantization, and verifying the quantized model's generation capabilities.
  • Multimodal Data Handling: Includes custom preprocessing for image data (base64 encoding) and a specific data collator designed for multimodal inputs, ensuring proper handling of diverse data types.
  • Offloading Issue Resolution: This example is enabled by a recent fix for an offloading issue, ensuring correct and robust functionality for multimodal model compression within the framework.

🧠 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.

Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
@mergify mergify bot added the documentation Improvements or additions to documentation label Jan 28, 2026
@kylesayrs kylesayrs added ready When a PR is ready for review and removed documentation Improvements or additions to documentation labels Jan 28, 2026
@shanjiaz shanjiaz added the ready When a PR is ready for review label Jan 28, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request introduces a new example script for quantizing the Qwen3-VL model using the AWQModifier. The script demonstrates loading the model, preparing a multimodal dataset, applying the AWQ quantization recipe, and then performing sample generation and saving the compressed model. The overall structure is clear and follows the typical workflow for llmcompressor examples. One area for improvement is the robustness of the data collator regarding batch size expectations.

@mergify mergify bot added the documentation Improvements or additions to documentation label Jan 28, 2026
@kylesayrs
Copy link
Collaborator Author

@dsikka Do you know why mergify thinks that this is documentation?

@dsikka
Copy link
Collaborator

dsikka commented Jan 28, 2026

@dsikka Do you know why mergify thinks that this is documentation?

Any example file is technically a doc but we can change that rule

Copy link
Collaborator

@brian-dellabetta brian-dellabetta left a comment

Choose a reason for hiding this comment

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

🥇

@dsikka dsikka merged commit dd221a4 into main Jan 28, 2026
22 of 25 checks passed
@dsikka dsikka deleted the kylesayrs/qwen3_vl_example branch January 28, 2026 17:56
cajeonrh pushed a commit to cajeonrh/llm-compressor that referenced this pull request Feb 10, 2026
## Purpose ##
* Fixes vllm-project#2068
* Offloading issue was fixed by
vllm-project#2148

---------

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

documentation Improvements or additions to documentation ready When a PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Qwen3-VL-8B-Instruct AWQ can't be done on GPU

4 participants