[GH-ISSUE #1962] Models not listed after installing nvdia drivers and CUDA #26892

Closed
opened 2026-04-22 03:36:13 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @PriyaranjanMaratheDish on GitHub (Jan 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1962

Originally assigned to: @dhiltgen on GitHub.

1)I had copied models (blobs and manifests) from my mac to /usr/share/ollama/.ollama/models/manifests folder.
2)I was able to see them when I ran ollama list.
3)I then installed nvdia drivers and CUDA.
4)Now I am not able to see the models.

ollama list models shows the following
NAME ID SIZE MODIFIED

5)How to fix this issue?

Originally created by @PriyaranjanMaratheDish on GitHub (Jan 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1962 Originally assigned to: @dhiltgen on GitHub. 1)I had copied models (blobs and manifests) from my mac to /usr/share/ollama/.ollama/models/manifests folder. 2)I was able to see them when I ran ollama list. 3)I then installed nvdia drivers and CUDA. 4)Now I am not able to see the models. ollama list models shows the following NAME ID SIZE MODIFIED 5)How to fix this issue?
Author
Owner

@oliverbob commented on GitHub (Jan 15, 2024):

I'm not sure if Linux is the same on Mac running Ollama. But I tried this on Ubuntu. I had to be certain that I have copied the files as root and everything worked fine.

After doing the copy, I have to ensure that permission was set for all files and directories and subs:

chown -R user:user /usr/share/ollama/ because when you copy as root, the directories are owned by root:root.

<!-- gh-comment-id:1892007613 --> @oliverbob commented on GitHub (Jan 15, 2024): I'm not sure if Linux is the same on Mac running Ollama. But I tried this on Ubuntu. I had to be certain that I have copied the files as root and everything worked fine. After doing the copy, I have to ensure that permission was set for all files and directories and subs: `chown -R user:user /usr/share/ollama/` because when you copy as root, the directories are owned by root:root.
Author
Owner

@dhiltgen commented on GitHub (Mar 12, 2024):

@PriyaranjanMaratheDish I would tend to agree this sounds like it may be a permission problem of not setting ownership to the ollama user/group. If you're still having problems with this, please share a little more information. sudo ls -lR /usr/share/ollama/.ollama/models and also share the server log so we can see what happens at startup.

<!-- gh-comment-id:1992268136 --> @dhiltgen commented on GitHub (Mar 12, 2024): @PriyaranjanMaratheDish I would tend to agree this sounds like it may be a permission problem of not setting ownership to the `ollama` user/group. If you're still having problems with this, please share a little more information. `sudo ls -lR /usr/share/ollama/.ollama/models` and also share the server log so we can see what happens at startup.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26892