-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[serve.llm] Remove upstreamed workarounds 1/3 #54512
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
[serve.llm] Remove upstreamed workarounds 1/3 #54512
Conversation
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.
Summary of Changes
Hello @eicherseiji, 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 focuses on code cleanup and maintenance by removing several temporary workarounds. These workarounds were originally introduced to mitigate issues in upstream libraries, but with recent fixes integrated into those dependencies, they are no longer necessary, simplifying our codebase.
Highlights
- Transformers Workaround Removal: I've removed the explicit
init_hf_modules()
call and its import fromllm_engine.py
. This workaround was previously needed to prevent pickle errors when usingtrust_remote_code=True
with Hugging Facetransformers
models, indicating the underlying issue has been resolved upstream. - vLLM Environment Variable Cleanup: I've eliminated the conditional deletion of the
CUDA_VISIBLE_DEVICES
environment variable invllm_engine.py
. This specific workaround, tracked by aTODO
referencing avLLM
pull request, is now obsolete as the fix has been merged upstream.
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
-
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. ↩
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 removes two workarounds that are no longer needed due to fixes in upstream libraries (transformers
and vllm
). The changes are correct and improve code maintainability.
c7c24c8
to
6117217
Compare
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
7e838f3
to
721aa17
Compare
Services failing to start due to:
But seems like we're using the V0 engine since explicit env variable was removed in #54440
But nightly tests are successful, so need to determine why these changes are causing them to fail. |
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
Signed-off-by: Seiji Eicher <[email protected]>
Signed-off-by: Seiji Eicher <[email protected]>
I suspect removing the Next PR: #56170 |
Failing release test is jailed, will be fixed with #56104 ![]() |
Release test may have been a true positive. If the LMCache integration relies on setting |
Signed-off-by: Seiji Eicher <[email protected]>
Why are these changes needed?
No longer needed since the behavior was aligned upstream:
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.