Upload folder using huggingface_hub
Browse files- config.json +106 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- special_tokens_map.json +24 -0
- tokenizer.model +3 -0
- tokenizer_config.json +43 -0
config.json
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "fxmarty/small-llama-testing",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"eos_token_id": 1,
|
10 |
+
"head_dim": 64,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 256,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 128,
|
15 |
+
"max_position_embeddings": 2048,
|
16 |
+
"mlp_bias": false,
|
17 |
+
"model_type": "llama",
|
18 |
+
"num_attention_heads": 4,
|
19 |
+
"num_hidden_layers": 2,
|
20 |
+
"num_key_value_heads": 4,
|
21 |
+
"pad_token_id": -1,
|
22 |
+
"pretraining_tp": 1,
|
23 |
+
"quantization_config": {
|
24 |
+
"algo_config": {
|
25 |
+
"model_decoder_layers": "model.layers",
|
26 |
+
"name": "awq",
|
27 |
+
"processor": "AwqProcessor",
|
28 |
+
"scaling_layers": [
|
29 |
+
{
|
30 |
+
"inp": "self_attn.q_proj",
|
31 |
+
"layers": [
|
32 |
+
"self_attn.q_proj",
|
33 |
+
"self_attn.k_proj",
|
34 |
+
"self_attn.v_proj"
|
35 |
+
],
|
36 |
+
"module2inspect": "self_attn",
|
37 |
+
"prev_op": "input_layernorm"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"condition": "module.self_attn.v_proj.weight.shape == module.self_attn.o_proj.weight.shape",
|
41 |
+
"help": "attention out, Please refer to https://github.com/mit-han-lab/llm-awq/pull/67#issue-1850622696, if module.self_attn.v_proj.weight.shape == module.self_attn.o_proj.weight.shape",
|
42 |
+
"inp": "self_attn.o_proj",
|
43 |
+
"layers": [
|
44 |
+
"self_attn.o_proj"
|
45 |
+
],
|
46 |
+
"prev_op": "self_attn.v_proj"
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"inp": "mlp.gate_proj",
|
50 |
+
"layers": [
|
51 |
+
"mlp.gate_proj",
|
52 |
+
"mlp.up_proj"
|
53 |
+
],
|
54 |
+
"module2inspect": "mlp",
|
55 |
+
"prev_op": "post_attention_layernorm"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"inp": "mlp.down_proj",
|
59 |
+
"layers": [
|
60 |
+
"mlp.down_proj"
|
61 |
+
],
|
62 |
+
"prev_op": "mlp.up_proj"
|
63 |
+
}
|
64 |
+
]
|
65 |
+
},
|
66 |
+
"exclude": [
|
67 |
+
"lm_head"
|
68 |
+
],
|
69 |
+
"export": {
|
70 |
+
"kv_cache_group": [],
|
71 |
+
"pack_method": "reorder",
|
72 |
+
"weight_format": "real_quantized",
|
73 |
+
"weight_merge_groups": null
|
74 |
+
},
|
75 |
+
"global_quant_config": {
|
76 |
+
"bias": null,
|
77 |
+
"input_tensors": null,
|
78 |
+
"output_tensors": null,
|
79 |
+
"target_device": null,
|
80 |
+
"weight": {
|
81 |
+
"ch_axis": 1,
|
82 |
+
"dtype": "int4",
|
83 |
+
"group_size": 4,
|
84 |
+
"is_dynamic": false,
|
85 |
+
"observer_cls": "PerGroupMinMaxObserver",
|
86 |
+
"qscheme": "per_group",
|
87 |
+
"round_method": "half_even",
|
88 |
+
"scale_type": "float",
|
89 |
+
"symmetric": true
|
90 |
+
}
|
91 |
+
},
|
92 |
+
"layer_quant_config": {},
|
93 |
+
"layer_type_quant_config": {},
|
94 |
+
"pack_method": "reorder",
|
95 |
+
"quant_method": "quark",
|
96 |
+
"quant_mode": "eager_mode"
|
97 |
+
},
|
98 |
+
"rms_norm_eps": 1e-06,
|
99 |
+
"rope_scaling": null,
|
100 |
+
"rope_theta": 10000.0,
|
101 |
+
"tie_word_embeddings": false,
|
102 |
+
"torch_dtype": "float32",
|
103 |
+
"transformers_version": "4.46.0.dev0",
|
104 |
+
"use_cache": true,
|
105 |
+
"vocab_size": 32000
|
106 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 1,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.46.0.dev0"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2182117bee4dc6baf6173af5c0ca550171df3bc4096aa5386478ab05f2b28aa0
|
3 |
+
size 66718056
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "</s>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
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,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": true,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": true,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": true,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"clean_up_tokenization_spaces": false,
|
33 |
+
"eos_token": "</s>",
|
34 |
+
"legacy": true,
|
35 |
+
"model_max_length": 512,
|
36 |
+
"pad_token": "</s>",
|
37 |
+
"padding_side": "left",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false
|
43 |
+
}
|