-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add **kwargs parameter to v1 FlashAttentionImpl as catch-all #33504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Should help vllm-project#33470 Signed-off-by: Hao Jin <hjjn.amzn@gmail.com>
|
Related Documentation No published documentation to review for changes on this repository. |
There was a problem hiding this 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 adds a **kwargs parameter to FlashAttentionImpl.__init__ to act as a catch-all for unused arguments, improving forward compatibility. While this is a good practice, it can hide potential bugs from typos in argument names. I've suggested adding a warning log for any unexpected keyword arguments to make debugging easier.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Hao Jin <hjjn.amzn@gmail.com>
|
Hi @haojin2, the pre-commit checks have failed. Please run: uv pip install pre-commit
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, Tip Is
|
Signed-off-by: Hao Jin <hjjn.amzn@gmail.com>
|
Hi @haojin2, the pre-commit checks have failed. Please run: uv pip install pre-commit
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, Tip Is
|
Signed-off-by: Hao Jin <hjjn.amzn@gmail.com>
|
Hi @haojin2, the pre-commit checks have failed. Please run: uv pip install pre-commit
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, Tip Is
|
Signed-off-by: Hao Jin <hjjn.amzn@gmail.com>
Purpose
Should help #33470
Test Plan
TBA
Test Result
TBA
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.