Skip to content

Conversation

tlrmchlsmth
Copy link
Member

Introduced in #25603, but not sure why the last commit passed the precommit there. I'm hitting precommit failures locally when merging main.

Signed-off-by: Tyler Michael Smith <[email protected]>
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 addresses a pre-commit failure by centralizing the import of triton. The change in vllm/model_executor/layers/batch_invariant.py replaces a direct import of triton and triton.language with an import from vllm.triton_utils. This is the correct approach for handling this optional dependency within the project, ensuring consistency and proper behavior when Triton is not installed. The fix is sound and I have no further recommendations.

@robertgshaw2-redhat robertgshaw2-redhat enabled auto-merge (squash) September 27, 2025 13:58
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 27, 2025
@vllm-bot vllm-bot merged commit f9df8b4 into main Sep 27, 2025
15 of 22 checks passed
@vllm-bot vllm-bot deleted the fix_precommit branch September 27, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants