mspoulaei commited on
Commit
229bb56
·
verified ·
1 Parent(s): 2f7c0fe

roberta-sentiment

Browse files
Files changed (4) hide show
  1. README.md +75 -0
  2. config.json +43 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: FacebookAI/xlm-roberta-large
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: best-model-v1
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # best-model-v1
20
+
21
+ This model is a fine-tuned version of [FacebookAI/xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.6069
24
+ - Accuracy: 0.4410
25
+ - Precision: 0.5118
26
+ - Recall: 0.6489
27
+ - F1 Score: 0.5711
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 16
49
+ - seed: 42
50
+ - gradient_accumulation_steps: 2
51
+ - total_train_batch_size: 16
52
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
53
+ - lr_scheduler_type: cosine_with_restarts
54
+ - lr_scheduler_warmup_steps: 500
55
+ - num_epochs: 3
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 Score |
60
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:--------:|
61
+ | 1.7357 | 0.3911 | 500 | 0.8218 | 0.3192 | 0.2798 | 0.2506 | 0.2551 |
62
+ | 1.5848 | 0.7822 | 1000 | 0.7275 | 0.3937 | 0.4789 | 0.4157 | 0.4387 |
63
+ | 1.398 | 1.1729 | 1500 | 0.6628 | 0.4123 | 0.4885 | 0.5846 | 0.5251 |
64
+ | 1.2999 | 1.5639 | 2000 | 0.6264 | 0.4295 | 0.5046 | 0.6402 | 0.5626 |
65
+ | 1.2964 | 1.9550 | 2500 | 0.6101 | 0.4260 | 0.4991 | 0.6553 | 0.5655 |
66
+ | 1.2479 | 2.3457 | 3000 | 0.6069 | 0.4381 | 0.5082 | 0.6506 | 0.5695 |
67
+ | 1.267 | 2.7368 | 3500 | 0.6069 | 0.4410 | 0.5118 | 0.6489 | 0.5711 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.47.1
73
+ - Pytorch 2.4.1+cu121
74
+ - Datasets 3.2.0
75
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "FacebookAI/xlm-roberta-large",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
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": 1024,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2",
17
+ "3": "LABEL_3",
18
+ "4": "LABEL_4"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 4096,
22
+ "label2id": {
23
+ "LABEL_0": 0,
24
+ "LABEL_1": 1,
25
+ "LABEL_2": 2,
26
+ "LABEL_3": 3,
27
+ "LABEL_4": 4
28
+ },
29
+ "layer_norm_eps": 1e-05,
30
+ "max_position_embeddings": 514,
31
+ "model_type": "xlm-roberta",
32
+ "num_attention_heads": 16,
33
+ "num_hidden_layers": 24,
34
+ "output_past": true,
35
+ "pad_token_id": 1,
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "multi_label_classification",
38
+ "torch_dtype": "bfloat16",
39
+ "transformers_version": "4.47.1",
40
+ "type_vocab_size": 1,
41
+ "use_cache": true,
42
+ "vocab_size": 250002
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5823e8691b17ec71618eb966928b4f5c3e6db66f5b0ca9220530a29469326ae
3
+ size 1119839626
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16b0014a9a696a16bab42db009c1f4fd144a33cc3302d90dc36b0672678bc409
3
+ size 5304