From 2bdf59286d2c7abf1afd8bc8d6dfe4f0b54c4395 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 24 Nov 2026 21:05:58 -0700 Subject: [PATCH] ollama, add two performance changes. --- tasks/workstation/linux/software/ai/llm.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/workstation/linux/software/ai/llm.yml b/tasks/workstation/linux/software/ai/llm.yml index 10afb53..466bfef 100644 --- a/tasks/workstation/linux/software/ai/llm.yml +++ b/tasks/workstation/linux/software/ai/llm.yml @@ -275,6 +275,10 @@ export OLLAMA_LOAD_TIMEOUT=30m # default is 5m export OLLAMA_REQUEST_TIMEOUT=3600 # default 300 (unconfirmed, not in the list of --help vars) + ### Performance ### + export OLLAMA_KV_CACHE_TYPE=q8_0 + export OLLAMA_FLASH_ATTENTION=1 + ### Resource Usage ### export OLLAMA_KEEP_ALIVE=-1 # default is 5m. Good frontends keep the model alive as long as it needs to be, this is not a source of timeout. export OLLAMA_MAX_LOADED_MODELS={{ llm_concurrency }} # default is 3 if using CPUs, or 3 * NumGPUs