-
-
Notifications
You must be signed in to change notification settings - Fork 11k
[Model] Remove MotifForCausalLM #25866
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: Jee Jee Li <pandaleefree@gmail.com>
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 effectively removes the MotifForCausalLM model and cleans up related code. The changes are consistent across documentation, model registry, and tests, achieving the stated purpose. I have one suggestion regarding a potential follow-up cleanup to remove dead code that might have resulted from this model's removal.
| if hidden_act != "poly_norm": | ||
| raise NotImplementedError(f"Unsupported activation: {hidden_act}. " | ||
| "Only poly_norm is supported for now.") | ||
| self.act_fn = PolyNorm() |
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.
With the removal of MotifForCausalLM, the PolyNorm activation function, which was used by this model, may now be unused. If no other models utilize PolyNorm, consider removing it and its associated custom op poly_norm from vllm/model_executor/layers/layernorm.py to improve code maintainability by eliminating dead code.
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.
Yes, the related code will be deleted in a later PR
|
Are the model authors aware of this? |
Given that we've removed support for |
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Signed-off-by: Tomer Asida <57313761+tomeras91@users.noreply.github.com>
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Purpose
Phi4FlashForCausalLM, vLLM no longer supportsMotifForCausalLM, so remove the related codeerror info
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.