ollama/server
Daniel Hiltgen bc8909fb38
Use runners for GPU discovery (#12090)
This revamps how we discover GPUs in the system by leveraging the Ollama
runner.  This should eliminate inconsistency between our GPU discovery and the
runners capabilities at runtime, particularly for cases where we try to filter
out unsupported GPUs.  Now the runner does that implicitly based on the actual
device list.  In some cases free VRAM reporting can be unreliable which can
leaad to scheduling mistakes, so this also includes a patch to leverage more
reliable VRAM reporting libraries if available.

Automatic workarounds have been removed as only one GPU leveraged this, which
is now documented. This GPU will soon fall off the support matrix with the next
ROCm bump.

Additional cleanup of the scheduler and discovery packages can be done in the
future once we have switched on the new memory management code, and removed
support for the llama runner.
2025-10-01 15:12:32 -07:00
..
internal refactor: use the built-in max/min to simplify the code (#12280) 2025-09-16 17:14:21 -07:00
auth.go
create.go engine: add remote proxy (#12307) 2025-09-17 14:40:53 -07:00
create_test.go engine: add remote proxy (#12307) 2025-09-17 14:40:53 -07:00
download.go server: abort download on empty digest 2025-05-27 11:28:48 -07:00
fixblobs.go
fixblobs_test.go
images.go engine: add remote proxy (#12307) 2025-09-17 14:40:53 -07:00
images_test.go Reapply "feat: incremental gguf parser (#10822)" (#11114) (#11119) 2025-06-20 11:11:40 -07:00
layer.go
manifest.go
manifest_test.go
model.go tools: refactor tool call parsing and enable streaming (#10415) 2025-05-23 14:19:31 -07:00
modelpath.go server: add hint to the error message when model path access fails (#10843) 2025-05-24 13:17:04 -07:00
modelpath_test.go lint: enable usetesting, disable tenv (#10594) 2025-05-08 11:42:14 -07:00
prompt.go add qwen3-coder tool support 2025-09-15 11:33:47 -07:00
prompt_test.go gpt-oss (#11672) 2025-08-05 12:21:16 -07:00
quantization.go skip quantizing per_layer_token_embd (#11207) 2025-06-26 21:49:35 -07:00
quantization_test.go Reapply "feat: incremental gguf parser (#10822)" (#11114) (#11119) 2025-06-20 11:11:40 -07:00
routes.go Use runners for GPU discovery (#12090) 2025-10-01 15:12:32 -07:00
routes_create_test.go engine: add remote proxy (#12307) 2025-09-17 14:40:53 -07:00
routes_debug_test.go Use runners for GPU discovery (#12090) 2025-10-01 15:12:32 -07:00
routes_delete_test.go Update the /api/create endpoint to use JSON (#7935) 2024-12-31 18:02:30 -08:00
routes_generate_test.go Use runners for GPU discovery (#12090) 2025-10-01 15:12:32 -07:00
routes_harmony_streaming_test.go Use runners for GPU discovery (#12090) 2025-10-01 15:12:32 -07:00
routes_list_test.go Update the /api/create endpoint to use JSON (#7935) 2024-12-31 18:02:30 -08:00
routes_test.go engine: add remote proxy (#12307) 2025-09-17 14:40:53 -07:00
sched.go Use runners for GPU discovery (#12090) 2025-10-01 15:12:32 -07:00
sched_test.go Use runners for GPU discovery (#12090) 2025-10-01 15:12:32 -07:00
sparse_common.go
sparse_windows.go
upload.go server: always print upload/download part info (#8832) 2025-02-04 19:30:49 -08:00