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