qgyd2021 commited on
Commit
e636b4e
1 Parent(s): f729637

Upload 12 files

Browse files
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/data/tianxing/PycharmProjects/Transformers/examples/conversational/few_shot_intent/../../../pretrained_models/huggingface/uer/gpt2-chinese-cluecorpussmall",
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
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 1024,
16
+ "n_embd": 768,
17
+ "n_head": 12,
18
+ "n_inner": null,
19
+ "n_layer": 12,
20
+ "n_positions": 1024,
21
+ "output_past": true,
22
+ "reorder_and_upcast_attn": false,
23
+ "resid_pdrop": 0.1,
24
+ "scale_attn_by_inverse_layer_idx": false,
25
+ "scale_attn_weights": true,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
31
+ "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 320
35
+ }
36
+ },
37
+ "tokenizer_class": "BertTokenizer",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.38.2",
40
+ "use_cache": true,
41
+ "vocab_size": 21128
42
+ }
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.38.2"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:264123f3b0522dcc97d258297af6223df6d275b7ad1a684c5586061a8c8826b7
3
+ size 408289920
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be6ea2adac57e0df56d042e03e01fb971cc0a11b7902f1a4f6a6bbe5ae3c6158
3
+ size 816673221
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2dd7ad886a9422c7ef528675a29256443d4b76eea2a593fcb3fe03d94b0a878
3
+ size 14575
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d497170a557a58e02563b153fcabeac5f382a0f8581b768182b1d97128371f3
3
+ size 627
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1024,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
trainer_state.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.2666095495224,
3
+ "best_model_checkpoint": "/data/tianxing/PycharmProjects/Transformers/examples/conversational/few_shot_intent/file_dir/serialization_dir/checkpoint-6000",
4
+ "epoch": 0.17463054724847743,
5
+ "eval_steps": 1000,
6
+ "global_step": 6000,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.03,
13
+ "grad_norm": 0.6197968125343323,
14
+ "learning_rate": 0.0002,
15
+ "loss": 1.7096,
16
+ "step": 1000
17
+ },
18
+ {
19
+ "epoch": 0.03,
20
+ "eval_loss": 1.4217256307601929,
21
+ "eval_runtime": 2455.1897,
22
+ "eval_samples_per_second": 118.455,
23
+ "eval_steps_per_second": 14.807,
24
+ "step": 1000
25
+ },
26
+ {
27
+ "epoch": 0.06,
28
+ "grad_norm": 0.3991679549217224,
29
+ "learning_rate": 0.00019400443671682956,
30
+ "loss": 1.2426,
31
+ "step": 2000
32
+ },
33
+ {
34
+ "epoch": 0.06,
35
+ "eval_loss": 1.3142809867858887,
36
+ "eval_runtime": 2454.5071,
37
+ "eval_samples_per_second": 118.488,
38
+ "eval_steps_per_second": 14.811,
39
+ "step": 2000
40
+ },
41
+ {
42
+ "epoch": 0.09,
43
+ "grad_norm": 0.3880527913570404,
44
+ "learning_rate": 0.0001880088734336591,
45
+ "loss": 1.1529,
46
+ "step": 3000
47
+ },
48
+ {
49
+ "epoch": 0.09,
50
+ "eval_loss": 1.2872347831726074,
51
+ "eval_runtime": 2455.0423,
52
+ "eval_samples_per_second": 118.462,
53
+ "eval_steps_per_second": 14.808,
54
+ "step": 3000
55
+ },
56
+ {
57
+ "epoch": 0.12,
58
+ "grad_norm": 0.3351105749607086,
59
+ "learning_rate": 0.00018201331015048865,
60
+ "loss": 1.0968,
61
+ "step": 4000
62
+ },
63
+ {
64
+ "epoch": 0.12,
65
+ "eval_loss": 1.2708055973052979,
66
+ "eval_runtime": 2454.672,
67
+ "eval_samples_per_second": 118.48,
68
+ "eval_steps_per_second": 14.81,
69
+ "step": 4000
70
+ },
71
+ {
72
+ "epoch": 0.15,
73
+ "grad_norm": 0.42601627111434937,
74
+ "learning_rate": 0.0001760177468673182,
75
+ "loss": 1.0568,
76
+ "step": 5000
77
+ },
78
+ {
79
+ "epoch": 0.15,
80
+ "eval_loss": 1.2738263607025146,
81
+ "eval_runtime": 2454.9426,
82
+ "eval_samples_per_second": 118.467,
83
+ "eval_steps_per_second": 14.808,
84
+ "step": 5000
85
+ },
86
+ {
87
+ "epoch": 0.17,
88
+ "grad_norm": 0.3943077027797699,
89
+ "learning_rate": 0.00017002218358414775,
90
+ "loss": 1.0274,
91
+ "step": 6000
92
+ },
93
+ {
94
+ "epoch": 0.17,
95
+ "eval_loss": 1.2666095495224,
96
+ "eval_runtime": 2453.7183,
97
+ "eval_samples_per_second": 118.526,
98
+ "eval_steps_per_second": 14.816,
99
+ "step": 6000
100
+ }
101
+ ],
102
+ "logging_steps": 1000,
103
+ "max_steps": 34358,
104
+ "num_input_tokens_seen": 0,
105
+ "num_train_epochs": 1,
106
+ "save_steps": 1000,
107
+ "total_flos": 1.9766892483628237e+17,
108
+ "train_batch_size": 16,
109
+ "trial_name": null,
110
+ "trial_params": null
111
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c966c450aac56ceea5918e4254e4d4dd5eaa4a16fdda74aa42cdb35ff2dde9c6
3
+ size 4603
vocab.txt ADDED
The diff for this file is too large to render. See raw diff