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

Pytorch model to ONNX, embedding layer parameters are misalignment? #76

Open
smygreat opened this issue Dec 6, 2023 · 0 comments
Open

Comments

@smygreat
Copy link

smygreat commented Dec 6, 2023

使用 fast-Bart 把模型转成onnx格式,encoder的embedding层的参数就开始出现差异,
image

考虑到bart和cpt encoder部分本身的差异,因为cpt的encoder本身就是bert,所以使用bert转onnx的方式将encoder转化,同样存在上述的问题,各位有遇到过类似问题吗?

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

1 participant