mobicham commited on
Commit
6e044ad
1 Parent(s): bacf75c

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ train: false
4
+ inference: false
5
+ pipeline_tag: text-generation
6
+ ---
7
+ ## Mixtral-8x7B-v0.1-hf-2bit_g16_s128-HQQ
8
+ This is a version of the Mixtral-8x7B-v0.1 model (https://huggingface.co/mistralai/Mixtral-8x7B-v0.1) quantized to 2-bit via Half-Quadratic Quantization (HQQ): https://mobiusml.github.io/hqq_blog/
9
+ ### Basic Usage
10
+ To run the model, install the HQQ library from https://github.com/mobiusml/hqq and use it as follows:
11
+ ``` Python
12
+ model_id = 'mobiuslabsgmbh/Mixtral-8x7B-v0.1-hf-2bit_g16_s128-HQQ'
13
+
14
+ #Load the model
15
+ from hqq.engine.hf import HQQModelForCausalLM, AutoTokenizer
16
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
17
+ model = HQQModelForCausalLM.from_quantized(model_id)
18
+
19
+ #Optional
20
+ from hqq.core.quantize import *
21
+ HQQLinear.set_backend(HQQBackend.PYTORCH_COMPILE)
22
+ ```
23
+