ollama / ollama-python

Ollama Python library
https://ollama.com
MIT License
2.67k stars 220 forks source link

model not found on macOS after upgraded to 0.1.38 #165

Open eliranwong opened 1 month ago

eliranwong commented 1 month ago

was using Ollama fine before upgraded to 0.1.38

''' raise ResponseError(e.response.text, e.response.status_code) from None ollama._types.ResponseError: model 'wizardlm2:7b' not foun '''

I am sure the files are in ~/.ollama/models. However,

I tried:

launchctl setenv OLLAMA_MODELS "~/.ollama/models"

export OLLAMA_MODELS="~/.ollama/models"

no difference after restarting Ollama.

jmorganca commented 1 month ago

Hi @eliranwong sorry this happened. Had you previously set OLLAMA_MODELS to a different value? If you run ls ~/.ollama/models/manifests/registry.ollama.ai/library do you see data in there?

eliranwong commented 1 month ago

Hi @jmorganca , thanks for reply. No, I didn't set OLLAMA_MODELS before.

When I run echo $OLLAMA_MODELS, I see nothing.

When I run ls ~/.ollama/models/manifests/registry.ollama.ai/library, I can see data there.

When I install a new model, by using 'ollama pull', I don't see it in ~/.ollama/models/manifests/registry.ollama.ai/library