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

ONNX model generation #55

Open
ayazhassan opened this issue Nov 2, 2022 · 2 comments
Open

ONNX model generation #55

ayazhassan opened this issue Nov 2, 2022 · 2 comments

Comments

@ayazhassan
Copy link

Can you please convert your model into the ONNX model? I want to test it on tensor rt for inferencing.
I am trying to convert it to the ONNX model but getting the following error:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0, and cpu! (when checking argument for argument index in method wrapper__index_select)

@ayazhassan
Copy link
Author

It seems that some of the model layers is running on CPU even I set the device as GPU. Following is the profiling screenshot. Let me know this is correct. How can we run the complete transformer model (generating all tensors) on GPU?
MicrosoftTeams-image

@sazani
Copy link

sazani commented Dec 27, 2022

I have faced the same issue

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