hamzasidat commited on
Commit
ed0b017
1 Parent(s): b063556

Hamzas_assignment1_Albert2

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: albert-base-v2
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - emotion
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: AlbertResults2
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: emotion
18
+ type: emotion
19
+ config: split
20
+ split: validation
21
+ args: split
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.931
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # AlbertResults2
32
+
33
+ This model is a fine-tuned version of [albert-base-v2](https://huggingface.co/albert-base-v2) on the emotion dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.1619
36
+ - Accuracy: 0.931
37
+
38
+ ## Model description
39
+
40
+ More information needed
41
+
42
+ ## Intended uses & limitations
43
+
44
+ More information needed
45
+
46
+ ## Training and evaluation data
47
+
48
+ More information needed
49
+
50
+ ## Training procedure
51
+
52
+ ### Training hyperparameters
53
+
54
+ The following hyperparameters were used during training:
55
+ - learning_rate: 3e-05
56
+ - train_batch_size: 16
57
+ - eval_batch_size: 16
58
+ - seed: 42
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - num_epochs: 2
62
+
63
+ ### Training results
64
+
65
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
+ | 0.3348 | 1.0 | 1000 | 0.2663 | 0.9075 |
68
+ | 0.1566 | 2.0 | 2000 | 0.1619 | 0.931 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.38.2
74
+ - Pytorch 2.1.0+cu121
75
+ - Datasets 2.18.0
76
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "albert-base-v2",
3
+ "architectures": [
4
+ "AlbertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0,
7
+ "bos_token_id": 2,
8
+ "classifier_dropout_prob": 0.1,
9
+ "down_scale_factor": 1,
10
+ "embedding_size": 128,
11
+ "eos_token_id": 3,
12
+ "gap_size": 0,
13
+ "hidden_act": "gelu_new",
14
+ "hidden_dropout_prob": 0,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "LABEL_0",
18
+ "1": "LABEL_1",
19
+ "2": "LABEL_2",
20
+ "3": "LABEL_3",
21
+ "4": "LABEL_4",
22
+ "5": "LABEL_5"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "inner_group_num": 1,
26
+ "intermediate_size": 3072,
27
+ "label2id": {
28
+ "LABEL_0": 0,
29
+ "LABEL_1": 1,
30
+ "LABEL_2": 2,
31
+ "LABEL_3": 3,
32
+ "LABEL_4": 4,
33
+ "LABEL_5": 5
34
+ },
35
+ "layer_norm_eps": 1e-12,
36
+ "max_position_embeddings": 512,
37
+ "model_type": "albert",
38
+ "net_structure_type": 0,
39
+ "num_attention_heads": 12,
40
+ "num_hidden_groups": 1,
41
+ "num_hidden_layers": 12,
42
+ "num_memory_blocks": 0,
43
+ "pad_token_id": 0,
44
+ "position_embedding_type": "absolute",
45
+ "problem_type": "single_label_classification",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.38.2",
48
+ "type_vocab_size": 2,
49
+ "vocab_size": 30000
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08c7bd9e31cfdf70ac8b0107b98d55009b44abd2eb0e4fb408cf08904ca47ee5
3
+ size 46756216
runs/Mar10_21-11-06_9a1eb7cd3361/events.out.tfevents.1710105137.9a1eb7cd3361.406.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:723db79ce896e3ebf84aba2a478cba15ae19085240f3629884d16e8796ed8cb0
3
+ size 10760
runs/Mar10_21-43-42_9a1eb7cd3361/events.out.tfevents.1710107092.9a1eb7cd3361.9018.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c4ae18bc096652191ff1caba8b9992b12e0feb1cff5ec3bbfe056558d4c4170
3
+ size 7655
runs/Mar10_21-43-42_9a1eb7cd3361/events.out.tfevents.1710111221.9a1eb7cd3361.9018.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b1b3bef87c1127141a94281f83609cf37fc96a5d4278a0ede815b5b30322255
3
+ size 1057
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2dfc1a30fccfc3cc690b90737598e4a16e5c30142a4e56546c572102e0509bb
3
+ size 4920