#!/usr/bin/env bash set -e exec > $HOME/piscina/logs/quant.log 2>&1 B=$HOME/llama-laguna/build/bin/llama-quantize IM=$HOME/piscina/src/author.imatrix SRC=$HOME/piscina/author/Laguna-XS.2-f16.gguf O=$HOME/piscina/out APP="--token-embedding-type q6_K --output-tensor-type q6_K --tensor-type attn=q6_K --tensor-type ffn_gate_inp=q8_0 --tensor-type shexp=q6_K --tensor-type blk.0.ffn=q6_K" echo "=== [1/5] Q8_0 reference $(date) ===" $B $SRC $O/Piscina-XS.2-Q8_0.gguf Q8_0 echo "=== [2/5] Piscina-XS.2-IQ2 (active-path) $(date) ===" $B --imatrix $IM $APP $SRC $O/Piscina-XS.2-IQ2.gguf IQ2_M echo "=== [3/5] baseline-IQ2_M $(date) ===" $B --imatrix $IM $SRC $O/baseline-IQ2_M.gguf IQ2_M echo "=== [4/5] Piscina-XS.2-IQ1 (active-path) $(date) ===" $B --imatrix $IM $APP $SRC $O/Piscina-XS.2-IQ1.gguf IQ1_M echo "=== [5/5] baseline-IQ1_M $(date) ===" $B --imatrix $IM $SRC $O/baseline-IQ1_M.gguf IQ1_M echo "=== SIZES $(date) ==="; ls -l $O/*.gguf | awk '{print $5,$9}' touch $HOME/piscina/logs/quant.done; echo ALL_QUANT_DONE