Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model:
|
3 |
+
- meta-llama/Llama-3.2-3B-Instruct
|
4 |
+
base_model_relation: quantized
|
5 |
+
---
|
6 |
+
This is a version of the Llama-3.2-3B-Instruct model quantized to 4-bit via Half-Quadratic Quantization (HQQ): https://mobiusml.github.io/hqq_blog/
|
7 |
+
|
8 |
+
To run the model, install the HQQ library from https://github.com/mobiusml/hqq and use it as follows:
|
9 |
+
``` Python
|
10 |
+
model_id = 'brunopio/Llama-3.2-3B-Instruct-nbits4-GS64-Axis1-HQQ'
|
11 |
+
|
12 |
+
from hqq.engine.hf import HQQModelForCausalLM, AutoTokenizer
|
13 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
14 |
+
model = HQQModelForCausalLM.from_quantized(model_id)
|
15 |
+
```
|
16 |
+
|
17 |
+
*Limitations*: <br>
|
18 |
+
-Only supports single GPU runtime.<br>
|
19 |
+
-Not compatible with HuggingFace's PEFT.<br>
|