From bd7112e8d51d10153767a66a98b7f4a8ff3813f8 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 21 Oct 2026 07:27:28 -0700 Subject: [PATCH] llm, filter out the less useful tests in ollama_threads. Should help save a lot of time, maybe up to 60-75% since they were the slower ones. --- tasks/workstation/linux/software/llm.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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