Kolibri-1-GGUF / tutorial /steps /30-quantize.sh
Prompt48's picture
Share complete portable RunPod conversion tutorial, code and receipts
19844ee verified
Raw History Blame Contribute Delete
436 Bytes
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
test -f logs/BF16-DONE
for variant in Q4_K_M Q6_K Q8_0; do
llama.cpp/build/bin/llama-quantize output/Kolibri-1-BF16.gguf "output/Kolibri-1-${variant}.gguf" "$variant" "${THREADS:-12}" 2>&1 | tee "logs/${variant}-quantize.log"
done
# Keep the BF16 source until every required quantization is complete.
echo 'QUANTIZATION-DONE: inspect and test before uploading'