From 56f1ee8c6914646be7a2919ee98ceccc14d923fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Tue, 25 Nov 2025 15:06:30 +0100 Subject: [PATCH] debug: add bash-level debugging to verify_model_download --- artifact_huggingface_download.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/artifact_huggingface_download.sh b/artifact_huggingface_download.sh index b1f5ba0..6c670d5 100755 --- a/artifact_huggingface_download.sh +++ b/artifact_huggingface_download.sh @@ -638,11 +638,18 @@ verify_model_download() { local expected_size_gb="$2" local filename_filter="$3" + # DEBUG: Show what we're checking + echo "DEBUG_BASH: Checking repo_id='$repo_id' filter='$filename_filter' CACHE_DIR='$CACHE_DIR'" >&2 + # Find model files in cache # Capture both stdout (file paths) and stderr (error messages) local find_output find_output=$(find_model_files "$repo_id" "$filename_filter" 2>&1) + # DEBUG: Show raw output + echo "DEBUG_BASH: find_output length=${#find_output}" >&2 + echo "DEBUG_BASH: find_output first 200 chars: ${find_output:0:200}" >&2 + # Separate file paths from error/debug messages local model_files model_files=$(echo "$find_output" | grep -v "^ERROR:" | grep -v "^WARN:" | grep -v "^DEBUG:")