Utilities for quantizing and evaluating open weight models.
- llm-compressor & lm-evaluation-harness
- config driven, grid generation, simple commands
Tools:
uvfor python- make sure
nvccis in PATH cuefor recipe and grid generation (some pregen'd)
# clone to gpu machine
git clone https://github.com/verdverm/quantr && cd quantr
# install deps
make uv.sync# run full suite
make qwen.quant
make qwen.evals
# Run specific combo (qwen.<stage>.<algo>.<scheme>.<task>)
make qwen.quant.simp.nvfp4.wikitext
make qwen.evals.gptq.nvfp4a16.gsm8k- Makefile has 2 lists
- gen/index.cue (
make qwen.gen) - quant/*.py
# List lm-eval tasks and related
uv run --project evals lm_eval ls tasks > tasks.txt
uv run --project evals lm_eval ls -h- You almost certainly want to use data driven quantization.
- You almost certainly want to use at least the Sequential pipeline.
consider adding: https://github.com/modelscope/evalscope
CUE:
Evals:
NVFP4:
- https://research.nvidia.com/labs/nemotron/files/NVFP4-QAD-Report.pdf
- https://research.colfax-intl.com/cutlass-tutorial-nvfp4-blockscaled-gemm-on-nvidia-rtx-pro-blackwell-gpus-sm12x/
- https://humansand.ai/blog/nvfp4-rl
- https://hanlab.mit.edu/blog/svdquant-nvfp4 | https://news.ycombinator.com/item?id=43134907