lrl-modelcloud commited on
Commit
54ba121
·
verified ·
1 Parent(s): 6b18c3c

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ license_link: https://huggingface.co/Qwen/QwQ-32B/blob/main/LICENSE
4
+ language:
5
+ - en
6
+ base_model:
7
+ - Qwen/QwQ-32B
8
+ pipeline_tag: text-generation
9
+ tags:
10
+ - gptqmodel
11
+ - modelcloud
12
+ - chat
13
+ - qwen2
14
+ - qwq
15
+ - instruct
16
+ - int4
17
+ - gptq
18
+ - 4bit
19
+ ---
20
+
21
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/641c13e7999935676ec7bc03/yAroItQgotzclZ2h--Jkq.png)
22
+
23
+ This model has been quantized using [GPTQModel](https://github.com/ModelCloud/GPTQModel).
24
+
25
+ - **bits**: 4
26
+ - **dynamic**: null
27
+ - **group_size**: 32
28
+ - **desc_act**: true
29
+ - **static_groups**: false
30
+ - **sym**: true
31
+ - **lm_head**: false
32
+ - **true_sequential**: true
33
+ - **quant_method**: "gptq"
34
+ - **checkpoint_format**: "gptq"
35
+ - **meta**:
36
+ - **quantizer**: gptqmodel:2.0.0
37
+ - **uri**: https://github.com/modelcloud/gptqmodel
38
+ - **damp_percent**: 0.1
39
+ - **damp_auto_increment**: 0.0025
40
+
41
+
42
+ ## Example:
43
+ ```python
44
+ from transformers import AutoTokenizer
45
+ from gptqmodel import GPTQModel
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("ModelCloud/QwQ-32B-gptqmodel-4bit-vortex-v1")
48
+ model = GPTQModel.load("ModelCloud/QwQ-32B-gptqmodel-4bit-vortex-v1")
49
+
50
+ messages = [
51
+ {"role": "user", "content": "How many r's are in the word \"strawberry\""},
52
+ ]
53
+ input_tensor = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
54
+
55
+ outputs = model.generate(input_ids=input_tensor.to(model.device), max_new_tokens=512)
56
+ result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=True)
57
+
58
+ print(result)
59
+ ```