Skip to content

Conversation

@kylesayrs
Copy link
Collaborator

@kylesayrs kylesayrs commented Jun 30, 2025

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

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.

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 primarily aims to update the allowed version range for the transformers library, enabling compatibility with newer versions, including 4.53 and beyond. To ensure continued functionality and stability with these updated dependencies, several adjustments have been made to the tracing mechanisms, particularly concerning how attention mask creation functions are handled during model tracing.

Highlights

  • Dependency Update: The transformers library dependency in setup.py has been unpinned, removing the upper version limit of <4.53.0 to allow for installation of newer versions.
  • Expanded Tracing Ignore List: The tracing_ignore list in DatasetArguments has been significantly expanded to include a comprehensive set of attention mask creation functions, preventing them from being traced.
  • Centralized Tracing Ignore Configuration: The debug.py script now dynamically retrieves the default tracing ignore list from DatasetArguments, ensuring consistency across the codebase.
  • Tracer Integration for Masking: The SequentialTracer now explicitly incorporates known mask function patterns from the transformers library into its autowrap_functions list, further refining the tracing process for compatibility.
  • Autowrapper Debug Logging Refinement: Debug logging within the auto_wrapper.py module has been refactored to be more precise, logging the created function definition only after it has been fully constructed.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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 is currently in preview and 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 to provide feedback.

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.

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

This pull request unpins the transformers library version and updates tracing logic. The review focuses on addressing potential issues with mutable default arguments in debug.py to improve code robustness.

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
@kylesayrs kylesayrs force-pushed the kylesayrs/unpin-transformers-53 branch from e8e691c to cde7095 Compare June 30, 2025 22:29
@kylesayrs kylesayrs changed the base branch from main to kylesayrs/update-tracing_ignore June 30, 2025 22:30
@kylesayrs
Copy link
Collaborator Author

Copy link
Collaborator

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

Looks good to me!

@kylesayrs
Copy link
Collaborator Author

kylesayrs commented Jul 1, 2025

FYI cannot land until nightly passes: https://github.com/neuralmagic/llm-compressor-testing/actions/runs/15985058411

Seems to be vllm issues

@dsikka
Copy link
Collaborator

dsikka commented Jul 7, 2025

Custom Run: https://github.com/neuralmagic/llm-compressor-testing/actions/runs/16120509664 (for e2e)
Previous failed as ran on a100 however an h100 is required for vLLM e2e testing

@dsikka dsikka marked this pull request as ready for review July 7, 2025 15:00
@dsikka dsikka enabled auto-merge (squash) July 7, 2025 15:52
@dsikka dsikka merged commit de8b1c5 into main Jul 7, 2025
10 checks passed
@dsikka dsikka deleted the kylesayrs/unpin-transformers-53 branch July 7, 2025 15:54
aireilly pushed a commit to aireilly/llm-compressor that referenced this pull request Jul 30, 2025
## Prerequisites ##
* vllm-project#1599

---------

Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready When a PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants