pravin691983 commited on
Commit
e421218
·
verified ·
1 Parent(s): 9ceabe0

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - text-classification
6
+ widget:
7
+ - text: "I love AutoTrain"
8
+ datasets:
9
+ - few-shot-learning-classification-bert-sm-500/autotrain-data
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.5352076888084412
18
+
19
+ f1_macro: 0.8831874792383778
20
+
21
+ f1_micro: 0.8825
22
+
23
+ f1_weighted: 0.8831874792383778
24
+
25
+ precision_macro: 0.8856660322436862
26
+
27
+ precision_micro: 0.8825
28
+
29
+ precision_weighted: 0.885666032243686
30
+
31
+ recall_macro: 0.8825
32
+
33
+ recall_micro: 0.8825
34
+
35
+ recall_weighted: 0.8825
36
+
37
+ accuracy: 0.8825
checkpoint-400/config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
3
+ "_num_labels": 4,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "0",
15
+ "1": "1",
16
+ "2": "2",
17
+ "3": "3"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "0": 0,
23
+ "1": 1,
24
+ "2": 2,
25
+ "3": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "bert",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "position_embedding_type": "absolute",
34
+ "problem_type": "single_label_classification",
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.40.1",
37
+ "type_vocab_size": 2,
38
+ "use_cache": true,
39
+ "vocab_size": 30522
40
+ }
checkpoint-400/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d5824a3bf72608b7e7c80ca953a3bf10e43aeda0a0e1702717fa5afe981cdf2
3
+ size 437964800
checkpoint-400/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db9dfe50f16181f614502284e52de8b9962dadef43947922cc0659b6cf45b034
3
+ size 876050682
checkpoint-400/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8e9cd4d67ba129479ee5268ec98eac2f774257312bf19ef9e96feb27cfe5d40
3
+ size 14244
checkpoint-400/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3da4d5f597bd82767814dfef236ca8b63acb0fb2697d9ac551fad9a989b42463
3
+ size 1064
checkpoint-400/trainer_state.json ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5352076888084412,
3
+ "best_model_checkpoint": "few-shot-learning-classification-bert-sm-500/checkpoint-400",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 400,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.0625,
13
+ "grad_norm": 10.746420860290527,
14
+ "learning_rate": 0.00012,
15
+ "loss": 1.3515,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.125,
20
+ "grad_norm": 13.11999225616455,
21
+ "learning_rate": 0.000195,
22
+ "loss": 0.8696,
23
+ "step": 50
24
+ },
25
+ {
26
+ "epoch": 0.1875,
27
+ "grad_norm": 0.8173635005950928,
28
+ "learning_rate": 0.00018222222222222224,
29
+ "loss": 0.6066,
30
+ "step": 75
31
+ },
32
+ {
33
+ "epoch": 0.25,
34
+ "grad_norm": 18.56312370300293,
35
+ "learning_rate": 0.00016833333333333335,
36
+ "loss": 0.7135,
37
+ "step": 100
38
+ },
39
+ {
40
+ "epoch": 0.3125,
41
+ "grad_norm": 25.261268615722656,
42
+ "learning_rate": 0.00015444444444444446,
43
+ "loss": 0.8303,
44
+ "step": 125
45
+ },
46
+ {
47
+ "epoch": 0.375,
48
+ "grad_norm": 8.452961921691895,
49
+ "learning_rate": 0.00014055555555555555,
50
+ "loss": 0.623,
51
+ "step": 150
52
+ },
53
+ {
54
+ "epoch": 0.4375,
55
+ "grad_norm": 23.321823120117188,
56
+ "learning_rate": 0.00012722222222222223,
57
+ "loss": 1.0241,
58
+ "step": 175
59
+ },
60
+ {
61
+ "epoch": 0.5,
62
+ "grad_norm": 7.1832356452941895,
63
+ "learning_rate": 0.00011333333333333334,
64
+ "loss": 0.9929,
65
+ "step": 200
66
+ },
67
+ {
68
+ "epoch": 0.5625,
69
+ "grad_norm": 4.93562126159668,
70
+ "learning_rate": 9.944444444444446e-05,
71
+ "loss": 0.5292,
72
+ "step": 225
73
+ },
74
+ {
75
+ "epoch": 0.625,
76
+ "grad_norm": 1.7682493925094604,
77
+ "learning_rate": 8.555555555555556e-05,
78
+ "loss": 0.7429,
79
+ "step": 250
80
+ },
81
+ {
82
+ "epoch": 0.6875,
83
+ "grad_norm": 0.14674201607704163,
84
+ "learning_rate": 7.166666666666667e-05,
85
+ "loss": 0.643,
86
+ "step": 275
87
+ },
88
+ {
89
+ "epoch": 0.75,
90
+ "grad_norm": 306.0769958496094,
91
+ "learning_rate": 5.7777777777777776e-05,
92
+ "loss": 0.3974,
93
+ "step": 300
94
+ },
95
+ {
96
+ "epoch": 0.8125,
97
+ "grad_norm": 0.12910698354244232,
98
+ "learning_rate": 4.388888888888889e-05,
99
+ "loss": 0.3826,
100
+ "step": 325
101
+ },
102
+ {
103
+ "epoch": 0.875,
104
+ "grad_norm": 0.1545443832874298,
105
+ "learning_rate": 3e-05,
106
+ "loss": 0.8772,
107
+ "step": 350
108
+ },
109
+ {
110
+ "epoch": 0.9375,
111
+ "grad_norm": 0.5163759589195251,
112
+ "learning_rate": 1.6666666666666667e-05,
113
+ "loss": 0.6603,
114
+ "step": 375
115
+ },
116
+ {
117
+ "epoch": 1.0,
118
+ "grad_norm": 16.037109375,
119
+ "learning_rate": 2.777777777777778e-06,
120
+ "loss": 0.3469,
121
+ "step": 400
122
+ },
123
+ {
124
+ "epoch": 1.0,
125
+ "eval_accuracy": 0.8825,
126
+ "eval_f1_macro": 0.8831874792383778,
127
+ "eval_f1_micro": 0.8825,
128
+ "eval_f1_weighted": 0.8831874792383778,
129
+ "eval_loss": 0.5352076888084412,
130
+ "eval_precision_macro": 0.8856660322436862,
131
+ "eval_precision_micro": 0.8825,
132
+ "eval_precision_weighted": 0.885666032243686,
133
+ "eval_recall_macro": 0.8825,
134
+ "eval_recall_micro": 0.8825,
135
+ "eval_recall_weighted": 0.8825,
136
+ "eval_runtime": 3.0412,
137
+ "eval_samples_per_second": 131.529,
138
+ "eval_steps_per_second": 65.765,
139
+ "step": 400
140
+ }
141
+ ],
142
+ "logging_steps": 25,
143
+ "max_steps": 400,
144
+ "num_input_tokens_seen": 0,
145
+ "num_train_epochs": 1,
146
+ "save_steps": 500,
147
+ "total_flos": 420985248153600.0,
148
+ "train_batch_size": 1,
149
+ "trial_name": null,
150
+ "trial_params": null
151
+ }
checkpoint-400/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f26afbf2fe7b443868647b47d0159bc5a8ba9b57b7b86a63261c895eb1c0b943
3
+ size 5048
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
3
+ "_num_labels": 4,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "0",
15
+ "1": "1",
16
+ "2": "2",
17
+ "3": "3"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "0": 0,
23
+ "1": 1,
24
+ "2": 2,
25
+ "3": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "bert",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 0,
33
+ "position_embedding_type": "absolute",
34
+ "problem_type": "single_label_classification",
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.40.1",
37
+ "type_vocab_size": 2,
38
+ "use_cache": true,
39
+ "vocab_size": 30522
40
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d5824a3bf72608b7e7c80ca953a3bf10e43aeda0a0e1702717fa5afe981cdf2
3
+ size 437964800
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f26afbf2fe7b443868647b47d0159bc5a8ba9b57b7b86a63261c895eb1c0b943
3
+ size 5048
training_params.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "few-shot-learning-classification-bert-sm-500/autotrain-data",
3
+ "model": "google-bert/bert-base-uncased",
4
+ "lr": 0.0002,
5
+ "epochs": 1,
6
+ "max_seq_length": 512,
7
+ "batch_size": 1,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 4,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.01,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "text_column": "autotrain_text",
18
+ "target_column": "autotrain_label",
19
+ "logging_steps": -1,
20
+ "project_name": "few-shot-learning-classification-bert-sm-500",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": "fp16",
23
+ "save_total_limit": 1,
24
+ "push_to_hub": true,
25
+ "evaluation_strategy": "epoch",
26
+ "username": "pravin691983",
27
+ "log": "none"
28
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff