ollama icon indicating copy to clipboard operation
ollama copied to clipboard

Ollama does not list installed models

Open javiergcim opened this issue 9 months ago • 7 comments

What is the issue?

The command "ollama list" does not list the installed models on the system (at least those created from a local GGUF file), which prevents other utilities (for example, WebUI) from discovering them.

However, the models are there and can be invoked by specifying their name explicitly. For example: "ollama run MyModel".

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.1.35

javiergcim avatar May 11 '24 06:05 javiergcim

Have same issue. All models customized by modelfile are not showing by ollama list. But can still be found by ollama show --modelfile

BarcodeQH avatar May 11 '24 09:05 BarcodeQH

The problem persist in 0.1.36

javiergcim avatar May 11 '24 18:05 javiergcim

yeah, me to... also it shows models I tried 2 months ago and long time ago deleted...

client version is 0.1.36

after restarting ollama it went back to normal. for me solved

123LiVo321 avatar May 11 '24 19:05 123LiVo321

Hi can you provide server logs for when you run ollama list?

mxyng avatar May 11 '24 19:05 mxyng

Log after the command "ollama list":

may 11 13:35:04 dellypop ollama[1320]: [GIN] 2024/05/11 - 13:35:04 | 200 | 22.625µs | 127.0.0.1 | HEAD "/" may 11 13:35:04 dellypop ollama[1320]: time=2024-05-11T13:35:04.315-06:00 level=WARN source=routes.go:749 msg="bad manifest" name=registry.ollama.ai/library/Llama-3-CoderV2-Fast:latest error="open /usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/llama-3-coderv2-fast/latest: no such file or directory" may 11 13:35:04 dellypop ollama[1320]: [GIN] 2024/05/11 - 13:35:04 | 200 | 167.327µs | 127.0.0.1 | GET "/api/tags"

I only have one model called 'Llama-3-CoderV2-Fast', which was created with the command 'ollama create Llama-3-CoderV2-Fast -f Modelfile'. I notice that the capitalization is not being respected in the name of the directory "/usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/Llama-3-CoderV2-Fast"

javiergcim avatar May 11 '24 19:05 javiergcim

will reopen this until it's addressed in a release

jmorganca avatar May 11 '24 21:05 jmorganca

I use the main branch build, but I can't find this problem.

  • Modelfile-gguf
FROM ./Phi-3-mini-4k-instruct-q4.gguf
image

lengrongfu avatar May 13 '24 02:05 lengrongfu

This has been fixed and release in 0.1.37

mxyng avatar May 13 '24 16:05 mxyng