duwuonline
commited on
Commit
•
736116c
1
Parent(s):
56d8e7d
Upload model
Browse files- config.json +35 -15
- generation_config.json +0 -1
- pytorch_model.bin +2 -2
config.json
CHANGED
@@ -1,26 +1,46 @@
|
|
1 |
{
|
|
|
|
|
|
|
2 |
"architectures": [
|
3 |
-
"
|
4 |
],
|
5 |
-
"
|
6 |
"bos_token_id": 0,
|
7 |
-
"
|
8 |
"eos_token_id": 2,
|
9 |
-
"
|
10 |
-
|
11 |
-
|
12 |
"initializer_range": 0.02,
|
13 |
-
"
|
14 |
-
|
15 |
-
|
16 |
-
"
|
17 |
-
"
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
"torch_dtype": "float32",
|
22 |
"transformers_version": "4.30.2",
|
23 |
-
"type_vocab_size": 2,
|
24 |
"use_cache": true,
|
25 |
"vocab_size": 64001
|
26 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "distilgpt2",
|
3 |
+
"_num_labels": 1,
|
4 |
+
"activation_function": "gelu_new",
|
5 |
"architectures": [
|
6 |
+
"GPT2LMHeadModel"
|
7 |
],
|
8 |
+
"attn_pdrop": 0.1,
|
9 |
"bos_token_id": 0,
|
10 |
+
"embd_pdrop": 0.1,
|
11 |
"eos_token_id": 2,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0"
|
14 |
+
},
|
15 |
"initializer_range": 0.02,
|
16 |
+
"label2id": {
|
17 |
+
"LABEL_0": 0
|
18 |
+
},
|
19 |
+
"layer_norm_epsilon": 1e-05,
|
20 |
+
"model_type": "gpt2",
|
21 |
+
"n_ctx": 128,
|
22 |
+
"n_embd": 768,
|
23 |
+
"n_head": 12,
|
24 |
+
"n_inner": null,
|
25 |
+
"n_layer": 6,
|
26 |
+
"n_positions": 1024,
|
27 |
+
"reorder_and_upcast_attn": false,
|
28 |
+
"resid_pdrop": 0.1,
|
29 |
+
"scale_attn_by_inverse_layer_idx": false,
|
30 |
+
"scale_attn_weights": true,
|
31 |
+
"summary_activation": null,
|
32 |
+
"summary_first_dropout": 0.1,
|
33 |
+
"summary_proj_to_labels": true,
|
34 |
+
"summary_type": "cls_index",
|
35 |
+
"summary_use_proj": true,
|
36 |
+
"task_specific_params": {
|
37 |
+
"text-generation": {
|
38 |
+
"do_sample": true,
|
39 |
+
"max_length": 50
|
40 |
+
}
|
41 |
+
},
|
42 |
"torch_dtype": "float32",
|
43 |
"transformers_version": "4.30.2",
|
|
|
44 |
"use_cache": true,
|
45 |
"vocab_size": 64001
|
46 |
}
|
generation_config.json
CHANGED
@@ -2,6 +2,5 @@
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 0,
|
4 |
"eos_token_id": 2,
|
5 |
-
"pad_token_id": 1,
|
6 |
"transformers_version": "4.30.2"
|
7 |
}
|
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 0,
|
4 |
"eos_token_id": 2,
|
|
|
5 |
"transformers_version": "4.30.2"
|
6 |
}
|
pytorch_model.bin
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:7fade51bceb1e4bb240f51323aa53cc309e83d0bcf865fe69c390853c38778c7
|
3 |
+
size 369896341
|