ollama/gpu
Daniel Hiltgen 6c5ccb11f9 Revamp ROCm support
This refines where we extract the LLM libraries to by adding a new
OLLAMA_HOME env var, that defaults to `~/.ollama` The logic was already
idempotenent, so this should speed up startups after the first time a
new release is deployed.  It also cleans up after itself.

We now build only a single ROCm version (latest major) on both windows
and linux.  Given the large size of ROCms tensor files, we split the
dependency out.  It's bundled into the installer on windows, and a
separate download on windows.  The linux install script is now smart and
detects the presence of AMD GPUs and looks to see if rocm v6 is already
present, and if not, then downloads our dependency tar file.

For Linux discovery, we now use sysfs and check each GPU against what
ROCm supports so we can degrade to CPU gracefully instead of having
llama.cpp+rocm assert/crash on us.  For Windows, we now use go's windows
dynamic library loading logic to access the amdhip64.dll APIs to query
the GPU information.
2024-03-07 10:36:50 -08:00
..
amd_common.go Revamp ROCm support 2024-03-07 10:36:50 -08:00
amd_hip_windows.go Revamp ROCm support 2024-03-07 10:36:50 -08:00
amd_linux.go Revamp ROCm support 2024-03-07 10:36:50 -08:00
amd_windows.go Revamp ROCm support 2024-03-07 10:36:50 -08:00
assets.go Revamp ROCm support 2024-03-07 10:36:50 -08:00
cpu_common.go Mechanical switch from log to slog 2024-01-18 14:12:57 -08:00
gpu.go Revamp ROCm support 2024-03-07 10:36:50 -08:00
gpu_darwin.go Allow setting max vram for workarounds 2024-03-06 17:15:06 -08:00
gpu_info.h Revamp ROCm support 2024-03-07 10:36:50 -08:00
gpu_info_cpu.c calculate overhead based number of gpu devices (#1875) 2024-01-09 15:53:33 -05:00
gpu_info_cuda.c Revamp ROCm support 2024-03-07 10:36:50 -08:00
gpu_info_cuda.h More logging for gpu management 2024-01-24 10:32:36 -08:00
gpu_info_darwin.h Determine max VRAM on macOS using recommendedMaxWorkingSetSize (#2354) 2024-02-25 18:16:45 -05:00
gpu_info_darwin.m Determine max VRAM on macOS using recommendedMaxWorkingSetSize (#2354) 2024-02-25 18:16:45 -05:00
gpu_test.go Merge pull request #1819 from dhiltgen/multi_variant 2024-01-11 14:00:48 -08:00
types.go Detect AMD GPU info via sysfs and block old cards 2024-02-12 08:19:41 -08:00