Downloads · 30 days
178
36% of all-time downloads
davezaxh/llama-3.2-exp
llama-3.2-exp is a text generation model from davezaxh. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as llama3.2.
This repository gives you the necessary files to run importance matrix (imatrix) operation on your workstation to generate optimized quantized models.
Downloads · 30 days
178
36% of all-time downloads
All-time downloads
495
Public
Repo size
20.2 GB
Likes
0
Public
Click a slice to open those files.
.gguf20.1 GB · 99%
From the Hugging Face model README
This repository gives you the necessary files to run importance matrix (imatrix) operation on your workstation to generate optimized quantized models.
This includes the calibration data focuses which focuses on reasoning based questions (mathematical problems, logical inference) to preserve model quality in reasoning tasks after quantization.
Install llama.cpp:
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp && cmake -B build && cmake --build build --config Release -j $(nproc)
Add to PATH:
export PATH="$HOME/llama.cpp/build/bin:$PATH"
llama-imatrix \
-m llama-3.2-f16.gguf \
-f calibration.txt \
-o llama-3.2-reasoning.imatrix \
-t $(nproc)
./scripts/quantizer
It essentially runs this command the following command but with these types of quantizations: Q8_0, Q4_K_M,IQ4_XS, IQ3_S
llama-quantize \
--imatrix llama-3.2.imatrix \
llama-3.2-f16.gguf \
llama-3.2-Q4_K_M.gguf \
Q4_K_M
Binary not found: Use full path to llama.cpp binaries:
~/llama.cpp/build/bin/llama-imatrix ...
Out of memory: Reduce chunks or GPU layers:
llama-imatrix -m llama-3.2-f16.gguf -f calibration.txt --chunks 50 --gpu-layers 30
After running the imatrix generation and quantization workflow, you should have:
llama-3.2-exp/
├── llama-3.2-f16.gguf # Original F16 model (6.0GB)
├── llama-3.2.imatrix # Generated importance matrix file
├── quantized/ # Quantized models folder
│ ├── llama-3.2-Q4_K_M.gguf # Quantized with imatrix (~1.9GB)
│ ├── llama-3.2-Q5_K_M.gguf # Quantized with imatrix (~2.2GB)
│ └── llama-3.2-Q6_K.gguf # Quantized with imatrix (~2.5GB)
├── calibration.txt # Programming focued (Py/JS) dataset
├── calibration_reasoning.txt # Reasoning focused dataset
└── scripts/ # Automation scripts
└── quantizer.sh # Quantization automation script
The .imatrix file contains importance weights that guide the quantization process to preserve model quality in reasoning tasks.