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

Mobile bert : onnxruntime :: training :: GradientBuilderBase :: O i < node_ -> Outputdefs().size was false #176

Closed
Leaner23 opened this issue Jan 4, 2024 · 3 comments
Assignees

Comments

@Leaner23
Copy link

Leaner23 commented Jan 4, 2024

I am trying to generate the training artifacts for mobile bert model but onnx is giving me below error message : : onnxruntime :: training :: GradientBuilderBase :: O i < node_ -> Outputdefs().size was false.

I am trying the example that is given under masked_language_modeling and the name of file is mobilebert_offline.ipynb.

Please help !! It is urgent!!

@carzh carzh self-assigned this Jan 4, 2024
@prathikr
Copy link
Contributor

prathikr commented Jan 8, 2024

@carzh related issue: microsoft/onnxruntime#19038

@carzh
Copy link
Contributor

carzh commented Jan 19, 2024

Hi @Leaner23 , adding the following line: opset_version=15, to the torch.onnx.export parameters should fix the issue. Thanks to @prathikr for finding the issue & solution.

PR for fix is here #179

@carzh
Copy link
Contributor

carzh commented Jan 23, 2024

Closing since PR for fix has been merged into master -- please reopen if you run into related issues!!

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

3 participants