Skip to content
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

请问支持相对位置编码的Bert吗? #1

Open
trouble-maker007 opened this issue May 15, 2021 · 1 comment
Open

请问支持相对位置编码的Bert吗? #1

trouble-maker007 opened this issue May 15, 2021 · 1 comment

Comments

@trouble-maker007
Copy link

请问支持 relative position embedding 类似 nezha, roformer ,如果是roformer,是不是需要将模型的参数名称改为和Bert一样才能使用

@dingjingzhen
Copy link
Collaborator

非常感谢反馈,我们暂时不支持 nezha, roformer的 relative position embedding,为了方便用户使用,我们尽力融入transformers和fairseq社区,如果你的模型结构不一样的话可以通过参考修改eet/transformers中的文件通过op level的APIs,将Embedding改成你需要的relative position embedding,其他模块修改权重名即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants