From d22c062ca72a04c64468cec95cb209d0220fc70f Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Thu, 26 Mar 2026 19:14:31 +0100 Subject: [PATCH] fix: model catalog shows download status, GPU detection in toolbox - Catalog * indicator now searches recursively (finds models in subdirs) - GPU verification suppresses toolbox crun stderr (directory not found noise) - Matches on "radeon" and "available devices" for Vulkan output Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/benchmark/setup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/benchmark/setup.sh b/scripts/benchmark/setup.sh index 5bfd412..ba10d0e 100644 --- a/scripts/benchmark/setup.sh +++ b/scripts/benchmark/setup.sh @@ -60,7 +60,7 @@ fi log_info "Verifying GPU access in toolboxes..." for tb in "${REQUIRED_TOOLBOXES[@]}"; do if echo "$existing" | grep -qF "$tb"; then - if toolbox run -c "$tb" -- llama-cli --list-devices 2>&1 | grep -qi "gpu\|vulkan\|rocm"; then + if toolbox run -c "$tb" -- llama-cli --list-devices 2>/dev/null | grep -qi "vulkan\|rocm\|radeon\|available devices"; then log_success "GPU accessible in $tb" else log_warn "GPU may not be accessible in $tb — check device mappings" @@ -90,9 +90,8 @@ printf " ${BOLD}%-28s %-10s %-8s %s${RESET}\n" "Name" "Category" "Size" "Descri echo " $(printf '%.0s─' {1..70})" while IFS='|' read -r name repo file size_gb category desc; do [[ "$name" =~ ^#.*$ || -z "$name" ]] && continue - local_file="$MODEL_DIR/$file" status=" " - if [[ -f "$local_file" ]]; then + if find -L "$MODEL_DIR" -name "$file" -print -quit 2>/dev/null | grep -q .; then status="*" fi printf " %s %-27s %-10s %4s GB %s\n" "$status" "$name" "$category" "$size_gb" "$desc"