H-Layba commited on
Commit
a4b7a9b
·
verified ·
1 Parent(s): 20b2446

Fine-tuned mBERT for Urdu sentiment classification

Browse files
Files changed (2) hide show
  1. README.md +69 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: bert-base-multilingual-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: urdu-sentiment-classifier
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # urdu-sentiment-classifier
19
+
20
+ This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.8915
23
+ - Accuracy: 0.81
24
+ - F1: 0.8098
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 64
45
+ - eval_batch_size: 128
46
+ - seed: 42
47
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: linear
49
+ - lr_scheduler_warmup_steps: 100
50
+ - num_epochs: 5
51
+ - mixed_precision_training: Native AMP
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
57
+ | 0.8954 | 1.0 | 625 | 0.9527 | 0.7696 | 0.7656 |
58
+ | 0.7918 | 2.0 | 1250 | 0.8385 | 0.8 | 0.7999 |
59
+ | 0.6211 | 3.0 | 1875 | 0.8908 | 0.8101 | 0.8099 |
60
+ | 0.5833 | 4.0 | 2500 | 0.9350 | 0.8088 | 0.8087 |
61
+ | 0.4515 | 5.0 | 3125 | 1.0381 | 0.8081 | 0.8081 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 5.0.0
67
+ - Pytorch 2.10.0+cu128
68
+ - Datasets 4.8.5
69
+ - Tokenizers 0.22.2
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e07bac5733c952c5249686ce9f7c77ebebf57b79f7023e9473f176cf844278ec
3
  size 711443432
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a59bcd26163ad38e5d59321bbb1d986838febdf61bfd727686fc7706d52060e
3
  size 711443432