Felladrin commited on
Commit
40f8c63
1 Parent(s): 00693c0

Add model files

Browse files
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|ASSISTANT|>": 50258,
3
+ "<|USER|>": 50257,
4
+ "[PAD]": 50259
5
+ }
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Locutusque/gpt2-conversational-retrain",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
33
+ }
34
+ },
35
+ "transformers_version": "4.33.2",
36
+ "use_cache": true,
37
+ "vocab_size": 50260
38
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.33.2"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4651443807a9d7b8340381ff18cce64b8ba920d084d1845846c5eb3391c27923
3
+ size 499285193
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c301947d63c5fa47ef9279a76ffc6d48ea6bfbf4f7f2cadf7569392c9192cfd7
3
+ size 500808355
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d02981ad7f117a8c3042a6aa6013ac746fadd7aecfa9d30afa4a124a7c47f6f
3
+ size 128318071
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d490d2ac81f47764e532ed46e03fffe1a5df131f144fe4c64dd0ba600619b25
3
+ size 126559186
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25780a237345caae758997249766603017820cbc6506bba31d1eaee7f98f9dc3
3
+ size 499291999
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b1e24f98617ebdb017682175b9438d61efa29907c130c76d59176562e08b4d9
3
+ size 126568234
quantize_config.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": false,
3
+ "reduce_range": false,
4
+ "per_model_config": {
5
+ "decoder_with_past_model": {
6
+ "op_types": [
7
+ "Constant",
8
+ "Shape",
9
+ "Softmax",
10
+ "Where",
11
+ "Transpose",
12
+ "Tanh",
13
+ "Slice",
14
+ "Concat",
15
+ "Sqrt",
16
+ "Add",
17
+ "ConstantOfShape",
18
+ "Reshape",
19
+ "Div",
20
+ "Cast",
21
+ "Squeeze",
22
+ "Gather",
23
+ "ReduceMean",
24
+ "Mul",
25
+ "Split",
26
+ "Range",
27
+ "Sub",
28
+ "Unsqueeze",
29
+ "MatMul",
30
+ "Gemm",
31
+ "Pow"
32
+ ],
33
+ "weight_type": "QInt8"
34
+ },
35
+ "decoder_model": {
36
+ "op_types": [
37
+ "Constant",
38
+ "Shape",
39
+ "Softmax",
40
+ "Where",
41
+ "Transpose",
42
+ "Tanh",
43
+ "Slice",
44
+ "Concat",
45
+ "Sqrt",
46
+ "Add",
47
+ "ConstantOfShape",
48
+ "Reshape",
49
+ "Div",
50
+ "Cast",
51
+ "Squeeze",
52
+ "Gather",
53
+ "ReduceMean",
54
+ "Mul",
55
+ "Split",
56
+ "Range",
57
+ "Sub",
58
+ "Unsqueeze",
59
+ "MatMul",
60
+ "Gemm",
61
+ "Pow"
62
+ ],
63
+ "weight_type": "QInt8"
64
+ },
65
+ "decoder_model_merged": {
66
+ "op_types": [
67
+ "Constant",
68
+ "Shape",
69
+ "Softmax",
70
+ "Where",
71
+ "Transpose",
72
+ "Tanh",
73
+ "Slice",
74
+ "Concat",
75
+ "Sqrt",
76
+ "Add",
77
+ "ConstantOfShape",
78
+ "Reshape",
79
+ "Div",
80
+ "Cast",
81
+ "If",
82
+ "Squeeze",
83
+ "Gather",
84
+ "ReduceMean",
85
+ "Mul",
86
+ "Split",
87
+ "Range",
88
+ "Sub",
89
+ "Unsqueeze",
90
+ "MatMul",
91
+ "Gemm",
92
+ "Pow"
93
+ ],
94
+ "weight_type": "QInt8"
95
+ }
96
+ }
97
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|USER|>",
4
+ "<|ASSISTANT|>"
5
+ ],
6
+ "bos_token": "<|endoftext|>",
7
+ "eos_token": "<|endoftext|>",
8
+ "pad_token": "[PAD]",
9
+ "unk_token": "<|endoftext|>"
10
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<|endoftext|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|endoftext|>",
6
+ "max_length": 256,
7
+ "model_max_length": 1024,
8
+ "stride": 0,
9
+ "tokenizer_class": "GPT2Tokenizer",
10
+ "truncation_side": "right",
11
+ "truncation_strategy": "longest_first",
12
+ "unk_token": "<|endoftext|>"
13
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff