Gwatk commited on
Commit
a541ac1
1 Parent(s): 5954df2

End of training

Browse files
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - multilingual
4
+ license: apache-2.0
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: canine_c
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # canine_c
18
+
19
+ This model is a fine-tuned version of [google/canine-c](https://huggingface.co/google/canine-c) on the Gwatk/10k_test3_xnli_subset dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.0990
22
+ - Accuracy: 0.3247
23
+ - F1 Weighted: 0.1591
24
+ - Precision Weighted: 0.1054
25
+ - Recall Weighted: 0.3247
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 5e-05
45
+ - train_batch_size: 4
46
+ - eval_batch_size: 4
47
+ - seed: 42
48
+ - gradient_accumulation_steps: 8
49
+ - total_train_batch_size: 32
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 3
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Weighted | Precision Weighted | Recall Weighted |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-----------:|:------------------:|:---------------:|
59
+ | 1.1017 | 1.0 | 312 | 1.1029 | 0.3247 | 0.1591 | 0.1054 | 0.3247 |
60
+ | 1.0999 | 2.0 | 625 | 1.0978 | 0.3533 | 0.1845 | 0.1248 | 0.3533 |
61
+ | 1.099 | 3.0 | 936 | 1.0990 | 0.3247 | 0.1591 | 0.1054 | 0.3247 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.27.2
67
+ - Pytorch 2.0.0+cu117
68
+ - Datasets 2.10.1
69
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/canine-c",
3
+ "architectures": [
4
+ "CanineForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 57344,
8
+ "downsampling_rate": 4,
9
+ "eos_token_id": 57345,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "LABEL_0": 0,
22
+ "LABEL_1": 1,
23
+ "LABEL_2": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "local_transformer_stride": 128,
27
+ "max_position_embeddings": 16384,
28
+ "model_type": "canine",
29
+ "num_attention_heads": 12,
30
+ "num_hash_buckets": 16384,
31
+ "num_hash_functions": 8,
32
+ "num_hidden_layers": 12,
33
+ "pad_token_id": 0,
34
+ "problem_type": "single_label_classification",
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.27.2",
37
+ "type_vocab_size": 16,
38
+ "upsampling_kernel_size": 4,
39
+ "use_cache": true
40
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80dc483a70efe3912f6fdf77393ad05a11d0e5538e9efd2c0b219b42566f6b99
3
+ size 528557809
runs/Mar25_01-36-57_evening/1679704631.0029478/events.out.tfevents.1679704631.evening.174289.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:251ebe26f5c7180f1caa37653b00a0b4a610faaa9d94312edaa845685849a793
3
+ size 5915
runs/Mar25_01-36-57_evening/events.out.tfevents.1679704631.evening.174289.4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26eda968e989e2803abd1b97f9664d9f0a84fb8d01af580dc2f3f80caa167d56
3
+ size 7715
special_tokens_map.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "\u0000",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ }
44
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "cls_token": {
12
+ "__type": "AddedToken",
13
+ "content": "",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "eos_token": {
20
+ "__type": "AddedToken",
21
+ "content": "",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "mask_token": {
28
+ "__type": "AddedToken",
29
+ "content": "",
30
+ "lstrip": true,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ },
35
+ "model_max_length": 2048,
36
+ "pad_token": {
37
+ "__type": "AddedToken",
38
+ "content": "\u0000",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "sep_token": {
45
+ "__type": "AddedToken",
46
+ "content": "",
47
+ "lstrip": false,
48
+ "normalized": true,
49
+ "rstrip": false,
50
+ "single_word": false
51
+ },
52
+ "special_tokens_map_file": "/home/gwatk/.cache/huggingface/hub/models--google--canine-c/snapshots/59de14c6de8e676db78de601ac4cb470b56d4d25/special_tokens_map.json",
53
+ "tokenizer_class": "CanineTokenizer"
54
+ }
trainer_state.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.35333333333333333,
3
+ "best_model_checkpoint": "nli_results/10k_test3/models/canine_c/checkpoint-625",
4
+ "epoch": 2.9952,
5
+ "global_step": 936,
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.0,
12
+ "learning_rate": 4.99465811965812e-05,
13
+ "loss": 1.3267,
14
+ "step": 1
15
+ },
16
+ {
17
+ "epoch": 0.32,
18
+ "learning_rate": 4.465811965811966e-05,
19
+ "loss": 1.1043,
20
+ "step": 100
21
+ },
22
+ {
23
+ "epoch": 0.64,
24
+ "learning_rate": 3.931623931623932e-05,
25
+ "loss": 1.102,
26
+ "step": 200
27
+ },
28
+ {
29
+ "epoch": 0.96,
30
+ "learning_rate": 3.397435897435898e-05,
31
+ "loss": 1.1017,
32
+ "step": 300
33
+ },
34
+ {
35
+ "epoch": 1.0,
36
+ "eval_accuracy": 0.32466666666666666,
37
+ "eval_f1_weighted": 0.15914712296594533,
38
+ "eval_loss": 1.1029257774353027,
39
+ "eval_precision_weighted": 0.10540844444444444,
40
+ "eval_recall_weighted": 0.32466666666666666,
41
+ "eval_runtime": 5.4193,
42
+ "eval_samples_per_second": 276.79,
43
+ "eval_steps_per_second": 69.197,
44
+ "step": 312
45
+ },
46
+ {
47
+ "epoch": 1.28,
48
+ "learning_rate": 2.863247863247863e-05,
49
+ "loss": 1.0994,
50
+ "step": 400
51
+ },
52
+ {
53
+ "epoch": 1.6,
54
+ "learning_rate": 2.3290598290598293e-05,
55
+ "loss": 1.1003,
56
+ "step": 500
57
+ },
58
+ {
59
+ "epoch": 1.92,
60
+ "learning_rate": 1.794871794871795e-05,
61
+ "loss": 1.0999,
62
+ "step": 600
63
+ },
64
+ {
65
+ "epoch": 2.0,
66
+ "eval_accuracy": 0.35333333333333333,
67
+ "eval_f1_weighted": 0.1844991789819376,
68
+ "eval_loss": 1.0978268384933472,
69
+ "eval_precision_weighted": 0.12484444444444445,
70
+ "eval_recall_weighted": 0.35333333333333333,
71
+ "eval_runtime": 6.1353,
72
+ "eval_samples_per_second": 244.485,
73
+ "eval_steps_per_second": 61.121,
74
+ "step": 625
75
+ },
76
+ {
77
+ "epoch": 2.24,
78
+ "learning_rate": 1.2606837606837608e-05,
79
+ "loss": 1.0999,
80
+ "step": 700
81
+ },
82
+ {
83
+ "epoch": 2.56,
84
+ "learning_rate": 7.264957264957266e-06,
85
+ "loss": 1.0995,
86
+ "step": 800
87
+ },
88
+ {
89
+ "epoch": 2.88,
90
+ "learning_rate": 1.9230769230769234e-06,
91
+ "loss": 1.099,
92
+ "step": 900
93
+ },
94
+ {
95
+ "epoch": 3.0,
96
+ "eval_accuracy": 0.32466666666666666,
97
+ "eval_f1_weighted": 0.15914712296594533,
98
+ "eval_loss": 1.0989837646484375,
99
+ "eval_precision_weighted": 0.10540844444444444,
100
+ "eval_recall_weighted": 0.32466666666666666,
101
+ "eval_runtime": 5.3918,
102
+ "eval_samples_per_second": 278.202,
103
+ "eval_steps_per_second": 69.55,
104
+ "step": 936
105
+ },
106
+ {
107
+ "epoch": 3.0,
108
+ "step": 936,
109
+ "total_flos": 5792280106446720.0,
110
+ "train_loss": 1.100847668117947,
111
+ "train_runtime": 456.1632,
112
+ "train_samples_per_second": 65.766,
113
+ "train_steps_per_second": 2.052
114
+ }
115
+ ],
116
+ "max_steps": 936,
117
+ "num_train_epochs": 3,
118
+ "total_flos": 5792280106446720.0,
119
+ "trial_name": null,
120
+ "trial_params": null
121
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69152455c19e5361f5b9784369ecc2c8e4bd0cbcf337477a85c43c2705296563
3
+ size 3643