-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
requirements: Remove mamba_ssm from test.txt #20047
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
requirements: Remove mamba_ssm from test.txt #20047
Conversation
This dependency wasn't actually getting used and caused issues once we updated torch to 2.7.0. Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
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 @seemethere, 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 streamlining the test environment by removing an unnecessary and problematic dependency. The mamba_ssm
package, which was not actively used and caused conflicts with updated PyTorch versions, has been entirely removed from the test requirements, leading to a cleaner and more stable dependency tree for testing purposes.
Highlights
- Dependency Removal: I've removed the
mamba_ssm
dependency fromrequirements/test.in
. This dependency was identified as unused in a previous PR and was causing issues withtorch==2.7.0
, necessitating its removal to resolve build conflicts. - Transitive Dependency Cleanup: As a direct result of removing
mamba_ssm
fromrequirements/test.in
, the generatedrequirements/test.txt
has been automatically cleaned up. This includes the removal ofmamba-ssm
itself, its associated comments, and its transitive dependencyninja
.
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 the mamba_ssm
dependency, which is reported as unused and is causing build issues with newer versions of torch. The changes are confined to the requirements files (test.in
and the auto-generated test.txt
), correctly removing the package and its transitive dependencies.
The change is clean and well-justified by the PR description. The test plan relies on CI, which is appropriate for this type of change. Assuming CI passes, this is a good cleanup and ready to merge.
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
cc @Alnusjaponica for a review since you originally added it and to sanity check my assumption that this dependency is not used. |
cc @tlrmchlsmth |
we vendored the mamba_ssm kernel onto vllm, so probably safe to remove this. On a side note, do you know the timeline for supporting mamba in v1 🤔? |
This requirement is there to support the Line 29 in ba7ba35
This model has not yet been rebased against the Mamba2 implementation that is vendored within vLLM: vllm/vllm/model_executor/models/plamo2.py Lines 120 to 121 in ba7ba35
There is a test that runs, optionally, in the CI:
which will may no longer work if we remove the mamba_ssm package. Although I think transformers has a "slow" path that runs without installing this package, so the test could still work actually.
If we remove the vllm/tests/models/language/generation/test_hybrid.py Lines 31 to 34 in ba7ba35
The causal_conv1d is installed in the CI pipeline (rather than being an explicit dependency):vllm/.buildkite/test-pipeline.yaml Lines 519 to 520 in ba7ba35
Another option could be to install the mamba_ssm package in the CI pipeline in the same way that It would be good to run the "Language Models Test (Extended Generation)" test in Buildkite to see if this change breaks anything. It would also be good to get the team who contributed the model to weigh in here cc @Alnusjaponica |
Yeah I think in particular I don't want to land this PR until we have a full CI run. My main takeaway from grepping through the code is that we never directly import mamba_ssm hence the PR here. |
Let me enable full CI run to see if there are any failure, but probably echo Thomas comment here. |
It turns out that
While we don't have any tests that run for Nemotron-H yet, perhaps we might want to add some? I think I would advocate for removing the package from the explicit dependencies but installing it inside the CI job (similar to how we handle causal_conv1d right now). |
Okay sounds good! I'll update this PR to install it for CI similar to what we do for causal_conv1d |
Sorry for my delayed reply and any confusion. Based on my understanding, |
Closing as superseded by #21421 |
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.Purpose
This dependency wasn't actually getting used in the original PR (#14323) since most of the code was just lifted and shifted from the mamba repository and is now causing issues once we updated torch to 2.7.0.
Related issues / PRs:
There was even a workaround PR where we have to install this from source using --no-build-isolation here:
Test Plan
CI
Test Result
(Optional) Documentation Update