-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
[Model] add Hunyuan V1 Dense Model support. #21368
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
Signed-off-by: Asher Zhang <[email protected]>
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 introduces support for Hunyuan V1 Dense Model by refactoring the existing MoE implementation into a shared module. A base class is introduced, and either MoE or dense MLP blocks are used conditionally. A critical issue was identified in the _is_moe
helper function related to type checking, and a code suggestion has been provided to address it.
Signed-off-by: Asher Zhang <[email protected]>
👋 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.
Can this model inherit from llama, just like phi3 does
@jeejeelee Thanks for the suggestion, actually we'd like to keep it standalone, |
@DarkLight1337 @Isotr0py Could you please take another look? |
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.
Please update the dense model in vllm/tests/models/registry.py
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.
Can you also update docs/models/supported_models.md
with dense model?
Signed-off-by: Asher Zhang <[email protected]>
Signed-off-by: Asher Zhang <[email protected]>
done |
done |
Two failed case is not related to this patch: They are all about Ernie4_5_ForCausalLM. [2025-07-23T10:01:21Z] =================================== FAILURES =================================== | [2025-07-23T10:01:21Z] __________________ test_can_initialize[Ernie4_5_ForCausalLM] ___________________ |
LGTM, thanks for updating! |
Thanks! |
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.Purpose
Test Plan
Test Result
The server will start normally:
(Optional) Documentation Update