awq-model-zoo / README.md
yujiepan's picture
Update README.md
9ec3674 verified
metadata
tags:
  - awq
  - llm
  - quantization

yujiepan/awq-model-zoo

Here are some pre-computed awq information (scales & clips) used in llm-awq.

Scripts

python do_awq.py --model_id mistralai/Mistral-7B-v0.1 --w_bit 8 --q_group_size 128 --dump_awq ./awq-info.pt
  • Load a quantized model: You can use the offical repo to get a fake/real quantized model. Alternatively, you can load a fake-quantized model:
from do_awq import FakeAWQModel
FakeAWQModel.from_pretrained('mistralai/Mistral-7B-v0.1', awq_meta_path='./awq-info.pt',  output_folder='./tmp/')

Note: the code is not in good shape.

Related links