lrl-modelcloud commited on
Commit
852464a
·
verified ·
1 Parent(s): ac7bad9

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - gptqmodel
7
+ - modelcloud
8
+ - chat
9
+ - qwen
10
+ - deepseek
11
+ - instruct
12
+ - int4
13
+ - gptq
14
+ - 4bit
15
+ - W4A16
16
+ ---
17
+
18
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/641c13e7999935676ec7bc03/Pa5HhvXdd5uWYEL88M33o.png)
19
+
20
+ This model has been quantized using [GPTQModel](https://github.com/ModelCloud/GPTQModel).
21
+
22
+ - **bits**: 4
23
+ - **dynamic**: null
24
+ - **group_size**: 32
25
+ - **desc_act**: true
26
+ - **static_groups**: false
27
+ - **sym**: true
28
+ - **lm_head**: false
29
+ - **true_sequential**: true
30
+ - **quant_method**: "gptq"
31
+ - **checkpoint_format**: "gptq"
32
+ - **meta**:
33
+ - **quantizer**: gptqmodel:1.7.4
34
+ - **uri**: https://github.com/modelcloud/gptqmodel
35
+ - **damp_percent**: 0.1
36
+ - **damp_auto_increment**: 0.0025
37
+
38
+
39
+ ## Example:
40
+ ```python
41
+ from transformers import AutoTokenizer
42
+ from gptqmodel import GPTQModel
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("ModelCloud/DeepSeek-R1-Distill-Qwen-7B-gptqmodel-4bit-vortex-v2")
45
+ model = GPTQModel.load("ModelCloud/DeepSeek-R1-Distill-Qwen-7B-gptqmodel-4bit-vortex-v2")
46
+
47
+ messages = [
48
+ {"role": "system", "content": "You are a helpful and harmless assistant. You should think step-by-step."},
49
+ {"role": "user", "content": "How can I design a data structure in C++ to store the top 5 largest integer numbers?"},
50
+ ]
51
+ input_tensor = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
52
+
53
+ outputs = model.generate(input_ids=input_tensor.to(model.device), max_new_tokens=512)
54
+ result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=True)
55
+
56
+ print(result)
57
+ ```