Noor0 commited on
Commit
d897fd7
1 Parent(s): ef41c76

Noor0/XLM_RoBERTa_Twitter_eng_ar_sentiment

Browse files
README.md CHANGED
@@ -1,6 +1,5 @@
1
  ---
2
- license: mit
3
- base_model: xlm-roberta-base
4
  tags:
5
  - generated_from_trainer
6
  metrics:
@@ -15,10 +14,10 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # result
17
 
18
- This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the None dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.8753
21
- - Accuracy: 0.7905
22
 
23
  ## Model description
24
 
@@ -38,22 +37,21 @@ More information needed
38
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 2e-05
41
- - train_batch_size: 8
42
- - eval_batch_size: 8
43
  - seed: 42
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: linear
46
- - num_epochs: 5
 
47
 
48
  ### Training results
49
 
50
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
  |:-------------:|:-----:|:-----:|:---------------:|:--------:|
52
- | 0.5769 | 1.0 | 12925 | 0.6333 | 0.7682 |
53
- | 0.4925 | 2.0 | 25850 | 0.5946 | 0.7824 |
54
- | 0.43 | 3.0 | 38775 | 0.5930 | 0.7864 |
55
- | 0.3766 | 4.0 | 51700 | 0.6989 | 0.7905 |
56
- | 0.3333 | 5.0 | 64625 | 0.8753 | 0.7905 |
57
 
58
 
59
  ### Framework versions
 
1
  ---
2
+ base_model: cardiffnlp/twitter-xlm-roberta-base-sentiment
 
3
  tags:
4
  - generated_from_trainer
5
  metrics:
 
14
 
15
  # result
16
 
17
+ This model is a fine-tuned version of [cardiffnlp/twitter-xlm-roberta-base-sentiment](https://huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment) on the None dataset.
18
  It achieves the following results on the evaluation set:
19
+ - Loss: 0.5662
20
+ - Accuracy: 0.8065
21
 
22
  ## Model description
23
 
 
37
 
38
  The following hyperparameters were used during training:
39
  - learning_rate: 2e-05
40
+ - train_batch_size: 16
41
+ - eval_batch_size: 16
42
  - seed: 42
43
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
  - lr_scheduler_type: linear
45
+ - lr_scheduler_warmup_steps: 100
46
+ - num_epochs: 3
47
 
48
  ### Training results
49
 
50
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
  |:-------------:|:-----:|:-----:|:---------------:|:--------:|
52
+ | 0.5234 | 1.0 | 6463 | 0.5311 | 0.7852 |
53
+ | 0.4135 | 2.0 | 12926 | 0.5020 | 0.8039 |
54
+ | 0.3246 | 3.0 | 19389 | 0.5662 | 0.8065 |
 
 
55
 
56
 
57
  ### Framework versions
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "xlm-roberta-base",
3
  "architectures": [
4
  "XLMRobertaForSequenceClassification"
5
  ],
@@ -7,20 +7,21 @@
7
  "bos_token_id": 0,
8
  "classifier_dropout": null,
9
  "eos_token_id": 2,
 
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
  "id2label": {
14
- "0": "LABEL_0",
15
- "1": "LABEL_1",
16
- "2": "LABEL_2"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 3072,
20
  "label2id": {
21
- "LABEL_0": 0,
22
- "LABEL_1": 1,
23
- "LABEL_2": 2
24
  },
25
  "layer_norm_eps": 1e-05,
26
  "max_position_embeddings": 514,
 
1
  {
2
+ "_name_or_path": "cardiffnlp/twitter-xlm-roberta-base-sentiment",
3
  "architectures": [
4
  "XLMRobertaForSequenceClassification"
5
  ],
 
7
  "bos_token_id": 0,
8
  "classifier_dropout": null,
9
  "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
  "hidden_act": "gelu",
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 768,
14
  "id2label": {
15
+ "0": "negative",
16
+ "1": "neutral",
17
+ "2": "positive"
18
  },
19
  "initializer_range": 0.02,
20
  "intermediate_size": 3072,
21
  "label2id": {
22
+ "negative": 0,
23
+ "neutral": 1,
24
+ "positive": 2
25
  },
26
  "layer_norm_eps": 1e-05,
27
  "max_position_embeddings": 514,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:05dfdd4e783bfc719e99edc9e3d8194c8d5a6ae765a8f535f12f1bfaa19f1033
3
  size 1112208084
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6de7a3825d55ff3eaa6f08a0f9aa3a481f38ec1ec4a0cd483ff4225cae180a6a
3
  size 1112208084
runs/Dec06_03-15-23_0f41a1620a98/events.out.tfevents.1701832679.0f41a1620a98.47.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1968e7ee7350232949419098cfb5839f8375db5e30a36a7ee16011685edab1d6
3
+ size 11795
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1c4147c7d8584d679fcabb10e7c63ac96de865feb8a5e2b6bc9308acf93cacdb
3
- size 17082953
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0ebf3e7cfe6347b0b6b82a19702f2f60528b0653b70195c4093b3cb3bcb8cd7
3
+ size 17098361
tokenizer_config.json CHANGED
@@ -46,9 +46,10 @@
46
  "cls_token": "<s>",
47
  "eos_token": "</s>",
48
  "mask_token": "<mask>",
49
- "model_max_length": 512,
50
  "pad_token": "<pad>",
51
  "sep_token": "</s>",
 
52
  "tokenizer_class": "XLMRobertaTokenizer",
53
  "unk_token": "<unk>"
54
  }
 
46
  "cls_token": "<s>",
47
  "eos_token": "</s>",
48
  "mask_token": "<mask>",
49
+ "model_max_length": 1000000000000000019884624838656,
50
  "pad_token": "<pad>",
51
  "sep_token": "</s>",
52
+ "sp_model_kwargs": {},
53
  "tokenizer_class": "XLMRobertaTokenizer",
54
  "unk_token": "<unk>"
55
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4839b97df1775501c504ea2360c9bcd5949b53b46cb79e91efe2df8b9d40fd55
3
  size 4155
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a40590a3260ce5f4807be95baf1d0ce597013250f0bc6e673dee2f053f04db34
3
  size 4155