maximuspowers commited on
Commit
2a9131c
·
verified ·
1 Parent(s): b7f4ba2

End of training

Browse files
README.md CHANGED
@@ -16,15 +16,15 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  This model is a fine-tuned version of [maximuspowers/bert-philosophy-adapted](https://huggingface.co/maximuspowers/bert-philosophy-adapted) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
- - Loss: 0.4928
20
- - Exact Match Accuracy: 0.4069
21
- - Macro Precision: 0.5825
22
- - Macro Recall: 0.4180
23
- - Macro F1: 0.4727
24
- - Micro Precision: 0.7718
25
- - Micro Recall: 0.5721
26
- - Micro F1: 0.6571
27
- - Hamming Loss: 0.0487
28
 
29
  ## Model description
30
 
 
16
 
17
  This model is a fine-tuned version of [maximuspowers/bert-philosophy-adapted](https://huggingface.co/maximuspowers/bert-philosophy-adapted) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
+ - Loss: 0.5930
20
+ - Exact Match Accuracy: 0.4138
21
+ - Macro Precision: 0.3910
22
+ - Macro Recall: 0.2935
23
+ - Macro F1: 0.3205
24
+ - Micro Precision: 0.8062
25
+ - Micro Recall: 0.5149
26
+ - Micro F1: 0.6284
27
+ - Hamming Loss: 0.0499
28
 
29
  ## Model description
30
 
all_results.json CHANGED
@@ -1,5 +1,17 @@
1
  {
2
  "epoch": 34.248275862068965,
 
 
 
 
 
 
 
 
 
 
 
 
3
  "total_flos": 0.0,
4
  "train_loss": 0.657050135421753,
5
  "train_runtime": 659.4996,
 
1
  {
2
  "epoch": 34.248275862068965,
3
+ "eval_exact_match_accuracy": 0.41379310344827586,
4
+ "eval_hamming_loss": 0.04989858012170385,
5
+ "eval_loss": 0.5930218696594238,
6
+ "eval_macro_f1": 0.32054514113337645,
7
+ "eval_macro_precision": 0.3909600203717851,
8
+ "eval_macro_recall": 0.2934883988593418,
9
+ "eval_micro_f1": 0.6283987915407855,
10
+ "eval_micro_precision": 0.8062015503875969,
11
+ "eval_micro_recall": 0.5148514851485149,
12
+ "eval_runtime": 0.7302,
13
+ "eval_samples_per_second": 198.571,
14
+ "eval_steps_per_second": 26.02,
15
  "total_flos": 0.0,
16
  "train_loss": 0.657050135421753,
17
  "train_runtime": 659.4996,
config.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForMaskedLM"
4
+ ],
5
+ "model_type": "bert",
6
+ "num_labels": 17,
7
+ "projection_dim": 256,
8
+ "hidden_size": 768,
9
+ "base_model": "bert-base-uncased",
10
+ "return_dict": true,
11
+ "output_hidden_states": false,
12
+ "output_attentions": false,
13
+ "torchscript": false,
14
+ "torch_dtype": "float32",
15
+ "use_bfloat16": false,
16
+ "tf_legacy_loss": false,
17
+ "pruned_heads": {},
18
+ "tie_word_embeddings": true,
19
+ "chunk_size_feed_forward": 0,
20
+ "is_encoder_decoder": false,
21
+ "is_decoder": false,
22
+ "cross_attention_hidden_size": null,
23
+ "add_cross_attention": false,
24
+ "tie_encoder_decoder": false,
25
+ "max_length": 20,
26
+ "min_length": 0,
27
+ "do_sample": false,
28
+ "early_stopping": false,
29
+ "num_beams": 1,
30
+ "num_beam_groups": 1,
31
+ "diversity_penalty": 0.0,
32
+ "temperature": 1.0,
33
+ "top_k": 50,
34
+ "top_p": 1.0,
35
+ "typical_p": 1.0,
36
+ "repetition_penalty": 1.0,
37
+ "length_penalty": 1.0,
38
+ "no_repeat_ngram_size": 0,
39
+ "encoder_no_repeat_ngram_size": 0,
40
+ "bad_words_ids": null,
41
+ "num_return_sequences": 1,
42
+ "output_scores": false,
43
+ "return_dict_in_generate": false,
44
+ "forced_bos_token_id": null,
45
+ "forced_eos_token_id": null,
46
+ "remove_invalid_values": false,
47
+ "exponential_decay_length_penalty": null,
48
+ "suppress_tokens": null,
49
+ "begin_suppress_tokens": null,
50
+ "finetuning_task": null,
51
+ "id2label": {
52
+ "0": "LABEL_0",
53
+ "1": "LABEL_1",
54
+ "2": "LABEL_2",
55
+ "3": "LABEL_3",
56
+ "4": "LABEL_4",
57
+ "5": "LABEL_5",
58
+ "6": "LABEL_6",
59
+ "7": "LABEL_7",
60
+ "8": "LABEL_8",
61
+ "9": "LABEL_9",
62
+ "10": "LABEL_10",
63
+ "11": "LABEL_11",
64
+ "12": "LABEL_12",
65
+ "13": "LABEL_13",
66
+ "14": "LABEL_14",
67
+ "15": "LABEL_15",
68
+ "16": "LABEL_16"
69
+ },
70
+ "label2id": {
71
+ "LABEL_0": 0,
72
+ "LABEL_1": 1,
73
+ "LABEL_2": 2,
74
+ "LABEL_3": 3,
75
+ "LABEL_4": 4,
76
+ "LABEL_5": 5,
77
+ "LABEL_6": 6,
78
+ "LABEL_7": 7,
79
+ "LABEL_8": 8,
80
+ "LABEL_9": 9,
81
+ "LABEL_10": 10,
82
+ "LABEL_11": 11,
83
+ "LABEL_12": 12,
84
+ "LABEL_13": 13,
85
+ "LABEL_14": 14,
86
+ "LABEL_15": 15,
87
+ "LABEL_16": 16
88
+ },
89
+ "tokenizer_class": null,
90
+ "prefix": null,
91
+ "bos_token_id": null,
92
+ "pad_token_id": 0,
93
+ "eos_token_id": null,
94
+ "sep_token_id": null,
95
+ "decoder_start_token_id": null,
96
+ "task_specific_params": null,
97
+ "problem_type": null,
98
+ "_name_or_path": "maximuspowers/bert-philosophy-adapted",
99
+ "transformers_version": "4.52.4",
100
+ "gradient_checkpointing": false,
101
+ "vocab_size": 30522,
102
+ "num_hidden_layers": 12,
103
+ "num_attention_heads": 12,
104
+ "hidden_act": "gelu",
105
+ "intermediate_size": 3072,
106
+ "hidden_dropout_prob": 0.1,
107
+ "attention_probs_dropout_prob": 0.1,
108
+ "max_position_embeddings": 512,
109
+ "type_vocab_size": 2,
110
+ "initializer_range": 0.02,
111
+ "layer_norm_eps": 1e-12,
112
+ "position_embedding_type": "absolute",
113
+ "use_cache": true,
114
+ "classifier_dropout": null
115
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1207fa3962d04f8e57c1fdaeed866e81adabce8138756fe502348b0182ec17fa
3
+ size 441215422
runs/Jun16_17-49-10_509eee86a659/events.out.tfevents.1750096991.509eee86a659.15800.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:049f3ce6c6101fb2cf71d68702811307b8922a02f57bbed378d203c4f4207b7b
3
+ size 19965
test_results.json CHANGED
@@ -1,15 +1,15 @@
1
  {
2
- "epoch": 24.662068965517243,
3
- "eval_exact_match_accuracy": 0.3931034482758621,
4
- "eval_hamming_loss": 0.05354969574036511,
5
- "eval_loss": 0.565125048160553,
6
- "eval_macro_f1": 0.24889861157994672,
7
- "eval_macro_precision": 0.3151783530460001,
8
- "eval_macro_recall": 0.2381291916416587,
9
- "eval_micro_f1": 0.5900621118012422,
10
- "eval_micro_precision": 0.7916666666666666,
11
- "eval_micro_recall": 0.47029702970297027,
12
- "eval_runtime": 0.7539,
13
- "eval_samples_per_second": 192.34,
14
- "eval_steps_per_second": 25.203
15
  }
 
1
  {
2
+ "epoch": 34.248275862068965,
3
+ "eval_exact_match_accuracy": 0.41379310344827586,
4
+ "eval_hamming_loss": 0.04989858012170385,
5
+ "eval_loss": 0.5930218696594238,
6
+ "eval_macro_f1": 0.32054514113337645,
7
+ "eval_macro_precision": 0.3909600203717851,
8
+ "eval_macro_recall": 0.2934883988593418,
9
+ "eval_micro_f1": 0.6283987915407855,
10
+ "eval_micro_precision": 0.8062015503875969,
11
+ "eval_micro_recall": 0.5148514851485149,
12
+ "eval_runtime": 0.7302,
13
+ "eval_samples_per_second": 198.571,
14
+ "eval_steps_per_second": 26.02
15
  }
training_args.json ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_dir": "./bert-philosophy-classifier",
3
+ "overwrite_output_dir": true,
4
+ "do_train": false,
5
+ "do_eval": true,
6
+ "do_predict": false,
7
+ "eval_strategy": "steps",
8
+ "prediction_loss_only": false,
9
+ "per_device_train_batch_size": 8,
10
+ "per_device_eval_batch_size": 8,
11
+ "per_gpu_train_batch_size": null,
12
+ "per_gpu_eval_batch_size": null,
13
+ "gradient_accumulation_steps": 2,
14
+ "eval_accumulation_steps": null,
15
+ "eval_delay": 0,
16
+ "torch_empty_cache_steps": null,
17
+ "learning_rate": 2e-05,
18
+ "weight_decay": 0.01,
19
+ "adam_beta1": 0.9,
20
+ "adam_beta2": 0.999,
21
+ "adam_epsilon": 1e-08,
22
+ "max_grad_norm": 1.0,
23
+ "num_train_epochs": 500,
24
+ "max_steps": -1,
25
+ "lr_scheduler_type": "linear",
26
+ "lr_scheduler_kwargs": {},
27
+ "warmup_ratio": 0.0,
28
+ "warmup_steps": 100,
29
+ "log_level": "passive",
30
+ "log_level_replica": "warning",
31
+ "log_on_each_node": true,
32
+ "logging_dir": "./bert-philosophy-classifier/runs/Jun16_17-49-10_509eee86a659",
33
+ "logging_strategy": "steps",
34
+ "logging_first_step": false,
35
+ "logging_steps": 50,
36
+ "logging_nan_inf_filter": true,
37
+ "save_strategy": "steps",
38
+ "save_steps": 2000,
39
+ "save_total_limit": 3,
40
+ "save_safetensors": true,
41
+ "save_on_each_node": false,
42
+ "save_only_model": false,
43
+ "restore_callback_states_from_checkpoint": false,
44
+ "no_cuda": false,
45
+ "use_cpu": false,
46
+ "use_mps_device": false,
47
+ "seed": 42,
48
+ "data_seed": null,
49
+ "jit_mode_eval": false,
50
+ "use_ipex": false,
51
+ "bf16": false,
52
+ "fp16": true,
53
+ "fp16_opt_level": "O1",
54
+ "half_precision_backend": "auto",
55
+ "bf16_full_eval": false,
56
+ "fp16_full_eval": false,
57
+ "tf32": null,
58
+ "local_rank": 0,
59
+ "ddp_backend": null,
60
+ "tpu_num_cores": null,
61
+ "tpu_metrics_debug": false,
62
+ "debug": [],
63
+ "dataloader_drop_last": false,
64
+ "eval_steps": 100,
65
+ "dataloader_num_workers": 0,
66
+ "dataloader_prefetch_factor": null,
67
+ "past_index": -1,
68
+ "run_name": "./bert-philosophy-classifier",
69
+ "disable_tqdm": false,
70
+ "remove_unused_columns": false,
71
+ "label_names": null,
72
+ "load_best_model_at_end": true,
73
+ "metric_for_best_model": "eval_micro_f1",
74
+ "greater_is_better": true,
75
+ "ignore_data_skip": false,
76
+ "fsdp": [],
77
+ "fsdp_min_num_params": 0,
78
+ "fsdp_config": {
79
+ "min_num_params": 0,
80
+ "xla": false,
81
+ "xla_fsdp_v2": false,
82
+ "xla_fsdp_grad_ckpt": false
83
+ },
84
+ "fsdp_transformer_layer_cls_to_wrap": null,
85
+ "accelerator_config": {
86
+ "split_batches": false,
87
+ "dispatch_batches": null,
88
+ "even_batches": true,
89
+ "use_seedable_sampler": true,
90
+ "non_blocking": false,
91
+ "gradient_accumulation_kwargs": null
92
+ },
93
+ "deepspeed": null,
94
+ "label_smoothing_factor": 0.0,
95
+ "optim": "adamw_torch",
96
+ "optim_args": null,
97
+ "adafactor": false,
98
+ "group_by_length": false,
99
+ "length_column_name": "length",
100
+ "report_to": [
101
+ "tensorboard"
102
+ ],
103
+ "ddp_find_unused_parameters": null,
104
+ "ddp_bucket_cap_mb": null,
105
+ "ddp_broadcast_buffers": null,
106
+ "dataloader_pin_memory": false,
107
+ "dataloader_persistent_workers": false,
108
+ "skip_memory_metrics": true,
109
+ "use_legacy_prediction_loop": false,
110
+ "push_to_hub": true,
111
+ "resume_from_checkpoint": null,
112
+ "hub_model_id": "maximuspowers/bert-philosophy-classifier",
113
+ "hub_strategy": "every_save",
114
+ "hub_token": "<HUB_TOKEN>",
115
+ "hub_private_repo": null,
116
+ "hub_always_push": false,
117
+ "gradient_checkpointing": false,
118
+ "gradient_checkpointing_kwargs": null,
119
+ "include_inputs_for_metrics": false,
120
+ "include_for_metrics": [],
121
+ "eval_do_concat_batches": true,
122
+ "fp16_backend": "auto",
123
+ "push_to_hub_model_id": null,
124
+ "push_to_hub_organization": null,
125
+ "push_to_hub_token": "<PUSH_TO_HUB_TOKEN>",
126
+ "mp_parameters": "",
127
+ "auto_find_batch_size": false,
128
+ "full_determinism": false,
129
+ "torchdynamo": null,
130
+ "ray_scope": "last",
131
+ "ddp_timeout": 1800,
132
+ "torch_compile": false,
133
+ "torch_compile_backend": null,
134
+ "torch_compile_mode": null,
135
+ "include_tokens_per_second": false,
136
+ "include_num_input_tokens_seen": false,
137
+ "neftune_noise_alpha": null,
138
+ "optim_target_modules": null,
139
+ "batch_eval_metrics": false,
140
+ "eval_on_start": false,
141
+ "use_liger_kernel": false,
142
+ "eval_use_gather_object": false,
143
+ "average_tokens_across_devices": false
144
+ }