Derick DeCesare
commited on
Commit
·
0ca8a11
0
Parent(s):
Initial commit: Converted HuggingFace model
Browse files- .gitattributes +1 -0
- config.json +32 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- vocab.json +34 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"attn_pdrop": 0.0,
|
| 7 |
+
"bos_token_id": 15,
|
| 8 |
+
"embd_pdrop": 0.0,
|
| 9 |
+
"eos_token_id": 1,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"layer_norm_epsilon": 1e-05,
|
| 12 |
+
"model_type": "gpt2",
|
| 13 |
+
"n_embd": 256,
|
| 14 |
+
"n_head": 4,
|
| 15 |
+
"n_inner": 1024,
|
| 16 |
+
"n_layer": 8,
|
| 17 |
+
"n_positions": 1024,
|
| 18 |
+
"pad_token_id": 0,
|
| 19 |
+
"reorder_and_upcast_attn": false,
|
| 20 |
+
"resid_pdrop": 0.0,
|
| 21 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 22 |
+
"scale_attn_weights": true,
|
| 23 |
+
"summary_activation": null,
|
| 24 |
+
"summary_first_dropout": 0.1,
|
| 25 |
+
"summary_proj_to_labels": true,
|
| 26 |
+
"summary_type": "cls_index",
|
| 27 |
+
"summary_use_proj": true,
|
| 28 |
+
"torch_dtype": "float32",
|
| 29 |
+
"transformers_version": "4.46.2",
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 32
|
| 32 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 15,
|
| 4 |
+
"eos_token_id": 1,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.46.2"
|
| 7 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f33a115d5b3251845de2996df045542a3a2891641d21b63959ada00c78be205
|
| 3 |
+
size 26365592
|
vocab.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
" ": 0,
|
| 3 |
+
"#": 1,
|
| 4 |
+
"+": 2,
|
| 5 |
+
"-": 3,
|
| 6 |
+
".": 4,
|
| 7 |
+
"0": 5,
|
| 8 |
+
"1": 6,
|
| 9 |
+
"2": 7,
|
| 10 |
+
"3": 8,
|
| 11 |
+
"4": 9,
|
| 12 |
+
"5": 10,
|
| 13 |
+
"6": 11,
|
| 14 |
+
"7": 12,
|
| 15 |
+
"8": 13,
|
| 16 |
+
"9": 14,
|
| 17 |
+
";": 15,
|
| 18 |
+
"=": 16,
|
| 19 |
+
"B": 17,
|
| 20 |
+
"K": 18,
|
| 21 |
+
"N": 19,
|
| 22 |
+
"O": 20,
|
| 23 |
+
"Q": 21,
|
| 24 |
+
"R": 22,
|
| 25 |
+
"a": 23,
|
| 26 |
+
"b": 24,
|
| 27 |
+
"c": 25,
|
| 28 |
+
"d": 26,
|
| 29 |
+
"e": 27,
|
| 30 |
+
"f": 28,
|
| 31 |
+
"g": 29,
|
| 32 |
+
"h": 30,
|
| 33 |
+
"x": 31
|
| 34 |
+
}
|