SeyedAli commited on
Commit
e265ffa
1 Parent(s): 4789120

SeyedAli/Persian-Text-Emotion-Bert-LORA

Browse files
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: HooshvareLab/bert-base-parsbert-uncased
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - precision
7
+ - recall
8
+ - accuracy
9
+ model-index:
10
+ - name: Persian-Text-Sentiment-Bert-LORA
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # Persian-Text-Sentiment-Bert-LORA
18
+
19
+ This model is a fine-tuned version of [HooshvareLab/bert-base-parsbert-uncased](https://huggingface.co/HooshvareLab/bert-base-parsbert-uncased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.3427
22
+ - Precision: 0.8579
23
+ - Recall: 0.8543
24
+ - F1-score: 0.8540
25
+ - Accuracy: 0.8543
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 2e-05
45
+ - train_batch_size: 16
46
+ - eval_batch_size: 16
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 10
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1-score | Accuracy |
55
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:--------:|:--------:|
56
+ | 0.3939 | 1.0 | 3491 | 0.3835 | 0.8457 | 0.8404 | 0.8398 | 0.8404 |
57
+ | 0.3722 | 2.0 | 6982 | 0.3677 | 0.8513 | 0.8457 | 0.8451 | 0.8457 |
58
+ | 0.3553 | 3.0 | 10473 | 0.3576 | 0.8539 | 0.8495 | 0.8491 | 0.8495 |
59
+ | 0.3618 | 4.0 | 13964 | 0.3525 | 0.8546 | 0.8513 | 0.8509 | 0.8513 |
60
+ | 0.3534 | 5.0 | 17455 | 0.3485 | 0.8557 | 0.8521 | 0.8517 | 0.8521 |
61
+ | 0.3423 | 6.0 | 20946 | 0.3470 | 0.8562 | 0.8530 | 0.8526 | 0.8530 |
62
+ | 0.3455 | 7.0 | 24437 | 0.3453 | 0.8573 | 0.8535 | 0.8531 | 0.8535 |
63
+ | 0.347 | 8.0 | 27928 | 0.3428 | 0.8575 | 0.8539 | 0.8535 | 0.8539 |
64
+ | 0.344 | 9.0 | 31419 | 0.3429 | 0.8578 | 0.8546 | 0.8542 | 0.8546 |
65
+ | 0.335 | 10.0 | 34910 | 0.3427 | 0.8579 | 0.8543 | 0.8540 | 0.8543 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 4.35.1
71
+ - Pytorch 2.1.0+cu118
72
+ - Datasets 2.14.6
73
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "HooshvareLab/bert-base-parsbert-uncased",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 1,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 4,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "query",
20
+ "value"
21
+ ],
22
+ "task_type": "SEQ_CLS"
23
+ }
adapter_model.safetensors ADDED
Binary file (603 kB). View file
 
runs/Nov14_19-10-10_731b4cac1cc4/events.out.tfevents.1699989030.731b4cac1cc4.223.0 ADDED
Binary file (20.5 kB). View file
 
runs/Nov14_19-10-10_731b4cac1cc4/events.out.tfevents.1699994579.731b4cac1cc4.223.1 ADDED
Binary file (575 Bytes). View file
 
training_args.bin ADDED
Binary file (4.6 kB). View file