Upload folder using huggingface_hub
Browse files- config.json +1 -0
- onnx/decoder_model.onnx +2 -2
- onnx/decoder_model_merged.onnx +2 -2
- onnx/decoder_model_merged_quantized.onnx +2 -2
- onnx/decoder_model_quantized.onnx +2 -2
- onnx/decoder_with_past_model.onnx +2 -2
- onnx/decoder_with_past_model_quantized.onnx +2 -2
- quantize_config.json +61 -62
- special_tokens_map.json +3 -21
- tokenizer_config.json +29 -23
config.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"LlamaForCausalLM"
|
4 |
],
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "Xenova/llama2.c-stories110M",
|
3 |
"architectures": [
|
4 |
"LlamaForCausalLM"
|
5 |
],
|
onnx/decoder_model.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b4055de40adc6080300cb0a1a8986259c228b2447689651d7ce91ce340380b6
|
3 |
+
size 439063717
|
onnx/decoder_model_merged.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c27b7753ee0c8f83371ce28ebe01b94cddf93cc1045a9171623dc03d3b561c38
|
3 |
+
size 440015873
|
onnx/decoder_model_merged_quantized.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53a4a3b603720730b5d126fe18fb61f68ca137903881ca3d84db3bb0776d11d8
|
3 |
+
size 111933644
|
onnx/decoder_model_quantized.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6c5f19b29fc636f5975f964289fc67d23039120b6479969746c7d51d36f2574
|
3 |
+
size 110756863
|
onnx/decoder_with_past_model.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4194c70db527ebd117f4e530341522136e8c6322c86d9ff9cbff875da26c577
|
3 |
+
size 439070831
|
onnx/decoder_with_past_model_quantized.onnx
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e4a9d9b0e56de9f578abc299639909b3cca9258b87a55d0ef3ef9ae5ede0a55
|
3 |
+
size 110765314
|
quantize_config.json
CHANGED
@@ -2,104 +2,103 @@
|
|
2 |
"per_channel": false,
|
3 |
"reduce_range": false,
|
4 |
"per_model_config": {
|
5 |
-
"
|
6 |
"op_types": [
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"
|
13 |
"Div",
|
14 |
-
"
|
15 |
"MatMul",
|
16 |
-
"Slice",
|
17 |
-
"Reshape",
|
18 |
-
"Shape",
|
19 |
"Pow",
|
20 |
-
"
|
21 |
-
"
|
|
|
|
|
22 |
"Add",
|
|
|
|
|
|
|
23 |
"Expand",
|
24 |
-
"
|
25 |
-
"
|
|
|
26 |
"Gather",
|
27 |
-
"Identity",
|
28 |
-
"Range",
|
29 |
"Transpose",
|
30 |
-
"
|
31 |
-
"Squeeze",
|
32 |
"If",
|
33 |
-
"
|
34 |
-
"Sigmoid",
|
35 |
-
"Unsqueeze"
|
36 |
],
|
37 |
"weight_type": "QInt8"
|
38 |
},
|
39 |
-
"
|
40 |
"op_types": [
|
41 |
-
"
|
42 |
-
"
|
43 |
-
"
|
44 |
-
"
|
45 |
-
"
|
|
|
46 |
"Div",
|
47 |
-
"
|
48 |
"MatMul",
|
49 |
-
"Slice",
|
50 |
-
"Reshape",
|
51 |
-
"Shape",
|
52 |
"Pow",
|
53 |
-
"
|
54 |
-
"
|
|
|
|
|
55 |
"Add",
|
|
|
|
|
|
|
56 |
"Expand",
|
57 |
-
"
|
58 |
-
"
|
|
|
|
|
59 |
"Gather",
|
60 |
-
"Identity",
|
61 |
"Range",
|
62 |
"Transpose",
|
63 |
-
"
|
64 |
-
"Squeeze",
|
65 |
"If",
|
66 |
-
"
|
67 |
-
"Sigmoid",
|
68 |
-
"Unsqueeze"
|
69 |
],
|
70 |
"weight_type": "QInt8"
|
71 |
},
|
72 |
"decoder_model_merged": {
|
73 |
"op_types": [
|
74 |
-
"
|
75 |
-
"
|
76 |
-
"
|
77 |
-
"
|
78 |
-
"
|
79 |
-
"
|
80 |
"Div",
|
81 |
-
"
|
82 |
"MatMul",
|
83 |
-
"Slice",
|
84 |
-
"Reshape",
|
85 |
-
"Shape",
|
86 |
"Pow",
|
87 |
-
"
|
88 |
-
"
|
|
|
|
|
89 |
"Add",
|
|
|
|
|
|
|
90 |
"Expand",
|
91 |
-
"
|
92 |
-
"
|
|
|
|
|
93 |
"Gather",
|
94 |
-
"Identity",
|
95 |
"Range",
|
96 |
"Transpose",
|
97 |
-
"
|
98 |
-
"Squeeze",
|
99 |
"If",
|
100 |
-
"
|
101 |
-
"Sigmoid",
|
102 |
-
"Unsqueeze"
|
103 |
],
|
104 |
"weight_type": "QInt8"
|
105 |
}
|
|
|
2 |
"per_channel": false,
|
3 |
"reduce_range": false,
|
4 |
"per_model_config": {
|
5 |
+
"decoder_with_past_model": {
|
6 |
"op_types": [
|
7 |
+
"Sub",
|
8 |
+
"Slice",
|
9 |
+
"Constant",
|
10 |
+
"Identity",
|
11 |
+
"Equal",
|
12 |
+
"Sigmoid",
|
13 |
"Div",
|
14 |
+
"Mul",
|
15 |
"MatMul",
|
|
|
|
|
|
|
16 |
"Pow",
|
17 |
+
"Where",
|
18 |
+
"Neg",
|
19 |
+
"ConstantOfShape",
|
20 |
+
"Softmax",
|
21 |
"Add",
|
22 |
+
"Sqrt",
|
23 |
+
"Unsqueeze",
|
24 |
+
"Reshape",
|
25 |
"Expand",
|
26 |
+
"ReduceMean",
|
27 |
+
"Concat",
|
28 |
+
"Cast",
|
29 |
"Gather",
|
|
|
|
|
30 |
"Transpose",
|
31 |
+
"Shape",
|
|
|
32 |
"If",
|
33 |
+
"Squeeze"
|
|
|
|
|
34 |
],
|
35 |
"weight_type": "QInt8"
|
36 |
},
|
37 |
+
"decoder_model": {
|
38 |
"op_types": [
|
39 |
+
"Sub",
|
40 |
+
"Slice",
|
41 |
+
"Constant",
|
42 |
+
"Identity",
|
43 |
+
"Equal",
|
44 |
+
"Sigmoid",
|
45 |
"Div",
|
46 |
+
"Mul",
|
47 |
"MatMul",
|
|
|
|
|
|
|
48 |
"Pow",
|
49 |
+
"Where",
|
50 |
+
"Neg",
|
51 |
+
"ConstantOfShape",
|
52 |
+
"Softmax",
|
53 |
"Add",
|
54 |
+
"Sqrt",
|
55 |
+
"Unsqueeze",
|
56 |
+
"Reshape",
|
57 |
"Expand",
|
58 |
+
"ReduceMean",
|
59 |
+
"Concat",
|
60 |
+
"Less",
|
61 |
+
"Cast",
|
62 |
"Gather",
|
|
|
63 |
"Range",
|
64 |
"Transpose",
|
65 |
+
"Shape",
|
|
|
66 |
"If",
|
67 |
+
"Squeeze"
|
|
|
|
|
68 |
],
|
69 |
"weight_type": "QInt8"
|
70 |
},
|
71 |
"decoder_model_merged": {
|
72 |
"op_types": [
|
73 |
+
"Sub",
|
74 |
+
"Slice",
|
75 |
+
"Constant",
|
76 |
+
"Identity",
|
77 |
+
"Equal",
|
78 |
+
"Sigmoid",
|
79 |
"Div",
|
80 |
+
"Mul",
|
81 |
"MatMul",
|
|
|
|
|
|
|
82 |
"Pow",
|
83 |
+
"Where",
|
84 |
+
"Neg",
|
85 |
+
"ConstantOfShape",
|
86 |
+
"Softmax",
|
87 |
"Add",
|
88 |
+
"Sqrt",
|
89 |
+
"Unsqueeze",
|
90 |
+
"Reshape",
|
91 |
"Expand",
|
92 |
+
"ReduceMean",
|
93 |
+
"Concat",
|
94 |
+
"Less",
|
95 |
+
"Cast",
|
96 |
"Gather",
|
|
|
97 |
"Range",
|
98 |
"Transpose",
|
99 |
+
"Shape",
|
|
|
100 |
"If",
|
101 |
+
"Squeeze"
|
|
|
|
|
102 |
],
|
103 |
"weight_type": "QInt8"
|
104 |
}
|
special_tokens_map.json
CHANGED
@@ -1,23 +1,5 @@
|
|
1 |
{
|
2 |
-
"bos_token":
|
3 |
-
|
4 |
-
|
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 |
-
"unk_token": {
|
17 |
-
"content": "<unk>",
|
18 |
-
"lstrip": false,
|
19 |
-
"normalized": true,
|
20 |
-
"rstrip": false,
|
21 |
-
"single_word": false
|
22 |
-
}
|
23 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"unk_token": "<unk>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
tokenizer_config.json
CHANGED
@@ -1,32 +1,38 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
},
|
|
|
|
|
10 |
"clean_up_tokenization_spaces": false,
|
11 |
-
"eos_token":
|
12 |
-
"__type": "AddedToken",
|
13 |
-
"content": "</s>",
|
14 |
-
"lstrip": false,
|
15 |
-
"normalized": true,
|
16 |
-
"rstrip": false,
|
17 |
-
"single_word": false
|
18 |
-
},
|
19 |
"model_max_length": 2048,
|
20 |
"pad_token": null,
|
21 |
"sp_model_kwargs": {},
|
22 |
"tokenizer_class": "LlamaTokenizer",
|
23 |
-
"unk_token":
|
24 |
-
"__type": "AddedToken",
|
25 |
-
"content": "<unk>",
|
26 |
-
"lstrip": false,
|
27 |
-
"normalized": true,
|
28 |
-
"rstrip": false,
|
29 |
-
"single_word": false
|
30 |
-
},
|
31 |
"use_default_system_prompt": true
|
32 |
}
|
|
|
1 |
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": true,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": true,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": true,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
},
|
28 |
+
"additional_special_tokens": [],
|
29 |
+
"bos_token": "<s>",
|
30 |
"clean_up_tokenization_spaces": false,
|
31 |
+
"eos_token": "</s>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
"model_max_length": 2048,
|
33 |
"pad_token": null,
|
34 |
"sp_model_kwargs": {},
|
35 |
"tokenizer_class": "LlamaTokenizer",
|
36 |
+
"unk_token": "<unk>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
"use_default_system_prompt": true
|
38 |
}
|