Pin and verify Dirk model artifacts

This commit is contained in:
Mikei386
2026-09-01 06:24:59 +02:00
parent ee28272999
commit 78096c9027
3 changed files with 10 additions and 3 deletions
+5 -3
View File
@@ -2,7 +2,9 @@
set -Eeuo pipefail
MODEL_DIR=${MODEL_DIR:-/data/models/qwen3.8-27b-dirk}
BASE_URL=https://huggingface.co/peculiar-ragdoll/Dirk-Qwen3.8-27B-GGUF/resolve/main
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REVISION=12362f2b3d7dc11044e99c9e7e99fb9f530528c0
BASE_URL="https://huggingface.co/peculiar-ragdoll/Dirk-Qwen3.8-27B-GGUF/resolve/$REVISION"
MODEL=Dirk-Qwen3.8-27B-UD-Q4_K_XL.gguf
PROJECTOR=mmproj-F16.gguf
@@ -21,8 +23,8 @@ download() {
(
cd "$MODEL_DIR"
sha256sum "$MODEL" "$PROJECTOR" > SHA256SUMS
sha256sum -c "$SCRIPT_DIR/MODEL_ARTIFACTS.sha256"
cp "$SCRIPT_DIR/MODEL_ARTIFACTS.sha256" SHA256SUMS
)
printf 'Prepared model files in %s\n' "$MODEL_DIR"