Downloads · 30 days
16
3% of all-time downloads
mobiuslabsgmbh/Llama-2-13b-hf-4bit_g64-HQQ
Llama-2-13b-hf-4bit_g64-HQQ is a text generation model from mobiuslabsgmbh. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama2.
This is a version of the LLama-2-13B-hf model quantized to 4-bit via Half-Quadratic Quantization (HQQ): https://mobiusml.github.io/hqqblog/
Downloads · 30 days
16
3% of all-time downloads
All-time downloads
474
Public
Repo size
7.6 GB
Likes
1
Public
Click a slice to open those files.
.pt7.6 GB · 100%
From the Hugging Face model README
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:
#This model is deprecated and requires older versions
pip install hqq==0.1.8
pip install transformers==4.46.0
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: <br> -Only supports single GPU runtime.<br> -Not compatible with HuggingFace's PEFT.<br>