From 85e60ef60c36a233be88b8195e6ff27982ff186c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 21 Oct 2026 03:03:24 -0700 Subject: [PATCH] llm, improve the thread testing output and also make the the ansible variable is always an int. --- tasks/workstation/linux/software/llm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/workstation/linux/software/llm.yml b/tasks/workstation/linux/software/llm.yml index b76573c..bda0364 100644 --- a/tasks/workstation/linux/software/llm.yml +++ b/tasks/workstation/linux/software/llm.yml @@ -911,8 +911,8 @@ model="qwen3.5:4b" fi # Benchmark Thread Count - for t in {1..{{ ansible_processor_vcpus }}}; do - echo "`date` - $t Threads`" + for t in {1..{{ ansible_processor_vcpus | int }}}; do + echo "`date` - Model $model w/ $t Threads`" curl -s http://localhost:11434/api/generate \ -d '{"model":"$model","prompt":"Hello","stream":false,"options":{"num_thread":$t}}' \ | jq .eval_count / .eval_duration