Replies: 1 comment 2 replies
-
挺好。我们后续单测环境里会有torch和transformers的依赖,上面着一些代码可以写成一个单测 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
如图所示,PaddleNLP中没有复用激活函数,在许多模型文件中都自己定义了一个激活函数。

问题
激活函数是可以复用的,而当前没有统一使用激活函数,这个 PR 新增了与HF等价的激活函数
activations.py
,希望未来新增的模型 以及 旧的模型都替换使用最新的激活函数。Beta Was this translation helpful? Give feedback.
All reactions