Skip to content

verdverm/quantr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantr

Utilities for quantizing and evaluating open weight models.

  • llm-compressor & lm-evaluation-harness
  • config driven, grid generation, simple commands

Setup

Tools:

  • uv for python
  • make sure nvcc is in PATH
  • cue for 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

Using

# 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

Change points

  • 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

Notes

  1. You almost certainly want to use data driven quantization.
  2. You almost certainly want to use at least the Sequential pipeline.

References

papers

llm-compressor

lm-evaluation-harness

consider adding: https://github.com/modelscope/evalscope

Other

CUE:

Evals:

NVFP4:

About

Utilities for quantizing and evaluating open weight models.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors