-
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
[DalleBart P0] add PretrainedConfig and unit test #5069
Conversation
Thanks for your contribution! |
github的这个自动check里面会因为无法自动下载emoji库而报错,我在本地test的时候也会这样,但是手动pip install emoji之后就可以通过了,请问这要怎么办呢。 |
在requirements-dev.txt里加入依赖即可 |
Codecov Report
@@ Coverage Diff @@
## develop #5069 +/- ##
===========================================
+ Coverage 50.39% 50.85% +0.45%
===========================================
Files 459 460 +1
Lines 65585 65637 +52
===========================================
+ Hits 33054 33381 +327
+ Misses 32531 32256 -275
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
paddle-ci过不了是我们这边的问题,可以不用管,稍微修一下下面几个小问题即可
|
||
__all__ = ["DalleBart_PRETRAINED_INIT_CONFIGURATION", "DalleBartConfig", "DalleBart_PRETRAINED_RESOURCE_FILES_MAP"] | ||
|
||
DalleBart_PRETRAINED_RESOURCE_FILES_MAP = { |
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.
all caps
} | ||
} | ||
|
||
DalleBart_PRETRAINED_INIT_CONFIGURATION = { |
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.
all caps
@@ -199,7 +107,7 @@ def init_weights(self, layer): | |||
layer.weight.set_value( | |||
paddle.normal( | |||
mean=0.0, | |||
std=self.init_std if hasattr(self, "init_std") else self.dallebart.config["init_std"], | |||
std=self.init_std if hasattr(self, "init_std") else self.config.init_std, |
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.
直接std=self.config.init_std即可
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.
加入requirements-dev.txt的依赖也增加到 https://github.com/PaddlePaddle/PaddleNLP/blob/develop/scripts/regression/requirements_ci.txt ,这样paddlenlp-ci应该就可以过了
似乎还是不行 /(ㄒoㄒ)/ |
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!
PR types
PR changes
Description