Commit
•
fa70389
1
Parent(s):
3fa14be
Upload 4 files
Browse filesUploading model
- config.json +41 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- tokenizer.json +91 -0
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./model_checkpoints/progen2-small",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"ProGenForCausalLM"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"embd_pdrop": 0.0,
|
10 |
+
"eos_token_id": 2,
|
11 |
+
"gradient_checkpointing": false,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"layer_norm_epsilon": 1e-05,
|
14 |
+
"model_type": "progen",
|
15 |
+
"n_ctx": 2048,
|
16 |
+
"n_embd": 1024,
|
17 |
+
"n_head": 16,
|
18 |
+
"n_inner": null,
|
19 |
+
"n_layer": 12,
|
20 |
+
"n_positions": 1024,
|
21 |
+
"resid_pdrop": 0.0,
|
22 |
+
"rotary_dim": 32,
|
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 |
+
"temperature": 1.0
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"tokenizer_class": "GPT2Tokenizer",
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.35.2",
|
39 |
+
"use_cache": true,
|
40 |
+
"vocab_size": 32
|
41 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.35.2"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a152615762fb578f36a2586f74a93f0437a8cdc92c45259a0648bc3ade25f7d
|
3 |
+
size 617190232
|
tokenizer.json
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "1.0",
|
3 |
+
"truncation": null,
|
4 |
+
"padding": null,
|
5 |
+
"added_tokens": [
|
6 |
+
{
|
7 |
+
"id": 0,
|
8 |
+
"special": true,
|
9 |
+
"content": "<|pad|>",
|
10 |
+
"single_word": false,
|
11 |
+
"lstrip": false,
|
12 |
+
"rstrip": false,
|
13 |
+
"normalized": false
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"id": 1,
|
17 |
+
"special": true,
|
18 |
+
"content": "<|bos|>",
|
19 |
+
"single_word": false,
|
20 |
+
"lstrip": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"normalized": false
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"id": 2,
|
26 |
+
"special": true,
|
27 |
+
"content": "<|eos|>",
|
28 |
+
"single_word": false,
|
29 |
+
"lstrip": false,
|
30 |
+
"rstrip": false,
|
31 |
+
"normalized": false
|
32 |
+
}
|
33 |
+
],
|
34 |
+
"normalizer": null,
|
35 |
+
"pre_tokenizer": {
|
36 |
+
"type": "ByteLevel",
|
37 |
+
"add_prefix_space": false,
|
38 |
+
"trim_offsets": true
|
39 |
+
},
|
40 |
+
"post_processor": {
|
41 |
+
"type": "ByteLevel",
|
42 |
+
"add_prefix_space": true,
|
43 |
+
"trim_offsets": true
|
44 |
+
},
|
45 |
+
"decoder": {
|
46 |
+
"type": "ByteLevel",
|
47 |
+
"add_prefix_space": true,
|
48 |
+
"trim_offsets": true
|
49 |
+
},
|
50 |
+
"model": {
|
51 |
+
"type": "BPE",
|
52 |
+
"dropout": null,
|
53 |
+
"unk_token": null,
|
54 |
+
"continuing_subword_prefix": null,
|
55 |
+
"end_of_word_suffix": null,
|
56 |
+
"fuse_unk": false,
|
57 |
+
"vocab": {
|
58 |
+
"<|pad|>": 0,
|
59 |
+
"<|bos|>": 1,
|
60 |
+
"<|eos|>": 2,
|
61 |
+
"1": 3,
|
62 |
+
"2": 4,
|
63 |
+
"A": 5,
|
64 |
+
"B": 6,
|
65 |
+
"C": 7,
|
66 |
+
"D": 8,
|
67 |
+
"E": 9,
|
68 |
+
"F": 10,
|
69 |
+
"G": 11,
|
70 |
+
"H": 12,
|
71 |
+
"I": 13,
|
72 |
+
"K": 14,
|
73 |
+
"L": 15,
|
74 |
+
"M": 16,
|
75 |
+
"N": 17,
|
76 |
+
"O": 18,
|
77 |
+
"P": 19,
|
78 |
+
"Q": 20,
|
79 |
+
"R": 21,
|
80 |
+
"S": 22,
|
81 |
+
"T": 23,
|
82 |
+
"U": 24,
|
83 |
+
"V": 25,
|
84 |
+
"W": 26,
|
85 |
+
"X": 27,
|
86 |
+
"Y": 28,
|
87 |
+
"Z": 29
|
88 |
+
},
|
89 |
+
"merges": []
|
90 |
+
}
|
91 |
+
}
|