Install script assumes existence of nvidia-smi on PATH means system uses Nvidia GPU #5655

Open
opened 2025-11-12 13:05:47 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Gambloide on GitHub (Jan 30, 2025).

What is the issue?

My system has never seen an Nvidia GPU, but the current installer (https://ollama.com/install.sh) just finished on my system with the message "Nvidia GPU installed".

Actually executing nvidia-smi shows the same:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

From my understanding, rather than just checking if anything is available on the current PATH called nvidia-smi, it should actually try to confirm if a GPU from the given vendor is installed, otherwise ask the user to confirm/deny if unsure.

This is doubly important for multi-GPU or eGPU systems.


While off-topic, in case the question gets asked: No, I did not manually install Nvidia drivers on my system. I didn't even know they were there until just now when I looked into this bug. After uninstalling them, purging the old ollama install and running the script again, it correctly detected the AMD GPU and downloaded the ROCm amd64 bundle.

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

0.5.7

Originally created by @Gambloide on GitHub (Jan 30, 2025). ### What is the issue? My system has never seen an Nvidia GPU, but the current installer (https://ollama.com/install.sh) just finished on my system with the message "Nvidia GPU installed". Actually executing `nvidia-smi` shows the same: ``` NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. ``` From my understanding, rather than just checking if anything is available on the current PATH called `nvidia-smi`, it should actually try to confirm if a GPU from the given vendor is installed, otherwise ask the user to confirm/deny if unsure. This is doubly important for multi-GPU or eGPU systems. --- **While off-topic, in case the question gets asked:** No, I did not manually install Nvidia drivers on my system. I didn't even know they were there until just now when I looked into this bug. After uninstalling them, purging the old ollama install and running the script again, it correctly detected the AMD GPU and downloaded the ROCm amd64 bundle. ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version 0.5.7
GiteaMirror added the bug label 2025-11-12 13:05:47 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#5655