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 +3 -3
- experiment_config.json +26 -27
- model.safetensors +2 -2
- threshold.json +3 -3
- tokenizer.json +14 -2
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
| 3 |
"BertForSequenceClassification"
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
-
"classifier_dropout": 0.
|
| 7 |
"hidden_act": "gelu",
|
| 8 |
-
"hidden_dropout_prob": 0.
|
| 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": "
|
| 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":
|
| 4 |
-
"optuna_f1_macro": 0.
|
| 5 |
"hyperparams": {
|
| 6 |
"model": "google/bert_uncased_L-2_H-512_A-8",
|
| 7 |
-
"lr":
|
| 8 |
"batch_size": 8,
|
| 9 |
-
"scheduler": "
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
"weight_decay": 0.057521029245153905,
|
| 13 |
"num_epochs": 15,
|
| 14 |
-
"classifier_dropout": 0.
|
| 15 |
-
"label_smoothing": 0.
|
| 16 |
"use_fgm": true,
|
| 17 |
-
"fgm_epsilon": 0.
|
| 18 |
},
|
| 19 |
"candidates": [
|
| 20 |
{
|
| 21 |
-
"trial":
|
| 22 |
"model": "google/bert_uncased_L-2_H-512_A-8",
|
| 23 |
-
"optuna_f1": 0.
|
| 24 |
-
"test_f1_macro": 0.
|
| 25 |
},
|
| 26 |
{
|
| 27 |
-
"trial":
|
| 28 |
"model": "google/bert_uncased_L-2_H-512_A-8",
|
| 29 |
-
"optuna_f1": 0.
|
| 30 |
-
"test_f1_macro": 0.
|
| 31 |
},
|
| 32 |
{
|
| 33 |
-
"trial":
|
| 34 |
"model": "google/bert_uncased_L-2_H-512_A-8",
|
| 35 |
-
"optuna_f1": 0.
|
| 36 |
-
"test_f1_macro": 0.
|
| 37 |
}
|
| 38 |
],
|
| 39 |
-
"final_test_f1_macro": 0.
|
| 40 |
-
"cpu_inference_ms":
|
| 41 |
"threshold": {
|
| 42 |
-
"optimal_threshold": 0.
|
| 43 |
-
"f2_score": 0.
|
| 44 |
-
"precision": 0.
|
| 45 |
"recall": 0.9796
|
| 46 |
},
|
| 47 |
"training_tricks": {
|
| 48 |
"loss_type": "ce_weighted",
|
| 49 |
-
"label_smoothing": 0.
|
| 50 |
"fgm": true,
|
| 51 |
-
"fgm_epsilon": 0.
|
| 52 |
-
"classifier_dropout": 0.
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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.
|
| 3 |
-
"f2_score": 0.
|
| 4 |
-
"precision": 0.
|
| 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":
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59f87e93af7d83772fde74c2c844ce2493e68fcdd33fbbd7ff8c5c92436a7432
|
| 3 |
+
size 5432
|