-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
add ConvBert Model #819
add ConvBert Model #819
Conversation
权重已上传 |
@JunnYu Thanks for your contribution! Hope to have futrher communication with you. |
@chenxiaozeng I have sent to the Paddle-better@baidu.com. Please check the email. |
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 delete compare.py
before merging.
😊 Please add class |
LGTM. @JunnYu Thanks for your contribution again! 😊 |
Please add docstrings for all your classes and methods which might be utilized by users. You can refer to paddlenlp.transformers.bert. |
if position_ids is not None: | ||
position_ids = position_ids.reshape((-1, position_ids.shape[-1])) | ||
if attention_mask is not None: | ||
attention_mask = attention_mask.reshape( |
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.
If reshape attention_mask
, ConvBertModel
should support attention_mask.ndim == 2
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 add docstrings for all your classes and methods which might be utilized by users. You can refer to paddlenlp.transformers.bert.
Need to process attention_mask
and add docstrings.
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.
LGTM
Description
Add new model
ConvBert
paddle model weights
https://drive.google.com/file/d/1rLiDxeiM3wXEZQ7WuRpFDcWwYOs6OgQo/view?usp=sharing