Llama2 HQQ Quantized Models
Collection
LLama2 models quantized using https://github.com/mobiusml/hqq
•
6 items
•
Updated
•
5
This is a version of the LLama-2-13B-hf model quantized to 4-bit via Half-Quadratic Quantization (HQQ): https://mobiusml.github.io/hqq_blog/
This model matches the quality of AWQ (same perplexity) but didn't use any data for calibration.
To run the model, install the HQQ library from https://github.com/mobiusml/hqq and use it as follows:
model_id = 'mobiuslabsgmbh/Llama-2-13b-hf-4bit_g64-HQQ'
from hqq.engine.hf import HQQModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = HQQModelForCausalLM.from_quantized(model_id)
Limitations:
-Only supports single GPU runtime.
-Not compatible with HuggingFace's PEFT.