mirror of
https://github.com/ollama/ollama.git
synced 2026-03-28 03:08:44 +07:00
RemoveLayers was calling Manifests() for each layer to check if it was shared with other models. For models with many blobs (e.g., tensor models), this caused O(N*M) manifest reads. Now loads manifests once and builds a set of in-use digests.
3.8 KiB
3.8 KiB