zx-modelcloud commited on
Commit
e75e222
·
verified ·
1 Parent(s): 7eb182d

Upload 8 files

Browse files
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "/monster/data/model/TinyLlama-1.1B-Chat-v1.0",
4
+ "architectures": [
5
+ "LlamaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 1,
10
+ "eos_token_id": 2,
11
+ "head_dim": 64,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 2048,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 5632,
16
+ "max_position_embeddings": 2048,
17
+ "mlp_bias": false,
18
+ "model_type": "llama",
19
+ "num_attention_heads": 32,
20
+ "num_hidden_layers": 22,
21
+ "num_key_value_heads": 4,
22
+ "pretraining_tp": 1,
23
+ "quantization_config": {
24
+ "bits": 4,
25
+ "checkpoint_format": "gptq",
26
+ "desc_act": true,
27
+ "dynamic": {
28
+ "-:model\\.layers\\.([2-9]\\d*|[1-9]\\d+)\\..*": {},
29
+ ".*\\.1\\..*": {
30
+ "bits": 8,
31
+ "desc_act": false,
32
+ "group_size": 32
33
+ }
34
+ },
35
+ "group_size": 128,
36
+ "lm_head": false,
37
+ "meta": {
38
+ "damp_auto_increment": 0.0025,
39
+ "damp_percent": 0.01,
40
+ "mse": 0.0,
41
+ "quantizer": [
42
+ "gptqmodel:1.5.1-dev"
43
+ ],
44
+ "static_groups": false,
45
+ "true_sequential": true,
46
+ "uri": "https://github.com/modelcloud/gptqmodel"
47
+ },
48
+ "quant_method": "gptq",
49
+ "sym": true
50
+ },
51
+ "rms_norm_eps": 1e-05,
52
+ "rope_scaling": null,
53
+ "rope_theta": 10000.0,
54
+ "tie_word_embeddings": false,
55
+ "torch_dtype": "bfloat16",
56
+ "transformers_version": "4.48.0.dev0",
57
+ "use_cache": true,
58
+ "vocab_size": 32000
59
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1fbf959c7f9467207b03e7f3b8cbba3176349cb351a9451d4638b21d5dd554c
3
+ size 2095156136
quant_log.csv ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ layer,module,loss,damp,time
2
+ 0,self_attn.k_proj,0.04410,0.01000,0.681
3
+ 0,self_attn.v_proj,0.00009,0.01000,0.501
4
+ 0,self_attn.q_proj,0.04807,0.01000,0.533
5
+ 0,self_attn.o_proj,0.00000,0.01000,0.508
6
+ 0,mlp.up_proj,0.01518,0.01000,0.556
7
+ 0,mlp.gate_proj,0.01725,0.01000,0.543
8
+ 0,mlp.down_proj,0.00004,0.01000,1.501
9
+ 1,self_attn.k_proj,0.00021,0.01000,0.527
10
+ 1,self_attn.v_proj,0.00000,0.01000,0.525
11
+ 1,self_attn.q_proj,0.00030,0.01000,0.544
12
+ 1,self_attn.o_proj,0.00000,0.01000,0.567
13
+ 1,mlp.up_proj,0.00012,0.01000,0.559
14
+ 1,mlp.gate_proj,0.00014,0.01000,0.568
15
+ 1,mlp.down_proj,0.00000,0.01000,1.511
quantize_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "dynamic": {
4
+ "-:model\\.layers\\.([2-9]\\d*|[1-9]\\d+)\\..*": {},
5
+ ".*\\.1\\..*": {
6
+ "bits": 8,
7
+ "group_size": 32,
8
+ "desc_act": false
9
+ }
10
+ },
11
+ "group_size": 128,
12
+ "desc_act": true,
13
+ "sym": true,
14
+ "lm_head": false,
15
+ "quant_method": "gptq",
16
+ "checkpoint_format": "gptq",
17
+ "meta": {
18
+ "quantizer": [
19
+ "gptqmodel:1.5.1-dev"
20
+ ],
21
+ "uri": "https://github.com/modelcloud/gptqmodel",
22
+ "damp_percent": 0.01,
23
+ "damp_auto_increment": 0.0025,
24
+ "static_groups": false,
25
+ "true_sequential": true,
26
+ "mse": 0.0
27
+ }
28
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 2048,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "tokenizer_class": "LlamaTokenizer",
42
+ "unk_token": "<unk>",
43
+ "use_default_system_prompt": false
44
+ }