diff --git a/tasks/workstation/linux/software/llm.yml b/tasks/workstation/linux/software/llm.yml index 6a0b154..2fc017e 100644 --- a/tasks/workstation/linux/software/llm.yml +++ b/tasks/workstation/linux/software/llm.yml @@ -932,6 +932,14 @@ # Runnning with 0 causes default behavior, 1 per physical core, 8! cores=$(cat /sys/devices/cpu_core/cpus | tr ',' '\n' | sed 's/-/ /' | xargs -L1 seq) + # Take out useless tests. + cores=${cores/ 1 / } + if [[ "$cores" == *" 7" ]]; then + cores=${cores/ 2 / } + cores=${cores/ 3 / } + cores=${cores/ 5 / } + fi + echo " Stopping all ollama usage..." sudo sv restart ollama >/dev/null 2>&1