nixos: gen 117 @ lilac — 2026-11-05 13:33 26.05.20261031.fa13731 (Yarara) -----

This commit is contained in:
2026-11-05 13:33:56 -07:00
parent 25dec3f97a
commit f402d23096
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -83,14 +83,18 @@ in
enable = true;
package = unstable.ollama-vulkan;
# Environment tweaks to manage Vulkan layers and memory boundaries
environmentVariables = {
# Ensure the Vulkan loader can locate the Intel ICD driver json file
VK_ICD_FILENAMES = "${pkgs.intel-compute-runtime}/share/vulkan/icd.d/intel_icd.x86_64.json";
# Forces Ollama to strictly leverage Vulkan device routing
GGML_VULKAN_DEVICE = "0";
# Prevents multi-model concurrency thrashing on unified memory
OLLAMA_NUM_PARALLEL = "1";
# Hints the runner to allocate maximum context buffers in unified memory
# Adjust this if your desktop environment + apps feel constrained, but with 64GB you're safe.
OLLAMA_NUM_PARALLEL = "1";
# Optional: Set flash attention or high context limits if desired
OLLAMA_FLASH_ATTENTION = "1";
};
};
}