01-server: ollama native CUDA 12.9 backend (sm_50) instead of Vulkan #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ollama-cuda12"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Swap the Vulkan ollama for a native CUDA build on the M10s — real kernels designed for the hardware instead of Vulkan's shader abstractions.
The build (
services.ollama.package):pkgs.ollama.override { acceleration = "cuda"; cudaPackages = pkgs.cudaPackages_12; cudaArches = [ "sm_50" "sm_52" ]; }cudaPackages_12— 12.9.79 in the pinned rev (the intent of '12.8'; still the last line that compiles sm_50)realArchesstarts at sm_75 — explicitcudaArchesis mandatory or the M10 gets zero kernels50 == Maxwellin its default CUDA arch list and all feature gates are__CUDA_ARCH__ >= Xguards — so no version pin needed, we keep modern ollamaStacks on #22 (feat/ollama-vulkan-fixes) — the MDWE sandbox fix stays in (harmless for CUDA, and keeps a one-line fallback to
pkgs.ollama-vulkanif the CUDA path underperforms).A/B benchmark after merge+rebuild: qwen3:8b tok/s, Vulkan vs CUDA.