-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[FIX] Vllm guided decoding params #3662
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
Conversation
for more information, see https://pre-commit.ci
Summary of ChangesHello @Datta0, 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 improving compatibility with external libraries, primarily Highlights
Using Gemini Code AssistThe 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 by creating a comment using either
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 Limitations & Feedback Gemini Code Assist 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. 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
|
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 correctly addresses a breaking change in vllm by patching the deprecated GuidedDecodingParams. The refactoring of vLLM-related fixes into a single function is a good structural improvement. The additional logging in rl.py will be helpful for debugging. I've provided a few suggestions to further improve the code, including correcting a link in a comment and improving exception handling for the new log messages.
💡 Codex Reviewunsloth/unsloth/models/qwen3_moe.py Lines 131 to 133 in d837d62
When unsloth/unsloth/models/qwen3_moe.py Lines 140 to 143 in d837d62
In the cached generation branch, the MoE block output is accumulated with unsloth/unsloth/import_fixes.py Lines 167 to 171 in d837d62
The fallback for removed ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
for more information, see https://pre-commit.ci
unsloth/import_fixes.py
Outdated
| except Exception as e: | ||
| if UNSLOTH_ENABLE_LOGGING: | ||
| print(f"Unsloth: Failed patching vLLM with error = {str(e)}") | ||
| text = text.replace( |
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.
Indentation issue
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
This reverts commit fbb98c5.
for more information, see https://pre-commit.ci
This reverts commit c64d5b4.
for more information, see https://pre-commit.ci
This reverts commit c156545.
for more information, see https://pre-commit.ci
This reverts commit 6c47dc5.
vllm deprecated and now removed
GuidedDecodingParamsThis PR aims to patch that to
StructuredOutputParamsPlease also check
unslothai/unsloth-zoo#367