AbstractQbit commited on
Commit
e8c7553
·
1 Parent(s): f2a48a1

Upload 12 files

Browse files
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/electra-large-discriminator",
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 1024,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 1024,
12
+ "id2label": {
13
+ "0": "NEGATIVE",
14
+ "1": "POSITIVE"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 4096,
18
+ "label2id": {
19
+ "NEGATIVE": 0,
20
+ "POSITIVE": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "max_position_embeddings": 512,
24
+ "model_type": "electra",
25
+ "num_attention_heads": 16,
26
+ "num_hidden_layers": 24,
27
+ "pad_token_id": 0,
28
+ "position_embedding_type": "absolute",
29
+ "problem_type": "single_label_classification",
30
+ "summary_activation": "gelu",
31
+ "summary_last_dropout": 0.1,
32
+ "summary_type": "first",
33
+ "summary_use_proj": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.31.0",
36
+ "type_vocab_size": 2,
37
+ "use_cache": true,
38
+ "vocab_size": 30522
39
+ }
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:585dfd8f3e2227c2e8d4f41107da6b7e73b07aeef18cb8dd1d39405923fb86b6
3
+ size 2681382842
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00663d985741fafa84eb89a974f02286257b7de9cd489b98771eb47d3d7e4915
3
+ size 1340711790
readme.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ `google/electra-large-discriminator` finetuned on imdb dataset for 2 epoches.
2
+
3
+ Large examples tokenized with head and tail parts of a review, as described in [How to Fine-Tune BERT for Text Classification?](https://arxiv.org/abs/1905.05583)
4
+
5
+ ```python
6
+ def preprocess_function(example):
7
+ tokens = tokenizer(example["text"], truncation=False)
8
+ if len(tokens['input_ids']) > 512:
9
+ tokens['input_ids'] = tokens['input_ids'][:129] + \
10
+ [102] + tokens['input_ids'][-382:]
11
+ tokens['token_type_ids'] = [0]*512
12
+ tokens['attention_mask'] = [1]*512
13
+ return tokens
14
+ ```
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53d2fecb476a681abf3740c1a0c5f92578590207d79e8495a51d786ab9386914
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f59813ac2216377e393dcff7ff2c3c40f95f23641544178497cd91418272ee8d
3
+ size 1064
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,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "ElectraTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
trainer_state.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.99936,
5
+ "global_step": 1562,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.13,
12
+ "learning_rate": 2e-05,
13
+ "loss": 0.5028,
14
+ "step": 100
15
+ },
16
+ {
17
+ "epoch": 0.26,
18
+ "learning_rate": 1.863201094391245e-05,
19
+ "loss": 0.2106,
20
+ "step": 200
21
+ },
22
+ {
23
+ "epoch": 0.38,
24
+ "learning_rate": 1.72640218878249e-05,
25
+ "loss": 0.1829,
26
+ "step": 300
27
+ },
28
+ {
29
+ "epoch": 0.51,
30
+ "learning_rate": 1.5896032831737347e-05,
31
+ "loss": 0.165,
32
+ "step": 400
33
+ },
34
+ {
35
+ "epoch": 0.64,
36
+ "learning_rate": 1.4528043775649796e-05,
37
+ "loss": 0.1482,
38
+ "step": 500
39
+ },
40
+ {
41
+ "epoch": 0.77,
42
+ "learning_rate": 1.3160054719562245e-05,
43
+ "loss": 0.1394,
44
+ "step": 600
45
+ },
46
+ {
47
+ "epoch": 0.9,
48
+ "learning_rate": 1.1792065663474691e-05,
49
+ "loss": 0.1451,
50
+ "step": 700
51
+ },
52
+ {
53
+ "epoch": 1.0,
54
+ "eval_accuracy": 0.96384,
55
+ "eval_loss": 0.10218027979135513,
56
+ "eval_runtime": 754.598,
57
+ "eval_samples_per_second": 33.13,
58
+ "eval_steps_per_second": 4.141,
59
+ "step": 781
60
+ },
61
+ {
62
+ "epoch": 1.02,
63
+ "learning_rate": 1.0424076607387142e-05,
64
+ "loss": 0.1213,
65
+ "step": 800
66
+ },
67
+ {
68
+ "epoch": 1.15,
69
+ "learning_rate": 9.05608755129959e-06,
70
+ "loss": 0.091,
71
+ "step": 900
72
+ },
73
+ {
74
+ "epoch": 1.28,
75
+ "learning_rate": 7.688098495212039e-06,
76
+ "loss": 0.0988,
77
+ "step": 1000
78
+ },
79
+ {
80
+ "epoch": 1.41,
81
+ "learning_rate": 6.3201094391244875e-06,
82
+ "loss": 0.0822,
83
+ "step": 1100
84
+ },
85
+ {
86
+ "epoch": 1.54,
87
+ "learning_rate": 4.952120383036936e-06,
88
+ "loss": 0.092,
89
+ "step": 1200
90
+ },
91
+ {
92
+ "epoch": 1.66,
93
+ "learning_rate": 3.584131326949385e-06,
94
+ "loss": 0.0894,
95
+ "step": 1300
96
+ },
97
+ {
98
+ "epoch": 1.79,
99
+ "learning_rate": 2.2161422708618332e-06,
100
+ "loss": 0.1006,
101
+ "step": 1400
102
+ },
103
+ {
104
+ "epoch": 1.92,
105
+ "learning_rate": 8.481532147742819e-07,
106
+ "loss": 0.0767,
107
+ "step": 1500
108
+ },
109
+ {
110
+ "epoch": 2.0,
111
+ "eval_accuracy": 0.96628,
112
+ "eval_loss": 0.11105333268642426,
113
+ "eval_runtime": 750.9747,
114
+ "eval_samples_per_second": 33.29,
115
+ "eval_steps_per_second": 4.161,
116
+ "step": 1562
117
+ }
118
+ ],
119
+ "max_steps": 1562,
120
+ "num_train_epochs": 2,
121
+ "total_flos": 4.388029403227747e+16,
122
+ "trial_name": null,
123
+ "trial_params": null
124
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d615fca9fe81200b28903fd357ad7f564201f1e497d29a22e86ac50ba458179
3
+ size 4408
vocab.txt ADDED
The diff for this file is too large to render. See raw diff