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

Colab no longer working #75

Open
adamgeddon1686 opened this issue Apr 29, 2023 · 5 comments
Open

Colab no longer working #75

adamgeddon1686 opened this issue Apr 29, 2023 · 5 comments

Comments

@adamgeddon1686
Copy link

Google colab has upgraded the default python runtime to 3.10 and that makes the version of onnxruntime incompatible. I tried just upgrading onnxruntime but that didn't work because of a changes to onnxruntime from version 1.8 to anything beyond that. I am attempting a workaround by using the fallback runtime but eventually it won't work anymore. The only solution long term seems to be to either upgrade the inference to work with a different version of onnx or to rebuild onnx to work on python 3.10. I am also reaching out to the people behind onnx to see if this is possible.

@adamgeddon1686
Copy link
Author

I actually got it to work by using the fallback runtime that has python 3.9 by running "Use fallback runtime version" from the command palette. Then you have to make sure to re-enable the GPU and it should work. But this will only be a temporary fix since the fallback runtime will eventually be phased out. According to their documentation, sometime in may. The best solution would be to make this to work with a newer version of onnxruntime-gpu that is compatible with later versions of python. But that is beyond my capabilities. Alternative, you could make a version of onnx that runs on the newer versions of python. If not, this will stop working on colab in a few weeks.

@ak3389
Copy link

ak3389 commented May 1, 2023

I have the same problem

@adamgeddon1686
Copy link
Author

It really boils down to a single command which no longer works which is

!pip install onnxruntime-gpu == 1.8

This is because this version of onnxruntime-gpu 1.8 isn't compatible with python 3.10 and there is a major change from v1.8 to future version which would require a rewrite of the code in the notebook.

@AlexanderGroshev
Copy link
Collaborator

Hi @adamgeddon1686, @ak3389!
Error fixed, colab should work now.

@loboere
Copy link

loboere commented Dec 23, 2023

now colab give error colab error OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory

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

4 participants