ollama/server
Jesse Gross 685a53534b manifest: Don't prune layers if we can't open a manifest file
If there is an error when opening a manifest file (corrupted, permission denied, etc.)
then the referenced layers will not be included in the list of active
layers. This causes them to be deleted when pruning happens at startup
or a model is pulled.

In such a situation, we should prefer to preserve data in the hopes that
it can be recovered rather than being agressive about deletion.
2024-08-06 23:11:19 -07:00
..
testdata/tools server: collect nested tool call objects when parsing (#5824) 2024-07-22 12:38:03 -04:00
auth.go fix nil deref in auth.go 2024-07-26 14:14:48 -07:00
download.go Ensure sparse files on windows during download 2024-08-06 10:58:08 -07:00
fixblobs.go server: replace blob prefix separator from ':' to '-' (#3146) 2024-03-14 20:18:06 -07:00
fixblobs_test.go server: replace blob prefix separator from ':' to '-' (#3146) 2024-03-14 20:18:06 -07:00
images.go manifest: Don't prune layers if we can't open a manifest file 2024-08-06 23:11:19 -07:00
layer.go Merge pull request #3718 from ollama/mxyng/modelname-3 2024-05-29 12:02:07 -07:00
manifest.go lint 2024-08-01 17:06:06 -07:00
manifest_test.go lint 2024-08-01 17:06:06 -07:00
model.go convert: only extract large files 2024-07-31 15:58:55 -07:00
model_test.go lint 2024-08-01 17:06:06 -07:00
modelpath.go models 2024-07-22 11:26:12 -07:00
modelpath_test.go uint64 2024-07-22 11:49:02 -07:00
prompt.go tools 2024-07-15 15:26:16 -07:00
prompt_test.go lint 2024-08-01 17:06:06 -07:00
routes.go lint 2024-08-01 17:06:06 -07:00
routes_create_test.go use testing tempdirs 2024-08-02 16:04:06 -07:00
routes_delete_test.go lint 2024-08-01 17:06:06 -07:00
routes_generate_test.go comments 2024-07-31 15:58:55 -07:00
routes_list_test.go lint 2024-08-01 17:06:06 -07:00
routes_test.go lint 2024-08-01 17:06:06 -07:00
sched.go lint 2024-08-01 17:06:06 -07:00
sched_test.go lint 2024-08-01 17:06:06 -07:00
sparse_common.go Ensure sparse files on windows during download 2024-08-06 10:58:08 -07:00
sparse_windows.go Ensure sparse files on windows during download 2024-08-06 10:58:08 -07:00
upload.go lint 2024-08-01 17:06:06 -07:00