pravin691983 commited on
Commit
b3aac41
1 Parent(s): 935332b

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-5K-32/autotrain-data
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.25288185477256775
18
+
19
+ f1_macro: 0.9137712253628689
20
+
21
+ f1_micro: 0.914
22
+
23
+ f1_weighted: 0.9137712253628689
24
+
25
+ precision_macro: 0.9140401620479054
26
+
27
+ precision_micro: 0.914
28
+
29
+ precision_weighted: 0.9140401620479053
30
+
31
+ recall_macro: 0.9140000000000001
32
+
33
+ recall_micro: 0.914
34
+
35
+ recall_weighted: 0.914
36
+
37
+ accuracy: 0.914
checkpoint-250/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-250/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ac550315ba901ba111b2561c819cbf1636550eab29c6695b585f0e5b0e5689b
3
+ size 437964800
checkpoint-250/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e85428d82a27a5beefa10bb1b5afa8e5f6c302704cfc33565c8e3ca16806010
3
+ size 876050682
checkpoint-250/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ac869828c5024d4d4a82b7cf859980dc582788f9ad94e39e9adcd052ae285a7
3
+ size 14244
checkpoint-250/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2510bf6ad7c05936779f61e0fa5dbd1a56f64d753f53af2641533f153a76c256
3
+ size 1064
checkpoint-250/trainer_state.json ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.25288185477256775,
3
+ "best_model_checkpoint": "few-shot-learning-classification-bert-sm-5K-32/checkpoint-250",
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 250,
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.2,
13
+ "grad_norm": 4.231257915496826,
14
+ "learning_rate": 2e-05,
15
+ "loss": 1.2334,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.4,
20
+ "grad_norm": 2.2730774879455566,
21
+ "learning_rate": 1.7777777777777777e-05,
22
+ "loss": 0.6694,
23
+ "step": 50
24
+ },
25
+ {
26
+ "epoch": 0.6,
27
+ "grad_norm": 2.707385778427124,
28
+ "learning_rate": 1.555555555555556e-05,
29
+ "loss": 0.3834,
30
+ "step": 75
31
+ },
32
+ {
33
+ "epoch": 0.8,
34
+ "grad_norm": 2.1450345516204834,
35
+ "learning_rate": 1.3333333333333333e-05,
36
+ "loss": 0.3034,
37
+ "step": 100
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "grad_norm": 3.1361820697784424,
42
+ "learning_rate": 1.1111111111111113e-05,
43
+ "loss": 0.2999,
44
+ "step": 125
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.904,
49
+ "eval_f1_macro": 0.9036653728644836,
50
+ "eval_f1_micro": 0.904,
51
+ "eval_f1_weighted": 0.9036653728644836,
52
+ "eval_loss": 0.2839123606681824,
53
+ "eval_precision_macro": 0.9037858383571149,
54
+ "eval_precision_micro": 0.904,
55
+ "eval_precision_weighted": 0.9037858383571149,
56
+ "eval_recall_macro": 0.904,
57
+ "eval_recall_micro": 0.904,
58
+ "eval_recall_weighted": 0.904,
59
+ "eval_runtime": 9.7499,
60
+ "eval_samples_per_second": 410.262,
61
+ "eval_steps_per_second": 6.462,
62
+ "step": 125
63
+ },
64
+ {
65
+ "epoch": 1.2,
66
+ "grad_norm": 3.473186731338501,
67
+ "learning_rate": 8.888888888888888e-06,
68
+ "loss": 0.2484,
69
+ "step": 150
70
+ },
71
+ {
72
+ "epoch": 1.4,
73
+ "grad_norm": 3.498867988586426,
74
+ "learning_rate": 6.666666666666667e-06,
75
+ "loss": 0.2535,
76
+ "step": 175
77
+ },
78
+ {
79
+ "epoch": 1.6,
80
+ "grad_norm": 3.2598490715026855,
81
+ "learning_rate": 4.444444444444444e-06,
82
+ "loss": 0.2242,
83
+ "step": 200
84
+ },
85
+ {
86
+ "epoch": 1.8,
87
+ "grad_norm": 2.939223289489746,
88
+ "learning_rate": 2.222222222222222e-06,
89
+ "loss": 0.2224,
90
+ "step": 225
91
+ },
92
+ {
93
+ "epoch": 2.0,
94
+ "grad_norm": 2.8699662685394287,
95
+ "learning_rate": 0.0,
96
+ "loss": 0.2132,
97
+ "step": 250
98
+ },
99
+ {
100
+ "epoch": 2.0,
101
+ "eval_accuracy": 0.914,
102
+ "eval_f1_macro": 0.9137712253628689,
103
+ "eval_f1_micro": 0.914,
104
+ "eval_f1_weighted": 0.9137712253628689,
105
+ "eval_loss": 0.25288185477256775,
106
+ "eval_precision_macro": 0.9140401620479054,
107
+ "eval_precision_micro": 0.914,
108
+ "eval_precision_weighted": 0.9140401620479053,
109
+ "eval_recall_macro": 0.9140000000000001,
110
+ "eval_recall_micro": 0.914,
111
+ "eval_recall_weighted": 0.914,
112
+ "eval_runtime": 9.7809,
113
+ "eval_samples_per_second": 408.961,
114
+ "eval_steps_per_second": 6.441,
115
+ "step": 250
116
+ }
117
+ ],
118
+ "logging_steps": 25,
119
+ "max_steps": 250,
120
+ "num_input_tokens_seen": 0,
121
+ "num_train_epochs": 2,
122
+ "save_steps": 500,
123
+ "total_flos": 8419704963072000.0,
124
+ "train_batch_size": 32,
125
+ "trial_name": null,
126
+ "trial_params": null
127
+ }
checkpoint-250/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8faa3f1dfbabb7fab8de33db0059a4da000d844d786c33151bfd08b4cabd59a
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:4ac550315ba901ba111b2561c819cbf1636550eab29c6695b585f0e5b0e5689b
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:c8faa3f1dfbabb7fab8de33db0059a4da000d844d786c33151bfd08b4cabd59a
3
+ size 5048
training_params.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "few-shot-learning-classification-bert-sm-5K-32/autotrain-data",
3
+ "model": "google-bert/bert-base-uncased",
4
+ "lr": 2e-05,
5
+ "epochs": 2,
6
+ "max_seq_length": 512,
7
+ "batch_size": 32,
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-5K-32",
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