ollama/server
Patrick Devine eb97274e5c
modelfiles: fix /save command and add shortname for safetensors based models (#15413)
This change fixes two issues with Modelfiles:

  1. If a user uses `ollama show --modelfile` to show a safetensors based
     model, the Model would leave the "FROM" field blank which won't allow
     a user to recreate the model. This change adds the model's current
     canonical short name to the FROM field.
  2. If a user uses the `/save` command in the CLI any messages which were
     saved in a previous model wouldn't get saved (only the set of messages
     from the current session).
2026-04-08 21:05:39 -07:00
..
internal
auth.go
auth_test.go
cloud_proxy.go cloud_proxy: for the web_search legacy path, flush on newlines (#14897) 2026-03-17 13:30:17 -07:00
cloud_proxy_test.go cloud_proxy: for the web_search legacy path, flush on newlines (#14897) 2026-03-17 13:30:17 -07:00
create.go create: Clean up experimental paths, fix create from existing safetensor model (#14679) 2026-04-07 08:12:57 -07:00
create_test.go
download.go
fixblobs.go
fixblobs_test.go
images.go Add support for gemma4 (#15214) 2026-04-02 11:33:33 -07:00
images_test.go server: preserve raw manifest bytes during pull (#15104) 2026-03-27 15:42:31 -07:00
inference_request_log.go add ability to turn on debug request logging (#14106) 2026-03-19 17:08:17 -07:00
logprob.go
model.go create: Clean up experimental paths, fix create from existing safetensor model (#14679) 2026-04-07 08:12:57 -07:00
model_resolver.go
model_resolver_test.go
prompt.go
prompt_test.go
quantization.go Add support for gemma4 (#15214) 2026-04-02 11:33:33 -07:00
quantization_test.go
routes.go modelfiles: fix /save command and add shortname for safetensors based models (#15413) 2026-04-08 21:05:39 -07:00
routes_cloud_test.go revert context length warnings change (#15121) 2026-03-28 16:43:59 -07:00
routes_create_test.go create: Clean up experimental paths, fix create from existing safetensor model (#14679) 2026-04-07 08:12:57 -07:00
routes_debug_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_delete_test.go
routes_generate_renderer_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_generate_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_harmony_streaming_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
routes_list_test.go
routes_options_test.go
routes_request_log_test.go add ability to turn on debug request logging (#14106) 2026-03-19 17:08:17 -07:00
routes_test.go modelfiles: fix /save command and add shortname for safetensors based models (#15413) 2026-04-08 21:05:39 -07:00
routes_web_experimental_test.go
sched.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
sched_test.go sched: Model eviction for MLX 2026-03-16 17:40:29 -07:00
sparse_common.go
sparse_windows.go
test_home_test.go
upload.go