[GH-ISSUE #4616] Ollama downloading wrong driver. #49410

Closed
opened 2026-04-28 11:43:36 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Murat-U-Saglam on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4616

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

Ollama is downloading NVIDIA drivers even though I have AMD GPU.

I have ROCM installed

apt show rocm-libs -a

Package: rocm-libs
Version: 6.1.1.60101-90~22.04

and I use the following script to setup Ollama
curl -fsSL https://ollama.com/install.sh | sh

The output of running the script

curl -fsSL https://ollama.com/install.sh | sh
>>> Downloading ollama...
######################################################################## 100.0%##O=#  #                                                     ######################################################################## 100.0%
>>> Installing ollama to /usr/local/bin...
[sudo] password for ----: 
>>> Creating ollama user...
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service.
>>> NVIDIA GPU installed.

OS

Linux

GPU

AMD

CPU

AMD

Ollama version

N/A

Originally created by @Murat-U-Saglam on GitHub (May 24, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4616 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? Ollama is downloading NVIDIA drivers even though I have AMD GPU. I have ROCM installed ``` apt show rocm-libs -a Package: rocm-libs Version: 6.1.1.60101-90~22.04 ``` and I use the following script to setup [Ollama](https://ollama.com/download/linux) ` curl -fsSL https://ollama.com/install.sh | sh` The output of running the script ``` curl -fsSL https://ollama.com/install.sh | sh >>> Downloading ollama... ######################################################################## 100.0%##O=# # ######################################################################## 100.0% >>> Installing ollama to /usr/local/bin... [sudo] password for ----: >>> Creating ollama user... >>> Adding ollama user to render group... >>> Adding ollama user to video group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service. >>> NVIDIA GPU installed. ``` ### OS Linux ### GPU AMD ### CPU AMD ### Ollama version N/A
GiteaMirror added the gpubugnvidia labels 2026-04-28 11:43:37 -05:00
Author
Owner

@dhiltgen commented on GitHub (May 28, 2024):

This implies the startup script detected an NVIDIA device in your system. Can you share the output of one or both of these commands?

lspci -d '10de:'
lshw -c display -numeric
<!-- gh-comment-id:2135800394 --> @dhiltgen commented on GitHub (May 28, 2024): This implies the startup script detected an NVIDIA device in your system. Can you share the output of one or both of these commands? ``` lspci -d '10de:' lshw -c display -numeric ```
Author
Owner

@Murat-U-Saglam commented on GitHub (Jun 18, 2024):

lshw -c display -numeric
+WARNING: you should run this program as super-user.
  *-display                 
       description: VGA compatible controller
       product: Advanced Micro Devices, Inc. [AMD/ATI] [1002:744C]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI] [1002]
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: /dev/fb0
       version: c8
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=2560,1440
       resources: iomemory:f00-eff iomemory:f80-f7f irq:122 memory:f000000000-f7ffffffff memory:f800000000-f80fffffff ioport:f000(size=256) memory:ed000000-ed0fffff memory:ed100000-ed11ffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
<!-- gh-comment-id:2176132081 --> @Murat-U-Saglam commented on GitHub (Jun 18, 2024): ```~ lspci -d '10de:' lshw -c display -numeric +WARNING: you should run this program as super-user. *-display description: VGA compatible controller product: Advanced Micro Devices, Inc. [AMD/ATI] [1002:744C] vendor: Advanced Micro Devices, Inc. [AMD/ATI] [1002] physical id: 0 bus info: pci@0000:03:00.0 logical name: /dev/fb0 version: c8 width: 64 bits clock: 33MHz capabilities: vga_controller bus_master cap_list rom fb configuration: depth=32 driver=amdgpu latency=0 resolution=2560,1440 resources: iomemory:f00-eff iomemory:f80-f7f irq:122 memory:f000000000-f7ffffffff memory:f800000000-f80fffffff ioport:f000(size=256) memory:ed000000-ed0fffff memory:ed100000-ed11ffff WARNING: output may be incomplete or inaccurate, you should run this program as super-user. ```
Author
Owner

@Murat-U-Saglam commented on GitHub (Jun 18, 2024):

So when I ran the LSPCI and reinstalled it recognised the correct drivers. It also inadvertently updated my fastfetch (neofetch alternative) with the correct information.

Thanks!

<!-- gh-comment-id:2176134737 --> @Murat-U-Saglam commented on GitHub (Jun 18, 2024): So when I ran the LSPCI and reinstalled it recognised the correct drivers. It also inadvertently updated my fastfetch (neofetch alternative) with the correct information. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#49410