Skip to content

Ollama models location changed without migration, causing disappearance in `ollama list` and wasted disk space

Description:

I noticed today (Sep. 19, ollama 0.3.10) that ollama list is empty, although a couple weeks ago I had several of them and didn't remove them.

I didn't think much about it and just re-downloaded a bunch of models, but now that I look into it, I observe that:

  • Models used to be downloaded & used in /var/lib/ollama/.ollama/models
  • Models are now downloaded & used in /var/lib/ollama

Also, there was no "migration" of the old location, therefor as of today I have >100GB of models in the old location that are unseen by ollama, unusable, and un-cleaned 😕.

Is this a planned change in the models path (and I should just clean/merge old into new), or is this a bug?

Thanks.

Additional info:

  • package version(s): 0.3.10
  • config and/or log files: no config
  • upstream bug: nothing obvious from a search in github/ollama/issues, and asking here in Arch since this feels like a packaging / environment concern specific to the Arch build

Steps to reproduce:

  1. Have ollama models downloaded from a couple weeks ago and appearing a couple weeks ago in ollama list
  2. Run ollama list now

Expected: models downloaded from a couple weeks ago are listed

Actual: models downloaded from a couple weeks ago are not listed

Edited by Ronan Jouchet
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information