-
Notifications
You must be signed in to change notification settings - Fork 2
/
gptq_deepseek.sh
101 lines (74 loc) · 3.08 KB
/
gptq_deepseek.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
# conda activate autoawq
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
export CUDA_VISIBLE_DEVICES=0
export DEBUG=0
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits all_4
export DEBUG=0
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
export CUDA_VISIBLE_DEVICES=1
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits all_2
export DEBUG=0
export CUDA_VISIBLE_DEVICES=2
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits moe.all_mlp.2+other_block.4
export DEBUG=0
export CUDA_VISIBLE_DEVICES=3
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits moe.shared_4.other.2+other_block_4
export DEBUG=0
export CUDA_VISIBLE_DEVICES=6
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits moe.shared_2.other.4+other_block_4
export DEBUG=0
export CUDA_VISIBLE_DEVICES=7
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits all_8
export DEBUG=0
export CUDA_VISIBLE_DEVICES=0
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits moe.all_mlp.4+other_block.8
export DEBUG=0
export CUDA_VISIBLE_DEVICES=1
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits moe.shared_4.other.2+other_block.8
export DEBUG=0
export CUDA_VISIBLE_DEVICES=2
export PYTHONPATH=/home/LeiFeng/pingzhi/moe_quantize/optimum/:$PYTHONPATH:/home/LeiFeng/pingzhi/moe_quantize/auto_gptq/:$PYTHONPATH
python quantize_gptq_deepseek.py \
--model_name deepseek-ai/deepseek-moe-16b-chat \
--nsamples 512 \
--group_size 64 \
--bits moe.shared_2.other.4+other_block.8