Upload Qwen2ForCausalLM
Browse files- config.json +60 -0
- generation_config.json +14 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen2ForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"bos_token_id": 151643,
|
7 |
+
"eos_token_id": 151645,
|
8 |
+
"hidden_act": "silu",
|
9 |
+
"hidden_size": 1536,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 8960,
|
12 |
+
"max_position_embeddings": 32768,
|
13 |
+
"max_window_layers": 21,
|
14 |
+
"model_type": "qwen2",
|
15 |
+
"num_attention_heads": 12,
|
16 |
+
"num_hidden_layers": 28,
|
17 |
+
"num_key_value_heads": 2,
|
18 |
+
"quantization_config": {
|
19 |
+
"backend": "auto",
|
20 |
+
"batch_size": 1,
|
21 |
+
"bits": 4,
|
22 |
+
"block_name_to_quantize": null,
|
23 |
+
"cache_block_outputs": true,
|
24 |
+
"checkpoint_format": "gptq_v2",
|
25 |
+
"damp_percent": 0.1,
|
26 |
+
"dataset": "c4",
|
27 |
+
"desc_act": false,
|
28 |
+
"exllama_config": {
|
29 |
+
"version": 1
|
30 |
+
},
|
31 |
+
"group_size": 128,
|
32 |
+
"max_input_length": null,
|
33 |
+
"meta": {
|
34 |
+
"quantizer": [
|
35 |
+
"optimum:1.24.0",
|
36 |
+
"gptqmodel:2.2.0"
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"model_seqlen": null,
|
40 |
+
"module_name_preceding_first_block": null,
|
41 |
+
"modules_in_block_to_quantize": null,
|
42 |
+
"pad_token_id": null,
|
43 |
+
"quant_method": "gptq",
|
44 |
+
"sym": true,
|
45 |
+
"tokenizer": null,
|
46 |
+
"true_sequential": true,
|
47 |
+
"use_cuda_fp16": false,
|
48 |
+
"use_exllama": true
|
49 |
+
},
|
50 |
+
"rms_norm_eps": 1e-06,
|
51 |
+
"rope_scaling": null,
|
52 |
+
"rope_theta": 1000000.0,
|
53 |
+
"sliding_window": 32768,
|
54 |
+
"tie_word_embeddings": true,
|
55 |
+
"torch_dtype": "float16",
|
56 |
+
"transformers_version": "4.51.3",
|
57 |
+
"use_cache": true,
|
58 |
+
"use_sliding_window": false,
|
59 |
+
"vocab_size": 151936
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"pad_token_id": 151643,
|
9 |
+
"repetition_penalty": 1.1,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
+
"transformers_version": "4.51.3"
|
14 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ffc909ac63d27ddefc6d4f19a20955d88460eae439b1ab4bfa675c30f58f1edb
|
3 |
+
size 1147869136
|