mirror of https://github.com/ollama/ollama.git
This changes the memory allocation strategy from upfront estimation to tracking actual allocations done by the engine and reacting to that. The goal is avoid issues caused by both under-estimation (crashing) and over-estimation (low performance due to under-utilized GPUs). It is currently opt-in and can be enabled for models running on the Ollama engine by setting OLLAMA_NEW_ESTIMATES=1. Behavior in other cases is unchanged and will continue to use the existing estimates. |
||
---|---|---|
.. | ||
amd_common.go | ||
amd_hip_windows.go | ||
amd_linux.go | ||
amd_windows.go | ||
cpu_common.go | ||
cuda_common.go | ||
gpu.go | ||
gpu_darwin.go | ||
gpu_info.h | ||
gpu_info_cudart.c | ||
gpu_info_cudart.h | ||
gpu_info_darwin.h | ||
gpu_info_darwin.m | ||
gpu_info_nvcuda.c | ||
gpu_info_nvcuda.h | ||
gpu_info_nvml.c | ||
gpu_info_nvml.h | ||
gpu_info_oneapi.c | ||
gpu_info_oneapi.h | ||
gpu_linux.go | ||
gpu_linux_test.go | ||
gpu_oneapi.go | ||
gpu_test.go | ||
gpu_windows.go | ||
gpu_windows_test.go | ||
path.go | ||
types.go |