fix: follow symlinks in model discovery, update model catalog

- Add -L flag to find in benchmark scripts (follows symlinks to /data/models/llms/)
- Exclude mmproj-*.gguf (vision projection files, not LLM models)
- Update configs/models.conf: remove Qwen3-Coder (user prefers Qwen3.5-35B-A3B),
  add Qwen3.5-27B-Q4_K_M and Q8_0 variant, reflect actual downloaded models

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Felipe Cardoso
2026-03-26 09:44:16 +01:00
parent 58124cd657
commit eb52ea52ce
4 changed files with 18 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ fi
# Find models
mapfile -t MODEL_PATHS < <(
find "$MODEL_DIR" -type f -name '*.gguf' \
find -L "$MODEL_DIR" -type f -name '*.gguf' -not -name 'mmproj-*' \
\( -name '*-00001-of-*.gguf' -o -not -name '*-000*-of-*.gguf' \) \
| sort
)

View File

@@ -62,7 +62,7 @@ log_info "Backends: ${available_backends[*]}"
# Find models
mapfile -t MODEL_PATHS < <(
find "$MODEL_DIR" -type f -name '*.gguf' \
find -L "$MODEL_DIR" -type f -name '*.gguf' -not -name 'mmproj-*' \
\( -name '*-00001-of-*.gguf' -o -not -name '*-000*-of-*.gguf' \) \
| sort
)

View File

@@ -71,10 +71,10 @@ done
# ── 3. Check for test models ────────────────────────────
log_info "Checking for test models in $MODEL_DIR..."
model_count=$(find "$MODEL_DIR" -name "*.gguf" 2>/dev/null | wc -l)
model_count=$(find -L "$MODEL_DIR" -name "*.gguf" -not -name "mmproj-*" 2>/dev/null | wc -l)
if (( model_count > 0 )); then
log_success "Found $model_count model(s):"
find "$MODEL_DIR" -name "*.gguf" | while read -r f; do
find -L "$MODEL_DIR" -name "*.gguf" -not -name "mmproj-*" | while read -r f; do
size=$(du -h "$f" | cut -f1)
printf " %s (%s)\n" "$(basename "$f")" "$size"
done