DipsankarSinha commited on
Commit
d014022
·
verified ·
1 Parent(s): 2a5a670

bangla-sentiment-analysis

Browse files
Files changed (4) hide show
  1. README.md +74 -0
  2. config.json +31 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: csebuetnlp/banglabert
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: results
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # results
17
+
18
+ This model is a fine-tuned version of [csebuetnlp/banglabert](https://huggingface.co/csebuetnlp/banglabert) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.6504
21
+ - Accuracy: 0.8201
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 16
42
+ - eval_batch_size: 16
43
+ - seed: 42
44
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 3
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:------:|:----:|:---------------:|:--------:|
53
+ | 0.2063 | 0.2015 | 250 | 0.7486 | 0.7993 |
54
+ | 0.4038 | 0.4029 | 500 | 0.3953 | 0.8140 |
55
+ | 0.4264 | 0.6044 | 750 | 0.3772 | 0.8156 |
56
+ | 0.3938 | 0.8058 | 1000 | 0.3900 | 0.8146 |
57
+ | 0.393 | 1.0073 | 1250 | 0.4148 | 0.8172 |
58
+ | 0.2627 | 1.2087 | 1500 | 0.4601 | 0.8247 |
59
+ | 0.2864 | 1.4102 | 1750 | 0.4548 | 0.8185 |
60
+ | 0.2559 | 1.6116 | 2000 | 0.4390 | 0.8138 |
61
+ | 0.2607 | 1.8131 | 2250 | 0.4408 | 0.8215 |
62
+ | 0.247 | 2.0145 | 2500 | 0.4906 | 0.8241 |
63
+ | 0.1356 | 2.2160 | 2750 | 0.6311 | 0.8177 |
64
+ | 0.1462 | 2.4174 | 3000 | 0.6750 | 0.8150 |
65
+ | 0.1252 | 2.6189 | 3250 | 0.6950 | 0.8207 |
66
+ | 0.1339 | 2.8203 | 3500 | 0.6504 | 0.8201 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.47.1
72
+ - Pytorch 2.5.1+cu121
73
+ - Datasets 3.2.0
74
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "csebuetnlp/banglabert",
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 768,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "electra",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "single_label_classification",
22
+ "summary_activation": "gelu",
23
+ "summary_last_dropout": 0.1,
24
+ "summary_type": "first",
25
+ "summary_use_proj": true,
26
+ "torch_dtype": "float32",
27
+ "transformers_version": "4.47.1",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 32000
31
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0076a811ff4bdabe6d921578372d8292c8f95044ead61cd05e7ef9fd53e85d86
3
+ size 442499672
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34623b8a62f3d8d93e91725a2b1e9226e79452c6c237d56dd4c3f305f41a097d
3
+ size 5240