Add converted model and associated files
Browse files- config.json +50 -0
- generation_config.json +6 -0
- merges.txt +0 -0
- onnx/decoder_model.onnx +3 -0
- onnx/decoder_model_merged.onnx +3 -0
- onnx/decoder_model_merged_quantized.onnx +3 -0
- onnx/decoder_model_quantized.onnx +3 -0
- onnx/decoder_with_past_model.onnx +3 -0
- onnx/decoder_with_past_model_quantized.onnx +3 -0
- quantize_config.json +88 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer_config.json +33 -0
- vocab.json +0 -0
config.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "roneneldan/TinyStories-1M",
|
| 3 |
+
"activation_function": "gelu_new",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPTNeoForCausalLM"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0,
|
| 8 |
+
"attention_layers": [
|
| 9 |
+
"global",
|
| 10 |
+
"local",
|
| 11 |
+
"global",
|
| 12 |
+
"local",
|
| 13 |
+
"global",
|
| 14 |
+
"local",
|
| 15 |
+
"global",
|
| 16 |
+
"local"
|
| 17 |
+
],
|
| 18 |
+
"attention_types": [
|
| 19 |
+
[
|
| 20 |
+
[
|
| 21 |
+
"global",
|
| 22 |
+
"local"
|
| 23 |
+
],
|
| 24 |
+
4
|
| 25 |
+
]
|
| 26 |
+
],
|
| 27 |
+
"bos_token_id": 50256,
|
| 28 |
+
"classifier_dropout": 0.1,
|
| 29 |
+
"embed_dropout": 0,
|
| 30 |
+
"eos_token_id": 50256,
|
| 31 |
+
"gradient_checkpointing": false,
|
| 32 |
+
"hidden_size": 64,
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"intermediate_size": null,
|
| 35 |
+
"layer_norm_epsilon": 1e-05,
|
| 36 |
+
"max_position_embeddings": 2048,
|
| 37 |
+
"model_type": "gpt_neo",
|
| 38 |
+
"num_heads": 16,
|
| 39 |
+
"num_layers": 8,
|
| 40 |
+
"resid_dropout": 0,
|
| 41 |
+
"summary_activation": null,
|
| 42 |
+
"summary_first_dropout": 0.1,
|
| 43 |
+
"summary_proj_to_labels": true,
|
| 44 |
+
"summary_type": "cls_index",
|
| 45 |
+
"summary_use_proj": true,
|
| 46 |
+
"transformers_version": "4.31.0",
|
| 47 |
+
"use_cache": true,
|
| 48 |
+
"vocab_size": 50257,
|
| 49 |
+
"window_size": 256
|
| 50 |
+
}
|
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.31.0"
|
| 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:b0f9bafb0911eac08e0835e6580a46533f6c23b288bb7d7ce7c8aee21299a333
|
| 3 |
+
size 36437622
|
onnx/decoder_model_merged.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5665be0cd6c818347fbfc14397dbe34e1fa7c7f1082466fcc957b8e7da14260
|
| 3 |
+
size 45031368
|
onnx/decoder_model_merged_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee4b3266ca085eaff3130bb3c92df5955a67c92004c71c9e2c730fa55352d327
|
| 3 |
+
size 24681847
|
onnx/decoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eef462cb385433d47e058d99de547c7bf0f4e11e6f72f2296ba5f59f260fc5b8
|
| 3 |
+
size 15964301
|
onnx/decoder_with_past_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:396bd3f34bbf7e74a139af969b6e4d2fae003b7060c6c81ae5883c18234f9c35
|
| 3 |
+
size 36443094
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27df694102e431b3ce4cfb3f051bf58d96e4e79b3c4d174125e3d6f2cb315f3f
|
| 3 |
+
size 15971106
|
quantize_config.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"per_channel": true,
|
| 3 |
+
"reduce_range": true,
|
| 4 |
+
"per_model_config": {
|
| 5 |
+
"decoder_with_past_model": {
|
| 6 |
+
"op_types": [
|
| 7 |
+
"Tanh",
|
| 8 |
+
"Add",
|
| 9 |
+
"Softmax",
|
| 10 |
+
"Gather",
|
| 11 |
+
"Sqrt",
|
| 12 |
+
"Sub",
|
| 13 |
+
"Unsqueeze",
|
| 14 |
+
"Range",
|
| 15 |
+
"ReduceMean",
|
| 16 |
+
"Transpose",
|
| 17 |
+
"Div",
|
| 18 |
+
"Pow",
|
| 19 |
+
"Where",
|
| 20 |
+
"Slice",
|
| 21 |
+
"Reshape",
|
| 22 |
+
"Mul",
|
| 23 |
+
"Constant",
|
| 24 |
+
"Shape",
|
| 25 |
+
"Concat",
|
| 26 |
+
"Squeeze",
|
| 27 |
+
"Cast",
|
| 28 |
+
"MatMul"
|
| 29 |
+
],
|
| 30 |
+
"weight_type": "QInt8"
|
| 31 |
+
},
|
| 32 |
+
"decoder_model_merged": {
|
| 33 |
+
"op_types": [
|
| 34 |
+
"Tanh",
|
| 35 |
+
"Add",
|
| 36 |
+
"Softmax",
|
| 37 |
+
"Gather",
|
| 38 |
+
"Sqrt",
|
| 39 |
+
"Sub",
|
| 40 |
+
"Unsqueeze",
|
| 41 |
+
"Range",
|
| 42 |
+
"ReduceMean",
|
| 43 |
+
"Transpose",
|
| 44 |
+
"Div",
|
| 45 |
+
"Pow",
|
| 46 |
+
"Where",
|
| 47 |
+
"Slice",
|
| 48 |
+
"If",
|
| 49 |
+
"Reshape",
|
| 50 |
+
"Mul",
|
| 51 |
+
"Constant",
|
| 52 |
+
"Shape",
|
| 53 |
+
"Concat",
|
| 54 |
+
"Squeeze",
|
| 55 |
+
"Cast",
|
| 56 |
+
"MatMul"
|
| 57 |
+
],
|
| 58 |
+
"weight_type": "QInt8"
|
| 59 |
+
},
|
| 60 |
+
"decoder_model": {
|
| 61 |
+
"op_types": [
|
| 62 |
+
"Tanh",
|
| 63 |
+
"Add",
|
| 64 |
+
"Softmax",
|
| 65 |
+
"Gather",
|
| 66 |
+
"Sqrt",
|
| 67 |
+
"Sub",
|
| 68 |
+
"Unsqueeze",
|
| 69 |
+
"Range",
|
| 70 |
+
"ReduceMean",
|
| 71 |
+
"Transpose",
|
| 72 |
+
"Div",
|
| 73 |
+
"Pow",
|
| 74 |
+
"Where",
|
| 75 |
+
"Slice",
|
| 76 |
+
"Reshape",
|
| 77 |
+
"Mul",
|
| 78 |
+
"Constant",
|
| 79 |
+
"Shape",
|
| 80 |
+
"Concat",
|
| 81 |
+
"Squeeze",
|
| 82 |
+
"Cast",
|
| 83 |
+
"MatMul"
|
| 84 |
+
],
|
| 85 |
+
"weight_type": "QInt8"
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|endoftext|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": true,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|endoftext|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"unk_token": {
|
| 17 |
+
"content": "<|endoftext|>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": true,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
}
|
| 23 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"bos_token": {
|
| 5 |
+
"__type": "AddedToken",
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": true,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"clean_up_tokenization_spaces": true,
|
| 13 |
+
"eos_token": {
|
| 14 |
+
"__type": "AddedToken",
|
| 15 |
+
"content": "<|endoftext|>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": true,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false
|
| 20 |
+
},
|
| 21 |
+
"errors": "replace",
|
| 22 |
+
"model_max_length": 2048,
|
| 23 |
+
"pad_token": null,
|
| 24 |
+
"tokenizer_class": "GPT2Tokenizer",
|
| 25 |
+
"unk_token": {
|
| 26 |
+
"__type": "AddedToken",
|
| 27 |
+
"content": "<|endoftext|>",
|
| 28 |
+
"lstrip": false,
|
| 29 |
+
"normalized": true,
|
| 30 |
+
"rstrip": false,
|
| 31 |
+
"single_word": false
|
| 32 |
+
}
|
| 33 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|