Use modules list for sequential epoch end#2682
Use modules list for sequential epoch end#2682brian-dellabetta merged 6 commits intovllm-project:mainfrom
Conversation
|
👋 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. |
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe PR updates ChangesSequential Epoch End API Refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Require two reviewsWonderful, this rule succeeded.PRs labelled "two-reviews" must have at least two approving reviews before merging.
|
|
/ready |
There was a problem hiding this comment.
Code Review
This pull request refactors the sequential_epoch_end lifecycle event to pass a list of modules instead of a Subgraph object, updating LifecycleCallbacks, the AutoRound modifier, and the sequential pipeline accordingly. A new test verifies the updated event signature. Feedback was provided to replace a runtime assert with an explicit ValueError in the AutoRound modifier to prevent validation from being bypassed in optimized Python environments.
|
/ready |
|
Local testing passed. Could a maintainer please add the ready label as I do not have permissions? |
|
The quality checks have failed. Please run |
|
fix quality |
|
looks good but needs to pass CI, fix quality issue and then this is ready to land, great work! |
|
Updated the branch with latest upstream main and reran local checks: ..venv312\Scripts\ruff.exe check --no-cache src tests examples setup.py Ruff checks passed. |
Fixes #2666
SUMMARY:
Changed LifecycleCallbacks.sequential_epoch_end to pass a list of modules instead of the full subgraph. The sequential pipeline now derives the module list from each subgraph, and AutoRound consumes that list directly.
TEST PLAN:
Ran focused lifecycle and sequential pipeline tests locally with Python 3.12:
python -m pytest tests\llmcompressor\core\test_session_functions.py
python -m pytest tests\llmcompressor\pipelines\sequential\test_helpers.py tests\llmcompressor\core\test_session_functions.py
Result: 10 passed.