Skip to content

Instantly share code, notes, and snippets.

@LogCreative
Last active July 21, 2025 08:34
Show Gist options
  • Save LogCreative/71c78d90b5317f5468413b374b8bbc21 to your computer and use it in GitHub Desktop.
Save LogCreative/71c78d90b5317f5468413b374b8bbc21 to your computer and use it in GitHub Desktop.
Install Nvidia Driver for 5070 Ti on Ubuntu 24.04 (2025/03/09)
sudo apt install build-essential
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
# goto tty3 by ctrl+alt+F3 now!
sudo systemctl stop gdm3
sudo apt install nvidia-driver-570
# choose MIT license one, the prioritory one can not detect 5070ti now!
reboot

According to this link, you need to install the latest CUDA to make the GPU accessible.

So follow the official instruction to install CUDA 12.8, and install pytorch-nightly later:

pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128
@henryzhangzhy
Copy link

henryzhangzhy commented Jun 27, 2025

A very helpful thread! A few additional notes:

  1. In my case, ASUS TUF 5070Ti works only with the nvidia-driver-570-open, not the non-open version.
  2. go to tty3, stop gdm3 leads to a black screen with blinking "_", you can go to another tty by ctrl+alt+F4 (not sure if tty3 still works).
  3. reboot after install.

@Yuji-github
Copy link

I'm using Nvidia RTX 4060 mobile on M16R2 (Ubuntu 24.04 LTS).

I followed @aryoda step.
sudo apt install nvidia-driver-570-open

Then, I installed CUDA-11.8
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment