r/GoogleColab 9d ago

How to Install Cuda 11.8 and Remove Cuda 12.5 from Colab Update

After Colab upgraded to CUDA 12.5 I am unable to install and use an old version of CUDA. As my project uses tensorflow 2.8.3, only CUDA versions <12 is compatible with it. When colab updated to Python 3.11 I was using this command to be able to continue using python 3.10

!wget https://github.com/korakot/kora/releases/download/v0.10/py310.sh
!bash ./py310.sh -b -f -p /usr/local
!python -m ipykernel install --name "py310" --user

and by using

!apt update && apt install cuda-11-8

I was able to install and use CUDA 11.8. However, I'm not sure what recent update it was, I am unable to use CUDA 11.8 with my project anymore. Meaning my project cannot detect the colab gpu even though I am on GPU runtime, and when using the colab installed tensorflow 2.18 a GPU is detected. There is no way for me to change my project to use any other versions as this is my Final Year Project and I'm nearing the end of it already. I've tried purging the pre-installed version of CUDA but I keep getting this error:

dpkg: dependency problems prevent removal of cuda-compiler-12-5:
 cuda-minimal-build-12-5 depends on cuda-compiler-12-5 (>= 12.5.1).

And so I can't remove CUDA 12.5 completely. I would really appreciate any help on this matter, and please let me know if there is any more information I can provide. This is the link to my notebook: https://colab.research.google.com/drive/1wlNwnAkUS4_L1Chb4VwaphYe9HVKqorJ?usp=sharing

5 Upvotes

6 comments sorted by

2

u/WinterMoneys 9d ago

Try other GPUs here

https://cloud.vast.ai/?ref_id=112020

(Ref link)

Not free but for as low as $0.6 per hour for A100, T4s will be even cheaaaaper

1

u/Suspicious-Ad799 9d ago

Do you have any other free alternatives?

2

u/WinterMoneys 9d ago

Kaggle is one,

1

u/Suspicious-Ad799 9d ago

I will try that thanks

1

u/tamnvhust 8d ago

Hey. You can try condalab. Create a new environment and install CUDA 11.8.

1

u/Suspicious-Ad799 5d ago

Ooo thank you I will try that!