pravin691983 commited on
Commit
993f83a
1 Parent(s): 176e9b2

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
+ - fewshotlearning-text-classification-bert-sm/autotrain-data
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.6685735583305359
18
+
19
+ f1_macro: 0.8364860941080454
20
+
21
+ f1_micro: 0.8375
22
+
23
+ f1_weighted: 0.8364860941080453
24
+
25
+ precision_macro: 0.8393652915711738
26
+
27
+ precision_micro: 0.8375
28
+
29
+ precision_weighted: 0.8393652915711739
30
+
31
+ recall_macro: 0.8375
32
+
33
+ recall_micro: 0.8375
34
+
35
+ recall_weighted: 0.8375
36
+
37
+ accuracy: 0.8375
checkpoint-80/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-80/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b9e5f7981fe0600bb883464aab6535c7d5105404505bbc8abcea7b3fe7cafd4
3
+ size 437964800
checkpoint-80/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed390a00ce31d13cecc2937782cc0fbb81a22436344730d81515bd50eee69224
3
+ size 876050682
checkpoint-80/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3f2727cd53009085422f7629014b2b1a60fb0a9a84270b29bf3ab246e78b008
3
+ size 14244
checkpoint-80/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00fec0e6b72b9853d4c3f9ba6a59185c8a6f09cf774763b098645bb9a99d9442
3
+ size 1064
checkpoint-80/trainer_state.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6685735583305359,
3
+ "best_model_checkpoint": "fewshotlearning-text-classification-bert-sm/checkpoint-80",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 80,
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": 16.075746536254883,
14
+ "learning_rate": 0.00018055555555555557,
15
+ "loss": 1.4192,
16
+ "step": 16
17
+ },
18
+ {
19
+ "epoch": 0.4,
20
+ "grad_norm": 6.529771327972412,
21
+ "learning_rate": 0.0001388888888888889,
22
+ "loss": 1.2799,
23
+ "step": 32
24
+ },
25
+ {
26
+ "epoch": 0.6,
27
+ "grad_norm": 27.337310791015625,
28
+ "learning_rate": 9.444444444444444e-05,
29
+ "loss": 0.9263,
30
+ "step": 48
31
+ },
32
+ {
33
+ "epoch": 0.8,
34
+ "grad_norm": 0.956445574760437,
35
+ "learning_rate": 5.2777777777777784e-05,
36
+ "loss": 0.4822,
37
+ "step": 64
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "grad_norm": 8.860248565673828,
42
+ "learning_rate": 8.333333333333334e-06,
43
+ "loss": 0.6073,
44
+ "step": 80
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.8375,
49
+ "eval_f1_macro": 0.8364860941080454,
50
+ "eval_f1_micro": 0.8375,
51
+ "eval_f1_weighted": 0.8364860941080453,
52
+ "eval_loss": 0.6685735583305359,
53
+ "eval_precision_macro": 0.8393652915711738,
54
+ "eval_precision_micro": 0.8375,
55
+ "eval_precision_weighted": 0.8393652915711739,
56
+ "eval_recall_macro": 0.8375,
57
+ "eval_recall_micro": 0.8375,
58
+ "eval_recall_weighted": 0.8375,
59
+ "eval_runtime": 1.1304,
60
+ "eval_samples_per_second": 70.773,
61
+ "eval_steps_per_second": 35.387,
62
+ "step": 80
63
+ }
64
+ ],
65
+ "logging_steps": 16,
66
+ "max_steps": 80,
67
+ "num_input_tokens_seen": 0,
68
+ "num_train_epochs": 1,
69
+ "save_steps": 500,
70
+ "total_flos": 84197049630720.0,
71
+ "train_batch_size": 1,
72
+ "trial_name": null,
73
+ "trial_params": null
74
+ }
checkpoint-80/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd6bf47baf73ff903c6a06ed0fa0b9b3224ae196f25546edfb7dc2191e45162e
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:5b9e5f7981fe0600bb883464aab6535c7d5105404505bbc8abcea7b3fe7cafd4
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:fd6bf47baf73ff903c6a06ed0fa0b9b3224ae196f25546edfb7dc2191e45162e
3
+ size 5048
training_params.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "fewshotlearning-text-classification-bert-sm/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": "fewshotlearning-text-classification-bert-sm",
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