File size: 17,794 Bytes
39a7fdb |
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
{
"architectures": [
"DeepseekV3ForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"auto_map": {
"AutoConfig": "configuration_deepseek.DeepseekV3Config",
"AutoModel": "modeling_deepseek.DeepseekV3Model",
"AutoModelForCausalLM": "modeling_deepseek.DeepseekV3ForCausalLM"
},
"aux_loss_alpha": 0.001,
"bos_token_id": 0,
"eos_token_id": 1,
"ep_size": 1,
"first_k_dense_replace": 3,
"hidden_act": "silu",
"hidden_size": 7168,
"initializer_range": 0.02,
"intermediate_size": 18432,
"kv_lora_rank": 512,
"max_position_embeddings": 163840,
"model_type": "deepseek_v3",
"moe_intermediate_size": 2048,
"moe_layer_freq": 1,
"n_group": 8,
"n_routed_experts": 256,
"n_shared_experts": 1,
"norm_topk_prob": true,
"num_attention_heads": 128,
"num_experts_per_tok": 8,
"num_hidden_layers": 61,
"num_key_value_heads": 128,
"num_nextn_predict_layers": 1,
"pad_token_id": 128815,
"pretraining_tp": 1,
"q_lora_rank": 1536,
"qk_nope_head_dim": 128,
"qk_rope_head_dim": 64,
"quantization_config": {
"algo_config": {
"compute_scale_loss": "MAE",
"model_decoder_layers": "model.layers",
"name": "autosmoothquant",
"num_attention_heads": -1,
"num_key_value_heads": -1,
"scaling_layers": [
{
"inp": "mlp.gate_proj",
"layers": [
"mlp.gate_proj",
"mlp.up_proj"
],
"module2inspect": "mlp",
"prev_op": "post_attention_layernorm"
},
{
"inp": "mlp.down_proj",
"layers": [
"mlp.down_proj"
],
"prev_op": "mlp.up_proj"
},
{
"inp": "down_proj",
"layers": [
"down_proj"
],
"prev_op": "up_proj"
}
]
},
"exclude": [
"model.layers.0.self_attn.q_a_proj",
"model.layers.0.self_attn.q_b_proj",
"model.layers.0.self_attn.kv_a_proj_with_mqa",
"model.layers.0.self_attn.kv_b_proj",
"model.layers.0.self_attn.o_proj",
"model.layers.1.self_attn.q_a_proj",
"model.layers.1.self_attn.q_b_proj",
"model.layers.1.self_attn.kv_a_proj_with_mqa",
"model.layers.1.self_attn.kv_b_proj",
"model.layers.1.self_attn.o_proj",
"model.layers.2.self_attn.q_a_proj",
"model.layers.2.self_attn.q_b_proj",
"model.layers.2.self_attn.kv_a_proj_with_mqa",
"model.layers.2.self_attn.kv_b_proj",
"model.layers.2.self_attn.o_proj",
"model.layers.3.self_attn.q_a_proj",
"model.layers.3.self_attn.q_b_proj",
"model.layers.3.self_attn.kv_a_proj_with_mqa",
"model.layers.3.self_attn.kv_b_proj",
"model.layers.3.self_attn.o_proj",
"model.layers.4.self_attn.q_a_proj",
"model.layers.4.self_attn.q_b_proj",
"model.layers.4.self_attn.kv_a_proj_with_mqa",
"model.layers.4.self_attn.kv_b_proj",
"model.layers.4.self_attn.o_proj",
"model.layers.5.self_attn.q_a_proj",
"model.layers.5.self_attn.q_b_proj",
"model.layers.5.self_attn.kv_a_proj_with_mqa",
"model.layers.5.self_attn.kv_b_proj",
"model.layers.5.self_attn.o_proj",
"model.layers.6.self_attn.q_a_proj",
"model.layers.6.self_attn.q_b_proj",
"model.layers.6.self_attn.kv_a_proj_with_mqa",
"model.layers.6.self_attn.kv_b_proj",
"model.layers.6.self_attn.o_proj",
"model.layers.7.self_attn.q_a_proj",
"model.layers.7.self_attn.q_b_proj",
"model.layers.7.self_attn.kv_a_proj_with_mqa",
"model.layers.7.self_attn.kv_b_proj",
"model.layers.7.self_attn.o_proj",
"model.layers.8.self_attn.q_a_proj",
"model.layers.8.self_attn.q_b_proj",
"model.layers.8.self_attn.kv_a_proj_with_mqa",
"model.layers.8.self_attn.kv_b_proj",
"model.layers.8.self_attn.o_proj",
"model.layers.9.self_attn.q_a_proj",
"model.layers.9.self_attn.q_b_proj",
"model.layers.9.self_attn.kv_a_proj_with_mqa",
"model.layers.9.self_attn.kv_b_proj",
"model.layers.9.self_attn.o_proj",
"model.layers.10.self_attn.q_a_proj",
"model.layers.10.self_attn.q_b_proj",
"model.layers.10.self_attn.kv_a_proj_with_mqa",
"model.layers.10.self_attn.kv_b_proj",
"model.layers.10.self_attn.o_proj",
"model.layers.11.self_attn.q_a_proj",
"model.layers.11.self_attn.q_b_proj",
"model.layers.11.self_attn.kv_a_proj_with_mqa",
"model.layers.11.self_attn.kv_b_proj",
"model.layers.11.self_attn.o_proj",
"model.layers.12.self_attn.q_a_proj",
"model.layers.12.self_attn.q_b_proj",
"model.layers.12.self_attn.kv_a_proj_with_mqa",
"model.layers.12.self_attn.kv_b_proj",
"model.layers.12.self_attn.o_proj",
"model.layers.13.self_attn.q_a_proj",
"model.layers.13.self_attn.q_b_proj",
"model.layers.13.self_attn.kv_a_proj_with_mqa",
"model.layers.13.self_attn.kv_b_proj",
"model.layers.13.self_attn.o_proj",
"model.layers.14.self_attn.q_a_proj",
"model.layers.14.self_attn.q_b_proj",
"model.layers.14.self_attn.kv_a_proj_with_mqa",
"model.layers.14.self_attn.kv_b_proj",
"model.layers.14.self_attn.o_proj",
"model.layers.15.self_attn.q_a_proj",
"model.layers.15.self_attn.q_b_proj",
"model.layers.15.self_attn.kv_a_proj_with_mqa",
"model.layers.15.self_attn.kv_b_proj",
"model.layers.15.self_attn.o_proj",
"model.layers.16.self_attn.q_a_proj",
"model.layers.16.self_attn.q_b_proj",
"model.layers.16.self_attn.kv_a_proj_with_mqa",
"model.layers.16.self_attn.kv_b_proj",
"model.layers.16.self_attn.o_proj",
"model.layers.17.self_attn.q_a_proj",
"model.layers.17.self_attn.q_b_proj",
"model.layers.17.self_attn.kv_a_proj_with_mqa",
"model.layers.17.self_attn.kv_b_proj",
"model.layers.17.self_attn.o_proj",
"model.layers.18.self_attn.q_a_proj",
"model.layers.18.self_attn.q_b_proj",
"model.layers.18.self_attn.kv_a_proj_with_mqa",
"model.layers.18.self_attn.kv_b_proj",
"model.layers.18.self_attn.o_proj",
"model.layers.19.self_attn.q_a_proj",
"model.layers.19.self_attn.q_b_proj",
"model.layers.19.self_attn.kv_a_proj_with_mqa",
"model.layers.19.self_attn.kv_b_proj",
"model.layers.19.self_attn.o_proj",
"model.layers.20.self_attn.q_a_proj",
"model.layers.20.self_attn.q_b_proj",
"model.layers.20.self_attn.kv_a_proj_with_mqa",
"model.layers.20.self_attn.kv_b_proj",
"model.layers.20.self_attn.o_proj",
"model.layers.21.self_attn.q_a_proj",
"model.layers.21.self_attn.q_b_proj",
"model.layers.21.self_attn.kv_a_proj_with_mqa",
"model.layers.21.self_attn.kv_b_proj",
"model.layers.21.self_attn.o_proj",
"model.layers.22.self_attn.q_a_proj",
"model.layers.22.self_attn.q_b_proj",
"model.layers.22.self_attn.kv_a_proj_with_mqa",
"model.layers.22.self_attn.kv_b_proj",
"model.layers.22.self_attn.o_proj",
"model.layers.23.self_attn.q_a_proj",
"model.layers.23.self_attn.q_b_proj",
"model.layers.23.self_attn.kv_a_proj_with_mqa",
"model.layers.23.self_attn.kv_b_proj",
"model.layers.23.self_attn.o_proj",
"model.layers.24.self_attn.q_a_proj",
"model.layers.24.self_attn.q_b_proj",
"model.layers.24.self_attn.kv_a_proj_with_mqa",
"model.layers.24.self_attn.kv_b_proj",
"model.layers.24.self_attn.o_proj",
"model.layers.25.self_attn.q_a_proj",
"model.layers.25.self_attn.q_b_proj",
"model.layers.25.self_attn.kv_a_proj_with_mqa",
"model.layers.25.self_attn.kv_b_proj",
"model.layers.25.self_attn.o_proj",
"model.layers.26.self_attn.q_a_proj",
"model.layers.26.self_attn.q_b_proj",
"model.layers.26.self_attn.kv_a_proj_with_mqa",
"model.layers.26.self_attn.kv_b_proj",
"model.layers.26.self_attn.o_proj",
"model.layers.27.self_attn.q_a_proj",
"model.layers.27.self_attn.q_b_proj",
"model.layers.27.self_attn.kv_a_proj_with_mqa",
"model.layers.27.self_attn.kv_b_proj",
"model.layers.27.self_attn.o_proj",
"model.layers.28.self_attn.q_a_proj",
"model.layers.28.self_attn.q_b_proj",
"model.layers.28.self_attn.kv_a_proj_with_mqa",
"model.layers.28.self_attn.kv_b_proj",
"model.layers.28.self_attn.o_proj",
"model.layers.29.self_attn.q_a_proj",
"model.layers.29.self_attn.q_b_proj",
"model.layers.29.self_attn.kv_a_proj_with_mqa",
"model.layers.29.self_attn.kv_b_proj",
"model.layers.29.self_attn.o_proj",
"model.layers.30.self_attn.q_a_proj",
"model.layers.30.self_attn.q_b_proj",
"model.layers.30.self_attn.kv_a_proj_with_mqa",
"model.layers.30.self_attn.kv_b_proj",
"model.layers.30.self_attn.o_proj",
"model.layers.31.self_attn.q_a_proj",
"model.layers.31.self_attn.q_b_proj",
"model.layers.31.self_attn.kv_a_proj_with_mqa",
"model.layers.31.self_attn.kv_b_proj",
"model.layers.31.self_attn.o_proj",
"model.layers.32.self_attn.q_a_proj",
"model.layers.32.self_attn.q_b_proj",
"model.layers.32.self_attn.kv_a_proj_with_mqa",
"model.layers.32.self_attn.kv_b_proj",
"model.layers.32.self_attn.o_proj",
"model.layers.33.self_attn.q_a_proj",
"model.layers.33.self_attn.q_b_proj",
"model.layers.33.self_attn.kv_a_proj_with_mqa",
"model.layers.33.self_attn.kv_b_proj",
"model.layers.33.self_attn.o_proj",
"model.layers.34.self_attn.q_a_proj",
"model.layers.34.self_attn.q_b_proj",
"model.layers.34.self_attn.kv_a_proj_with_mqa",
"model.layers.34.self_attn.kv_b_proj",
"model.layers.34.self_attn.o_proj",
"model.layers.35.self_attn.q_a_proj",
"model.layers.35.self_attn.q_b_proj",
"model.layers.35.self_attn.kv_a_proj_with_mqa",
"model.layers.35.self_attn.kv_b_proj",
"model.layers.35.self_attn.o_proj",
"model.layers.36.self_attn.q_a_proj",
"model.layers.36.self_attn.q_b_proj",
"model.layers.36.self_attn.kv_a_proj_with_mqa",
"model.layers.36.self_attn.kv_b_proj",
"model.layers.36.self_attn.o_proj",
"model.layers.37.self_attn.q_a_proj",
"model.layers.37.self_attn.q_b_proj",
"model.layers.37.self_attn.kv_a_proj_with_mqa",
"model.layers.37.self_attn.kv_b_proj",
"model.layers.37.self_attn.o_proj",
"model.layers.38.self_attn.q_a_proj",
"model.layers.38.self_attn.q_b_proj",
"model.layers.38.self_attn.kv_a_proj_with_mqa",
"model.layers.38.self_attn.kv_b_proj",
"model.layers.38.self_attn.o_proj",
"model.layers.39.self_attn.q_a_proj",
"model.layers.39.self_attn.q_b_proj",
"model.layers.39.self_attn.kv_a_proj_with_mqa",
"model.layers.39.self_attn.kv_b_proj",
"model.layers.39.self_attn.o_proj",
"model.layers.40.self_attn.q_a_proj",
"model.layers.40.self_attn.q_b_proj",
"model.layers.40.self_attn.kv_a_proj_with_mqa",
"model.layers.40.self_attn.kv_b_proj",
"model.layers.40.self_attn.o_proj",
"model.layers.41.self_attn.q_a_proj",
"model.layers.41.self_attn.q_b_proj",
"model.layers.41.self_attn.kv_a_proj_with_mqa",
"model.layers.41.self_attn.kv_b_proj",
"model.layers.41.self_attn.o_proj",
"model.layers.42.self_attn.q_a_proj",
"model.layers.42.self_attn.q_b_proj",
"model.layers.42.self_attn.kv_a_proj_with_mqa",
"model.layers.42.self_attn.kv_b_proj",
"model.layers.42.self_attn.o_proj",
"model.layers.43.self_attn.q_a_proj",
"model.layers.43.self_attn.q_b_proj",
"model.layers.43.self_attn.kv_a_proj_with_mqa",
"model.layers.43.self_attn.kv_b_proj",
"model.layers.43.self_attn.o_proj",
"model.layers.44.self_attn.q_a_proj",
"model.layers.44.self_attn.q_b_proj",
"model.layers.44.self_attn.kv_a_proj_with_mqa",
"model.layers.44.self_attn.kv_b_proj",
"model.layers.44.self_attn.o_proj",
"model.layers.45.self_attn.q_a_proj",
"model.layers.45.self_attn.q_b_proj",
"model.layers.45.self_attn.kv_a_proj_with_mqa",
"model.layers.45.self_attn.kv_b_proj",
"model.layers.45.self_attn.o_proj",
"model.layers.46.self_attn.q_a_proj",
"model.layers.46.self_attn.q_b_proj",
"model.layers.46.self_attn.kv_a_proj_with_mqa",
"model.layers.46.self_attn.kv_b_proj",
"model.layers.46.self_attn.o_proj",
"model.layers.47.self_attn.q_a_proj",
"model.layers.47.self_attn.q_b_proj",
"model.layers.47.self_attn.kv_a_proj_with_mqa",
"model.layers.47.self_attn.kv_b_proj",
"model.layers.47.self_attn.o_proj",
"model.layers.48.self_attn.q_a_proj",
"model.layers.48.self_attn.q_b_proj",
"model.layers.48.self_attn.kv_a_proj_with_mqa",
"model.layers.48.self_attn.kv_b_proj",
"model.layers.48.self_attn.o_proj",
"model.layers.49.self_attn.q_a_proj",
"model.layers.49.self_attn.q_b_proj",
"model.layers.49.self_attn.kv_a_proj_with_mqa",
"model.layers.49.self_attn.kv_b_proj",
"model.layers.49.self_attn.o_proj",
"model.layers.50.self_attn.q_a_proj",
"model.layers.50.self_attn.q_b_proj",
"model.layers.50.self_attn.kv_a_proj_with_mqa",
"model.layers.50.self_attn.kv_b_proj",
"model.layers.50.self_attn.o_proj",
"model.layers.51.self_attn.q_a_proj",
"model.layers.51.self_attn.q_b_proj",
"model.layers.51.self_attn.kv_a_proj_with_mqa",
"model.layers.51.self_attn.kv_b_proj",
"model.layers.51.self_attn.o_proj",
"model.layers.52.self_attn.q_a_proj",
"model.layers.52.self_attn.q_b_proj",
"model.layers.52.self_attn.kv_a_proj_with_mqa",
"model.layers.52.self_attn.kv_b_proj",
"model.layers.52.self_attn.o_proj",
"model.layers.53.self_attn.q_a_proj",
"model.layers.53.self_attn.q_b_proj",
"model.layers.53.self_attn.kv_a_proj_with_mqa",
"model.layers.53.self_attn.kv_b_proj",
"model.layers.53.self_attn.o_proj",
"model.layers.54.self_attn.q_a_proj",
"model.layers.54.self_attn.q_b_proj",
"model.layers.54.self_attn.kv_a_proj_with_mqa",
"model.layers.54.self_attn.kv_b_proj",
"model.layers.54.self_attn.o_proj",
"model.layers.55.self_attn.q_a_proj",
"model.layers.55.self_attn.q_b_proj",
"model.layers.55.self_attn.kv_a_proj_with_mqa",
"model.layers.55.self_attn.kv_b_proj",
"model.layers.55.self_attn.o_proj",
"model.layers.56.self_attn.q_a_proj",
"model.layers.56.self_attn.q_b_proj",
"model.layers.56.self_attn.kv_a_proj_with_mqa",
"model.layers.56.self_attn.kv_b_proj",
"model.layers.56.self_attn.o_proj",
"model.layers.57.self_attn.q_a_proj",
"model.layers.57.self_attn.q_b_proj",
"model.layers.57.self_attn.kv_a_proj_with_mqa",
"model.layers.57.self_attn.kv_b_proj",
"model.layers.57.self_attn.o_proj",
"model.layers.58.self_attn.q_a_proj",
"model.layers.58.self_attn.q_b_proj",
"model.layers.58.self_attn.kv_a_proj_with_mqa",
"model.layers.58.self_attn.kv_b_proj",
"model.layers.58.self_attn.o_proj",
"model.layers.59.self_attn.q_a_proj",
"model.layers.59.self_attn.q_b_proj",
"model.layers.59.self_attn.kv_a_proj_with_mqa",
"model.layers.59.self_attn.kv_b_proj",
"model.layers.59.self_attn.o_proj",
"model.layers.60.self_attn.q_a_proj",
"model.layers.60.self_attn.q_b_proj",
"model.layers.60.self_attn.kv_a_proj_with_mqa",
"model.layers.60.self_attn.kv_b_proj",
"model.layers.60.self_attn.o_proj",
"lm_head"
],
"export": {
"kv_cache_group": [],
"min_kv_scale": 0.0,
"pack_method": "reorder",
"weight_format": "real_quantized",
"weight_merge_groups": null
},
"global_quant_config": {
"bias": null,
"input_tensors": {
"ch_axis": -1,
"dtype": "fp4",
"group_size": 32,
"is_dynamic": true,
"is_mx_scale_constraint": false,
"is_scale_quant": false,
"mx_element_dtype": null,
"observer_cls": "PerBlockMXObserver",
"qscheme": "per_group",
"round_method": "half_even",
"scale_calculation_mode": "even",
"scale_format": "e8m0",
"scale_type": "float",
"symmetric": null
},
"output_tensors": null,
"target_device": null,
"weight": {
"ch_axis": -1,
"dtype": "fp4",
"group_size": 32,
"is_dynamic": false,
"is_mx_scale_constraint": false,
"is_scale_quant": false,
"mx_element_dtype": null,
"observer_cls": "PerBlockMXObserver",
"qscheme": "per_group",
"round_method": "half_even",
"scale_calculation_mode": "even",
"scale_format": "e8m0",
"scale_type": "float",
"symmetric": null
}
},
"layer_quant_config": {},
"layer_type_quant_config": {},
"quant_method": "quark",
"quant_mode": "eager_mode",
"softmax_quant_spec": null
},
"rms_norm_eps": 1e-06,
"rope_scaling": {
"beta_fast": 32,
"beta_slow": 1,
"factor": 40,
"mscale": 1.0,
"mscale_all_dim": 1.0,
"original_max_position_embeddings": 4096,
"type": "yarn"
},
"rope_theta": 10000,
"routed_scaling_factor": 2.5,
"scoring_func": "sigmoid",
"seq_aux": true,
"tie_word_embeddings": false,
"topk_group": 4,
"topk_method": "noaux_tc",
"torch_dtype": "bfloat16",
"transformers_version": "4.51.3",
"unsloth_fixed": true,
"use_cache": true,
"v_head_dim": 128,
"vocab_size": 129280
}
|