File size: 436 Bytes
19844ee
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/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'