alexge233 commited on
Commit
dcbfb3d
·
verified ·
1 Parent(s): e098f47

v6-maxlen256: L-2_H-512_A-8 retrained on corrected dataset (label fixes + non-ASCII text cleanups on 3 long articles). Test F1=0.9424, Recall=0.9796, Precision=0.7869, F2=0.9339, threshold=0.16, CPU 30.22ms.

Browse files
config.json CHANGED
@@ -3,9 +3,9 @@
3
  "BertForSequenceClassification"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
- "classifier_dropout": 0.1893813242387978,
7
  "hidden_act": "gelu",
8
- "hidden_dropout_prob": 0.1893813242387978,
9
  "hidden_size": 512,
10
  "id2label": {
11
  "0": "NOT-ACQUISITION",
@@ -24,7 +24,7 @@
24
  "num_hidden_layers": 2,
25
  "pad_token_id": 0,
26
  "position_embedding_type": "absolute",
27
- "torch_dtype": "float16",
28
  "transformers_version": "4.51.1",
29
  "type_vocab_size": 2,
30
  "use_cache": true,
 
3
  "BertForSequenceClassification"
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": 0.10739841773456314,
7
  "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.10739841773456314,
9
  "hidden_size": 512,
10
  "id2label": {
11
  "0": "NOT-ACQUISITION",
 
24
  "num_hidden_layers": 2,
25
  "pad_token_id": 0,
26
  "position_embedding_type": "absolute",
27
+ "torch_dtype": "bfloat16",
28
  "transformers_version": "4.51.1",
29
  "type_vocab_size": 2,
30
  "use_cache": true,
experiment_config.json CHANGED
@@ -1,55 +1,54 @@
1
  {
2
  "model": "google/bert_uncased_L-2_H-512_A-8",
3
- "best_optuna_trial": 61,
4
- "optuna_f1_macro": 0.9488613066118269,
5
  "hyperparams": {
6
  "model": "google/bert_uncased_L-2_H-512_A-8",
7
- "lr": 8.773852159859744e-05,
8
  "batch_size": 8,
9
- "scheduler": "cosine_with_min_lr",
10
- "min_lr_rate": 0.03975343609380975,
11
- "warmup_ratio": 0.17324061161339335,
12
- "weight_decay": 0.057521029245153905,
13
  "num_epochs": 15,
14
- "classifier_dropout": 0.1893813242387978,
15
- "label_smoothing": 0.12750721684891234,
16
  "use_fgm": true,
17
- "fgm_epsilon": 0.32560102802395946
18
  },
19
  "candidates": [
20
  {
21
- "trial": 43,
22
  "model": "google/bert_uncased_L-2_H-512_A-8",
23
- "optuna_f1": 0.9494,
24
- "test_f1_macro": 0.8782
25
  },
26
  {
27
- "trial": 11,
28
  "model": "google/bert_uncased_L-2_H-512_A-8",
29
- "optuna_f1": 0.9493,
30
- "test_f1_macro": 0.8694
31
  },
32
  {
33
- "trial": 61,
34
  "model": "google/bert_uncased_L-2_H-512_A-8",
35
- "optuna_f1": 0.9489,
36
- "test_f1_macro": 0.8813
37
  }
38
  ],
39
- "final_test_f1_macro": 0.8813,
40
- "cpu_inference_ms": 24.22,
41
  "threshold": {
42
- "optimal_threshold": 0.26,
43
- "f2_score": 0.9057,
44
- "precision": 0.6957,
45
  "recall": 0.9796
46
  },
47
  "training_tricks": {
48
  "loss_type": "ce_weighted",
49
- "label_smoothing": 0.12750721684891234,
50
  "fgm": true,
51
- "fgm_epsilon": 0.32560102802395946,
52
- "classifier_dropout": 0.1893813242387978,
53
  "stratified_batch_sampling": true,
54
  "token_masking": 0.2,
55
  "token_swapping": 0.15
 
1
  {
2
  "model": "google/bert_uncased_L-2_H-512_A-8",
3
+ "best_optuna_trial": 26,
4
+ "optuna_f1_macro": 0.93943743058629,
5
  "hyperparams": {
6
  "model": "google/bert_uncased_L-2_H-512_A-8",
7
+ "lr": 3.646478850567938e-05,
8
  "batch_size": 8,
9
+ "scheduler": "constant_with_warmup",
10
+ "warmup_ratio": 0.02677317509821073,
11
+ "weight_decay": 0.3632066548020444,
 
12
  "num_epochs": 15,
13
+ "classifier_dropout": 0.10739841773456314,
14
+ "label_smoothing": 0.01230902521971561,
15
  "use_fgm": true,
16
+ "fgm_epsilon": 0.33151445707235533
17
  },
18
  "candidates": [
19
  {
20
+ "trial": 29,
21
  "model": "google/bert_uncased_L-2_H-512_A-8",
22
+ "optuna_f1": 0.9403,
23
+ "test_f1_macro": 0.9415
24
  },
25
  {
26
+ "trial": 26,
27
  "model": "google/bert_uncased_L-2_H-512_A-8",
28
+ "optuna_f1": 0.9394,
29
+ "test_f1_macro": 0.9424
30
  },
31
  {
32
+ "trial": 28,
33
  "model": "google/bert_uncased_L-2_H-512_A-8",
34
+ "optuna_f1": 0.9392,
35
+ "test_f1_macro": 0.9175
36
  }
37
  ],
38
+ "final_test_f1_macro": 0.9424,
39
+ "cpu_inference_ms": 30.22,
40
  "threshold": {
41
+ "optimal_threshold": 0.16,
42
+ "f2_score": 0.9339,
43
+ "precision": 0.7869,
44
  "recall": 0.9796
45
  },
46
  "training_tricks": {
47
  "loss_type": "ce_weighted",
48
+ "label_smoothing": 0.01230902521971561,
49
  "fgm": true,
50
+ "fgm_epsilon": 0.33151445707235533,
51
+ "classifier_dropout": 0.10739841773456314,
52
  "stratified_batch_sampling": true,
53
  "token_masking": 0.2,
54
  "token_swapping": 0.15
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bb7b69cb0efb202fa358fda2a02dc761b097f326de23d7fbb35d3062beff1252
3
- size 44924420
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0cb3b188f2347f355a6c41c954d97367115675d7101f08ab09c5ae1e2dabea3
3
+ size 44924460
threshold.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "optimal_threshold": 0.26,
3
- "f2_score": 0.9057,
4
- "precision": 0.6957,
5
  "recall": 0.9796
6
  }
 
1
  {
2
+ "optimal_threshold": 0.16,
3
+ "f2_score": 0.9339,
4
+ "precision": 0.7869,
5
  "recall": 0.9796
6
  }
tokenizer.json CHANGED
@@ -1,7 +1,19 @@
1
  {
2
  "version": "1.0",
3
- "truncation": null,
4
- "padding": null,
 
 
 
 
 
 
 
 
 
 
 
 
5
  "added_tokens": [
6
  {
7
  "id": 0,
 
1
  {
2
  "version": "1.0",
3
+ "truncation": {
4
+ "direction": "Right",
5
+ "max_length": 256,
6
+ "strategy": "LongestFirst",
7
+ "stride": 0
8
+ },
9
+ "padding": {
10
+ "strategy": "BatchLongest",
11
+ "direction": "Right",
12
+ "pad_to_multiple_of": null,
13
+ "pad_id": 0,
14
+ "pad_type_id": 0,
15
+ "pad_token": "[PAD]"
16
+ },
17
  "added_tokens": [
18
  {
19
  "id": 0,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4dd73cbca395b028382e67a92b6b9be5de36795224bfbbccc6872b2c8e1b97d2
3
- size 5368
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59f87e93af7d83772fde74c2c844ce2493e68fcdd33fbbd7ff8c5c92436a7432
3
+ size 5432