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的变种吗? #265

Open
hitchcockx opened this issue Jul 5, 2022 · 1 comment
Open

支持bert的变种吗? #265

hitchcockx opened this issue Jul 5, 2022 · 1 comment

Comments

@hitchcockx
Copy link

hitchcockx commented Jul 5, 2022

我们有一个bert模型,但是是基于标准bert模型,做了一些网络结构上的修改,可以支持吗?
我现在运行模型,好像报错:
AttributeError: 'RecursiveScriptModule' object has no attribute 'embeddings'

@feifeibear
Copy link
Collaborator

支持的,可以让embedding用pytorch运行。你参考一下roberta例子即可。

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