BlackSamorez commited on
Commit
eccf279
·
verified ·
1 Parent(s): 38e03c1

Upload LlamaForCausalLM

Browse files
README.md CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  Official [AQLM](https://arxiv.org/abs/2401.06118) quantization of `meta-llama/Llama-2-7b-hf`.
2
 
3
  For this quantization, we used 1 codebook of 16 bits.
 
1
+ ---
2
+ {}
3
+ ---
4
  Official [AQLM](https://arxiv.org/abs/2401.06118) quantization of `meta-llama/Llama-2-7b-hf`.
5
 
6
  For this quantization, we used 1 codebook of 16 bits.
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "BlackSamorez/Llama-2-70b-AQLM-2Bit-8x8-hf",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
@@ -20,7 +20,168 @@
20
  "quantization_config": {
21
  "in_group_size": 8,
22
  "linear_weights_not_to_quantize": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  "model.embed_tokens.weight",
 
24
  "lm_head.weight"
25
  ],
26
  "nbits_per_codebook": 8,
@@ -33,7 +194,7 @@
33
  "rope_theta": 10000.0,
34
  "tie_word_embeddings": false,
35
  "torch_dtype": "float16",
36
- "transformers_version": "4.38.0",
37
  "use_cache": true,
38
  "vocab_size": 32000
39
  }
 
1
  {
2
+ "_name_or_path": "/extra_disk_1/dkuznedelev/aqlm/Llama-2-70b-hf-2x8",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
 
20
  "quantization_config": {
21
  "in_group_size": 8,
22
  "linear_weights_not_to_quantize": [
23
+ "model.layers.0.input_layernorm.weight",
24
+ "model.layers.0.post_attention_layernorm.weight",
25
+ "model.layers.1.input_layernorm.weight",
26
+ "model.layers.1.post_attention_layernorm.weight",
27
+ "model.layers.2.input_layernorm.weight",
28
+ "model.layers.2.post_attention_layernorm.weight",
29
+ "model.layers.3.input_layernorm.weight",
30
+ "model.layers.3.post_attention_layernorm.weight",
31
+ "model.layers.4.input_layernorm.weight",
32
+ "model.layers.4.post_attention_layernorm.weight",
33
+ "model.layers.5.input_layernorm.weight",
34
+ "model.layers.5.post_attention_layernorm.weight",
35
+ "model.layers.6.input_layernorm.weight",
36
+ "model.layers.6.post_attention_layernorm.weight",
37
+ "model.layers.7.input_layernorm.weight",
38
+ "model.layers.7.post_attention_layernorm.weight",
39
+ "model.layers.8.input_layernorm.weight",
40
+ "model.layers.8.post_attention_layernorm.weight",
41
+ "model.layers.9.input_layernorm.weight",
42
+ "model.layers.9.post_attention_layernorm.weight",
43
+ "model.layers.10.input_layernorm.weight",
44
+ "model.layers.10.post_attention_layernorm.weight",
45
+ "model.layers.11.input_layernorm.weight",
46
+ "model.layers.11.post_attention_layernorm.weight",
47
+ "model.layers.12.input_layernorm.weight",
48
+ "model.layers.12.post_attention_layernorm.weight",
49
+ "model.layers.13.input_layernorm.weight",
50
+ "model.layers.13.post_attention_layernorm.weight",
51
+ "model.layers.14.input_layernorm.weight",
52
+ "model.layers.14.post_attention_layernorm.weight",
53
+ "model.layers.15.input_layernorm.weight",
54
+ "model.layers.15.post_attention_layernorm.weight",
55
+ "model.layers.16.input_layernorm.weight",
56
+ "model.layers.16.post_attention_layernorm.weight",
57
+ "model.layers.17.input_layernorm.weight",
58
+ "model.layers.17.post_attention_layernorm.weight",
59
+ "model.layers.18.input_layernorm.weight",
60
+ "model.layers.18.post_attention_layernorm.weight",
61
+ "model.layers.19.input_layernorm.weight",
62
+ "model.layers.19.post_attention_layernorm.weight",
63
+ "model.layers.20.input_layernorm.weight",
64
+ "model.layers.20.post_attention_layernorm.weight",
65
+ "model.layers.21.input_layernorm.weight",
66
+ "model.layers.21.post_attention_layernorm.weight",
67
+ "model.layers.22.input_layernorm.weight",
68
+ "model.layers.22.post_attention_layernorm.weight",
69
+ "model.layers.23.input_layernorm.weight",
70
+ "model.layers.23.post_attention_layernorm.weight",
71
+ "model.layers.24.input_layernorm.weight",
72
+ "model.layers.24.post_attention_layernorm.weight",
73
+ "model.layers.25.input_layernorm.weight",
74
+ "model.layers.25.post_attention_layernorm.weight",
75
+ "model.layers.26.input_layernorm.weight",
76
+ "model.layers.26.post_attention_layernorm.weight",
77
+ "model.layers.27.input_layernorm.weight",
78
+ "model.layers.27.post_attention_layernorm.weight",
79
+ "model.layers.28.input_layernorm.weight",
80
+ "model.layers.28.post_attention_layernorm.weight",
81
+ "model.layers.29.input_layernorm.weight",
82
+ "model.layers.29.post_attention_layernorm.weight",
83
+ "model.layers.30.input_layernorm.weight",
84
+ "model.layers.30.post_attention_layernorm.weight",
85
+ "model.layers.31.input_layernorm.weight",
86
+ "model.layers.31.post_attention_layernorm.weight",
87
+ "model.layers.32.input_layernorm.weight",
88
+ "model.layers.32.post_attention_layernorm.weight",
89
+ "model.layers.33.input_layernorm.weight",
90
+ "model.layers.33.post_attention_layernorm.weight",
91
+ "model.layers.34.input_layernorm.weight",
92
+ "model.layers.34.post_attention_layernorm.weight",
93
+ "model.layers.35.input_layernorm.weight",
94
+ "model.layers.35.post_attention_layernorm.weight",
95
+ "model.layers.36.input_layernorm.weight",
96
+ "model.layers.36.post_attention_layernorm.weight",
97
+ "model.layers.37.input_layernorm.weight",
98
+ "model.layers.37.post_attention_layernorm.weight",
99
+ "model.layers.38.input_layernorm.weight",
100
+ "model.layers.38.post_attention_layernorm.weight",
101
+ "model.layers.39.input_layernorm.weight",
102
+ "model.layers.39.post_attention_layernorm.weight",
103
+ "model.layers.40.input_layernorm.weight",
104
+ "model.layers.40.post_attention_layernorm.weight",
105
+ "model.layers.41.input_layernorm.weight",
106
+ "model.layers.41.post_attention_layernorm.weight",
107
+ "model.layers.42.input_layernorm.weight",
108
+ "model.layers.42.post_attention_layernorm.weight",
109
+ "model.layers.43.input_layernorm.weight",
110
+ "model.layers.43.post_attention_layernorm.weight",
111
+ "model.layers.44.input_layernorm.weight",
112
+ "model.layers.44.post_attention_layernorm.weight",
113
+ "model.layers.45.input_layernorm.weight",
114
+ "model.layers.45.post_attention_layernorm.weight",
115
+ "model.layers.46.input_layernorm.weight",
116
+ "model.layers.46.post_attention_layernorm.weight",
117
+ "model.layers.47.input_layernorm.weight",
118
+ "model.layers.47.post_attention_layernorm.weight",
119
+ "model.layers.48.input_layernorm.weight",
120
+ "model.layers.48.post_attention_layernorm.weight",
121
+ "model.layers.49.input_layernorm.weight",
122
+ "model.layers.49.post_attention_layernorm.weight",
123
+ "model.layers.50.input_layernorm.weight",
124
+ "model.layers.50.post_attention_layernorm.weight",
125
+ "model.layers.51.input_layernorm.weight",
126
+ "model.layers.51.post_attention_layernorm.weight",
127
+ "model.layers.52.input_layernorm.weight",
128
+ "model.layers.52.post_attention_layernorm.weight",
129
+ "model.layers.53.input_layernorm.weight",
130
+ "model.layers.53.post_attention_layernorm.weight",
131
+ "model.layers.54.input_layernorm.weight",
132
+ "model.layers.54.post_attention_layernorm.weight",
133
+ "model.layers.55.input_layernorm.weight",
134
+ "model.layers.55.post_attention_layernorm.weight",
135
+ "model.layers.56.input_layernorm.weight",
136
+ "model.layers.56.post_attention_layernorm.weight",
137
+ "model.layers.57.input_layernorm.weight",
138
+ "model.layers.57.post_attention_layernorm.weight",
139
+ "model.layers.58.input_layernorm.weight",
140
+ "model.layers.58.post_attention_layernorm.weight",
141
+ "model.layers.59.input_layernorm.weight",
142
+ "model.layers.59.post_attention_layernorm.weight",
143
+ "model.layers.60.input_layernorm.weight",
144
+ "model.layers.60.post_attention_layernorm.weight",
145
+ "model.layers.61.input_layernorm.weight",
146
+ "model.layers.61.post_attention_layernorm.weight",
147
+ "model.layers.62.input_layernorm.weight",
148
+ "model.layers.62.post_attention_layernorm.weight",
149
+ "model.layers.63.input_layernorm.weight",
150
+ "model.layers.63.post_attention_layernorm.weight",
151
+ "model.layers.64.input_layernorm.weight",
152
+ "model.layers.64.post_attention_layernorm.weight",
153
+ "model.layers.65.input_layernorm.weight",
154
+ "model.layers.65.post_attention_layernorm.weight",
155
+ "model.layers.66.input_layernorm.weight",
156
+ "model.layers.66.post_attention_layernorm.weight",
157
+ "model.layers.67.input_layernorm.weight",
158
+ "model.layers.67.post_attention_layernorm.weight",
159
+ "model.layers.68.input_layernorm.weight",
160
+ "model.layers.68.post_attention_layernorm.weight",
161
+ "model.layers.69.input_layernorm.weight",
162
+ "model.layers.69.post_attention_layernorm.weight",
163
+ "model.layers.70.input_layernorm.weight",
164
+ "model.layers.70.post_attention_layernorm.weight",
165
+ "model.layers.71.input_layernorm.weight",
166
+ "model.layers.71.post_attention_layernorm.weight",
167
+ "model.layers.72.input_layernorm.weight",
168
+ "model.layers.72.post_attention_layernorm.weight",
169
+ "model.layers.73.input_layernorm.weight",
170
+ "model.layers.73.post_attention_layernorm.weight",
171
+ "model.layers.74.input_layernorm.weight",
172
+ "model.layers.74.post_attention_layernorm.weight",
173
+ "model.layers.75.input_layernorm.weight",
174
+ "model.layers.75.post_attention_layernorm.weight",
175
+ "model.layers.76.input_layernorm.weight",
176
+ "model.layers.76.post_attention_layernorm.weight",
177
+ "model.layers.77.input_layernorm.weight",
178
+ "model.layers.77.post_attention_layernorm.weight",
179
+ "model.layers.78.input_layernorm.weight",
180
+ "model.layers.78.post_attention_layernorm.weight",
181
+ "model.layers.79.input_layernorm.weight",
182
+ "model.layers.79.post_attention_layernorm.weight",
183
  "model.embed_tokens.weight",
184
+ "model.norm.weight",
185
  "lm_head.weight"
186
  ],
187
  "nbits_per_codebook": 8,
 
194
  "rope_theta": 10000.0,
195
  "tie_word_embeddings": false,
196
  "torch_dtype": "float16",
197
+ "transformers_version": "4.38.2",
198
  "use_cache": true,
199
  "vocab_size": 32000
200
  }
generation_config.json CHANGED
@@ -2,5 +2,5 @@
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
- "transformers_version": "4.37.0"
6
  }
 
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
+ "transformers_version": "4.38.2"
6
  }
model-00001-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8cb3c9d31e8883babe636d1b08a66b3df815ad5a1aa3b0538a4d800aedcfc79b
3
  size 4963092360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e26928fd1ff5b7840bea5eb341d89e49e38cfa968b87f2d0d55e7b0fd202664
3
  size 4963092360
model-00002-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e878615c34c2c6bf2f1377d71ba3bed5cacce24042b9de2678abb018ffaa15e9
3
  size 4984691288
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f6d8f38c8625c5bc14538c37e52b36fd3564009492c6665f03495cc32d3c792
3
  size 4984691288
model-00003-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:140a8ff43a4b1769c20bcd93cecf6e815e0a0e57c709813c03b9a7ccb5932579
3
  size 4963732872
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:301a24700933075175a212e4edfc1b234e6c02095a6587d7ae243cd30295683f
3
  size 4963732872
model-00004-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:452d90ad3edd8773d2b717ef47bd7d0ba9fbfaa23a03bb750f8c8ab3f543fb40
3
  size 3270689184
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:997ea3a8e98e77fc9ddbb7ef9929f24e9e551fa1528fda780c1b8e3cf6b507d4
3
  size 3270689184