saideep-arikontham
commited on
Commit
•
019ad56
1
Parent(s):
1399c24
biden_stance_detection
Browse files- README.md +75 -0
- adapter_config.json +28 -0
- adapter_model.safetensors +3 -0
- merges.txt +0 -0
- runs/Apr22_02-16-56_Saideeps-Air.lan/events.out.tfevents.1713766616.Saideeps-Air.lan.52395.0 +3 -0
- runs/Apr23_09-41-16_Saideeps-Air.lan/events.out.tfevents.1713879679.Saideeps-Air.lan.63189.0 +3 -0
- runs/Apr23_09-41-16_Saideeps-Air.lan/events.out.tfevents.1713888932.Saideeps-Air.lan.63189.1 +3 -0
- special_tokens_map.json +45 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
base_model: cardiffnlp/twitter-roberta-base-sentiment-latest
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
model-index:
|
11 |
+
- name: twitter-roberta-base-sentiment-latest-biden-stance-1
|
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 |
+
# twitter-roberta-base-sentiment-latest-biden-stance-1
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 1.4037
|
23 |
+
- Accuracy: {'accuracy': 0.5688073394495413}
|
24 |
+
- Precision: {'precision': 0.5540838852097131}
|
25 |
+
- Recall: {'recall': 0.6640211640211641}
|
26 |
+
- F1 Score: {'f1': 0.6040914560770156}
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 0.001
|
46 |
+
- train_batch_size: 4
|
47 |
+
- eval_batch_size: 4
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 10
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 Score |
|
56 |
+
|:-------------:|:-----:|:-----:|:---------------:|:----------------------:|:---------------------------------:|:-------------------:|:--------------------------:|
|
57 |
+
| 0.4339 | 1.0 | 3600 | 0.4173 | {'accuracy': 0.8925} | {'precision': 0.857630979498861} | {'recall': 0.94125} | {'f1': 0.8974970202622169} |
|
58 |
+
| 0.3848 | 2.0 | 7200 | 0.5757 | {'accuracy': 0.854375} | {'precision': 0.9341500765696784} | {'recall': 0.7625} | {'f1': 0.8396421197522368} |
|
59 |
+
| 0.4094 | 3.0 | 10800 | 0.3543 | {'accuracy': 0.904375} | {'precision': 0.8655367231638418} | {'recall': 0.9575} | {'f1': 0.9091988130563798} |
|
60 |
+
| 0.3937 | 4.0 | 14400 | 0.2576 | {'accuracy': 0.91125} | {'precision': 0.9092039800995025} | {'recall': 0.91375} | {'f1': 0.9114713216957606} |
|
61 |
+
| 0.3401 | 5.0 | 18000 | 0.2671 | {'accuracy': 0.91625} | {'precision': 0.9291237113402062} | {'recall': 0.90125} | {'f1': 0.9149746192893401} |
|
62 |
+
| 0.352 | 6.0 | 21600 | 0.2429 | {'accuracy': 0.91875} | {'precision': 0.9294871794871795} | {'recall': 0.90625} | {'f1': 0.9177215189873418} |
|
63 |
+
| 0.2883 | 7.0 | 25200 | 0.2857 | {'accuracy': 0.915625} | {'precision': 0.917189460476788} | {'recall': 0.91375} | {'f1': 0.915466499686913} |
|
64 |
+
| 0.2894 | 8.0 | 28800 | 0.2270 | {'accuracy': 0.92375} | {'precision': 0.9302030456852792} | {'recall': 0.91625} | {'f1': 0.9231738035264484} |
|
65 |
+
| 0.282 | 9.0 | 32400 | 0.2518 | {'accuracy': 0.92} | {'precision': 0.9189526184538653} | {'recall': 0.92125} | {'f1': 0.920099875156055} |
|
66 |
+
| 0.2485 | 10.0 | 36000 | 0.2351 | {'accuracy': 0.92375} | {'precision': 0.9269521410579346} | {'recall': 0.92} | {'f1': 0.9234629861982434} |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- PEFT 0.10.0
|
72 |
+
- Transformers 4.38.2
|
73 |
+
- Pytorch 2.2.1
|
74 |
+
- Datasets 2.18.0
|
75 |
+
- Tokenizers 0.15.2
|
adapter_config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 32,
|
14 |
+
"lora_dropout": 0.01,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 4,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"out_proj"
|
24 |
+
],
|
25 |
+
"task_type": "SEQ_CLS",
|
26 |
+
"use_dora": false,
|
27 |
+
"use_rslora": false
|
28 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93775f5e0d9831158981bfd4fff97daf11b4369b37066eed2948ee5f19b1b4d8
|
3 |
+
size 2406728
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
runs/Apr22_02-16-56_Saideeps-Air.lan/events.out.tfevents.1713766616.Saideeps-Air.lan.52395.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f432f91df4ab26bbf4a27cfb0f21a08644c1656275c4019592f900c31b0bf8c7
|
3 |
+
size 18988
|
runs/Apr23_09-41-16_Saideeps-Air.lan/events.out.tfevents.1713879679.Saideeps-Air.lan.63189.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd40900678ef494db329427aed36fbedd2aa67701cd3d2559e0fa8b7a6c73e17
|
3 |
+
size 23401
|
runs/Apr23_09-41-16_Saideeps-Air.lan/events.out.tfevents.1713888932.Saideeps-Air.lan.63189.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81f93f0552c3d4a49f3e598267aeadb83c17a2f71f3a88c818b4b6fe89272d63
|
3 |
+
size 364
|
special_tokens_map.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": "</s>",
|
31 |
+
"sep_token": {
|
32 |
+
"content": "</s>",
|
33 |
+
"lstrip": false,
|
34 |
+
"normalized": true,
|
35 |
+
"rstrip": false,
|
36 |
+
"single_word": false
|
37 |
+
},
|
38 |
+
"unk_token": {
|
39 |
+
"content": "<unk>",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": true,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false
|
44 |
+
}
|
45 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"model_max_length": 1000000000000000019884624838656,
|
52 |
+
"pad_token": "</s>",
|
53 |
+
"sep_token": "</s>",
|
54 |
+
"tokenizer_class": "RobertaTokenizer",
|
55 |
+
"trim_offsets": true,
|
56 |
+
"unk_token": "<unk>"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:febc77efe73ea4845368adfb9b25edfbbc0a591ec46530fff028fb377433ed22
|
3 |
+
size 4984
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|