mrm8488 commited on
Commit
57a3de4
1 Parent(s): 6f05807

Initial commit from mrm8488

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: distilRoberta-stereotype
9
+ results:
10
+ - task:
11
+ name: Text Classification
12
+ type: text-classification
13
+ metrics:
14
+ - name: Accuracy
15
+ type: accuracy
16
+ value: 0.989151002901476
17
+ ---
18
+
19
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
20
+ should probably proofread and complete it, then remove this comment. -->
21
+
22
+ # distilRoberta-stereotype
23
+
24
+ This model is a fine-tuned version of [distilroberta-base](https://huggingface.co/distilroberta-base) on an unknown dataset.
25
+ It achieves the following results on the evaluation set:
26
+ - Loss: 0.0651
27
+ - Accuracy: 0.9892
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: 16
48
+ - eval_batch_size: 16
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 5
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
57
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
58
+ | 0.0783 | 1.0 | 5615 | 0.0703 | 0.9847 |
59
+ | 0.0468 | 2.0 | 11230 | 0.0573 | 0.9863 |
60
+ | 0.0316 | 3.0 | 16845 | 0.0580 | 0.9882 |
61
+ | 0.0172 | 4.0 | 22460 | 0.0591 | 0.9885 |
62
+ | 0.0098 | 5.0 | 28075 | 0.0651 | 0.9892 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.10.2
68
+ - Pytorch 1.9.0+cu102
69
+ - Datasets 1.11.0
70
+ - Tokenizers 0.10.3
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilroberta-base",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
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": "neutral",
16
+ "1": "stereotype",
17
+ "2": " anti-stereotype"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "neutral": 0,
23
+ "stereotype": 1,
24
+ "anti-stereotype": 2
25
+ },
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "roberta",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 6,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.10.2",
36
+ "type_vocab_size": 1,
37
+ "use_cache": true,
38
+ "vocab_size": 50265
39
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62e944dd48696d30dc554a6614f37b1e6b740c62e786c7df504d4e550190a6ab
3
+ size 328529005
runs/Sep13_11-26-56_59fd62c7c141/1631532507.0280204/events.out.tfevents.1631532507.59fd62c7c141.75.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66a2c0d06ce033173b6d3923f27b15809eec6803c6aeb2ca7dab9fed8dc079f7
3
+ size 4267
runs/Sep13_11-26-56_59fd62c7c141/events.out.tfevents.1631532507.59fd62c7c141.75.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ad80ede416b4bacbe63158ded3af2ef5cb0ce3508afd468550a4724be977cb8
3
+ size 3229
runs/Sep13_11-30-08_59fd62c7c141/1631532608.5955467/events.out.tfevents.1631532608.59fd62c7c141.75.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa067d72acc9c37cdc6841e565c5af81794addd29a8a0d2020b22764a747411d
3
+ size 4267
runs/Sep13_11-30-08_59fd62c7c141/events.out.tfevents.1631532608.59fd62c7c141.75.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2784500947b7aa889e8430db81590611560e9f5d708f7a07933c5e479ed078d5
3
+ size 14086
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilroberta-base", "tokenizer_class": "RobertaTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a739c01e4e5801ab9884040af6f480c6395e2cbf1f6c2ad065dcdaef0ded38e1
3
+ size 2735
vocab.json ADDED
The diff for this file is too large to render. See raw diff