amodaresi commited on
Commit
ade14bd
1 Parent(s): 6f36e51

Add model and its dependencies

Browse files
.gitattributes CHANGED
@@ -9,6 +9,7 @@
9
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
  *.model filter=lfs diff=lfs merge=lfs -text
11
  *.msgpack filter=lfs diff=lfs merge=lfs -text
 
12
  *.onnx filter=lfs diff=lfs merge=lfs -text
13
  *.ot filter=lfs diff=lfs merge=lfs -text
14
  *.parquet filter=lfs diff=lfs merge=lfs -text
9
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
  *.model filter=lfs diff=lfs merge=lfs -text
11
  *.msgpack filter=lfs diff=lfs merge=lfs -text
12
+ *.npy filter=lfs diff=lfs merge=lfs -text
13
  *.onnx filter=lfs diff=lfs merge=lfs -text
14
  *.ot filter=lfs diff=lfs merge=lfs -text
15
  *.parquet filter=lfs diff=lfs merge=lfs -text
HateXplain-dev_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "HateXplain-dev_accuracy": 0.4162330905306972,
3
+ "HateXplain-dev_accuracy_0": 0.8145025295109612,
4
+ "HateXplain-dev_accuracy_1": 0.18950064020486557,
5
+ "HateXplain-dev_accuracy_2": 0.3083941605839416,
6
+ "HateXplain-dev_loss": 0.766707181930542,
7
+ "HateXplain-dev_runtime": 2.1526,
8
+ "HateXplain-dev_samples": 1922,
9
+ "HateXplain-dev_samples_per_second": 892.867,
10
+ "HateXplain-dev_steps_per_second": 28.338,
11
+ "epoch": 3.0
12
+ }
HateXplain-test_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "HateXplain-test_accuracy": 0.41372141372141374,
3
+ "HateXplain-test_accuracy_0": 0.8383838383838383,
4
+ "HateXplain-test_accuracy_1": 0.18030690537084398,
5
+ "HateXplain-test_accuracy_2": 0.2864963503649635,
6
+ "HateXplain-test_loss": 0.7393361926078796,
7
+ "HateXplain-test_runtime": 2.1365,
8
+ "HateXplain-test_samples": 1924,
9
+ "HateXplain-test_samples_per_second": 900.535,
10
+ "HateXplain-test_steps_per_second": 28.551,
11
+ "epoch": 3.0
12
+ }
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - ''
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: SEED0042
13
+ results:
14
+ - task:
15
+ name: Text Classification
16
+ type: text-classification
17
+ dataset:
18
+ name: HATEXPLAIN
19
+ type: ''
20
+ args: hatexplain
21
+ metrics:
22
+ - name: Accuracy
23
+ type: accuracy
24
+ value: 0.4162330905306972
25
+ ---
26
+
27
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
+ should probably proofread and complete it, then remove this comment. -->
29
+
30
+ # SEED0042
31
+
32
+ This model is a fine-tuned version of [google/electra-base-discriminator](https://huggingface.co/google/electra-base-discriminator) on the HATEXPLAIN dataset.
33
+ It achieves the following results on the evaluation set:
34
+ - Loss: 0.7667
35
+ - Accuracy: 0.4162
36
+ - Accuracy 0: 0.8145
37
+ - Accuracy 1: 0.1895
38
+ - Accuracy 2: 0.3084
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 3e-05
58
+ - train_batch_size: 32
59
+ - eval_batch_size: 32
60
+ - seed: 42
61
+ - distributed_type: not_parallel
62
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
63
+ - lr_scheduler_type: linear
64
+ - lr_scheduler_warmup_steps: 150
65
+ - num_epochs: 3
66
+
67
+ ### Training results
68
+
69
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Accuracy 0 | Accuracy 1 | Accuracy 2 |
70
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:----------:|:----------:|:----------:|
71
+ | No log | 1.0 | 481 | 0.7431 | 0.4152 | 0.7707 | 0.1805 | 0.3650 |
72
+ | No log | 2.0 | 962 | 0.7346 | 0.4152 | 0.8010 | 0.2190 | 0.2774 |
73
+ | No log | 3.0 | 1443 | 0.7667 | 0.4162 | 0.8145 | 0.1895 | 0.3084 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.17.0
79
+ - Pytorch 1.10.0+cu113
80
+ - Datasets 2.1.0
81
+ - Tokenizers 0.11.6
all_results.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "HateXplain-dev_accuracy": 0.4162330905306972,
3
+ "HateXplain-dev_accuracy_0": 0.8145025295109612,
4
+ "HateXplain-dev_accuracy_1": 0.18950064020486557,
5
+ "HateXplain-dev_accuracy_2": 0.3083941605839416,
6
+ "HateXplain-dev_loss": 0.766707181930542,
7
+ "HateXplain-dev_runtime": 2.1526,
8
+ "HateXplain-dev_samples": 1922,
9
+ "HateXplain-dev_samples_per_second": 892.867,
10
+ "HateXplain-dev_steps_per_second": 28.338,
11
+ "HateXplain-test_accuracy": 0.41372141372141374,
12
+ "HateXplain-test_accuracy_0": 0.8383838383838383,
13
+ "HateXplain-test_accuracy_1": 0.18030690537084398,
14
+ "HateXplain-test_accuracy_2": 0.2864963503649635,
15
+ "HateXplain-test_loss": 0.7393361926078796,
16
+ "HateXplain-test_runtime": 2.1365,
17
+ "HateXplain-test_samples": 1924,
18
+ "HateXplain-test_samples_per_second": 900.535,
19
+ "HateXplain-test_steps_per_second": 28.551,
20
+ "epoch": 3.0,
21
+ "train_loss": 0.6979017356824974,
22
+ "train_runtime": 157.0033,
23
+ "train_samples": 15383,
24
+ "train_samples_per_second": 293.936,
25
+ "train_steps_per_second": 9.191
26
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/electra-base-discriminator",
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 768,
9
+ "finetuning_task": "hatexplain",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "hatespeech",
15
+ "1": "normal",
16
+ "2": "offensive"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "hatespeech": 0,
22
+ "normal": 1,
23
+ "offensive": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "electra",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 0,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "summary_activation": "gelu",
34
+ "summary_last_dropout": 0.1,
35
+ "summary_type": "first",
36
+ "summary_use_proj": true,
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.17.0",
39
+ "type_vocab_size": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 30522
42
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc44566720bcc9a14a2789e2c59182f776da68837ccbf696db1412665153870c
3
+ size 438024493
run_arguments.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name_or_path": "google/electra-base-discriminator",
3
+ "task_name": "hatexplain",
4
+ "output_dir": "./output/electra/hatexplain/0001/SEED0042/",
5
+ "learning_rate": 3e-05,
6
+ "num_train_epochs": 3,
7
+ "per_device_eval_batch_size": 32,
8
+ "per_device_train_batch_size": 32,
9
+ "seed": 42,
10
+ "warmup_steps": 150,
11
+ "do_train": true,
12
+ "do_eval": true,
13
+ "do_predict": false,
14
+ "pad_to_max_length": false,
15
+ "max_seq_length": 128,
16
+ "report_to": [],
17
+ "save_strategy": "epoch",
18
+ "evaluation_strategy": "epoch",
19
+ "logging_steps": 2500,
20
+ "use_fast_tokenizer": true,
21
+ "group_by_length": true,
22
+ "save_training_dynamics": true,
23
+ "save_training_dynamics_after_epoch": true
24
+ }
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "google/electra-base-discriminator", "tokenizer_class": "ElectraTokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.6979017356824974,
4
+ "train_runtime": 157.0033,
5
+ "train_samples": 15383,
6
+ "train_samples_per_second": 293.936,
7
+ "train_steps_per_second": 9.191
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 1443,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 1.0,
12
+ "eval_accuracy": 0.41519250780437045,
13
+ "eval_accuracy_0": 0.7706576728499157,
14
+ "eval_accuracy_1": 0.18053777208706787,
15
+ "eval_accuracy_2": 0.36496350364963503,
16
+ "eval_loss": 0.7430521249771118,
17
+ "eval_runtime": 2.1482,
18
+ "eval_samples_per_second": 894.711,
19
+ "eval_steps_per_second": 28.396,
20
+ "step": 481
21
+ },
22
+ {
23
+ "epoch": 2.0,
24
+ "eval_accuracy": 0.41519250780437045,
25
+ "eval_accuracy_0": 0.8010118043844857,
26
+ "eval_accuracy_1": 0.21895006402048656,
27
+ "eval_accuracy_2": 0.2773722627737226,
28
+ "eval_loss": 0.734639585018158,
29
+ "eval_runtime": 2.1556,
30
+ "eval_samples_per_second": 891.64,
31
+ "eval_steps_per_second": 28.299,
32
+ "step": 962
33
+ },
34
+ {
35
+ "epoch": 3.0,
36
+ "eval_accuracy": 0.4162330905306972,
37
+ "eval_accuracy_0": 0.8145025295109612,
38
+ "eval_accuracy_1": 0.18950064020486557,
39
+ "eval_accuracy_2": 0.3083941605839416,
40
+ "eval_loss": 0.766707181930542,
41
+ "eval_runtime": 2.1595,
42
+ "eval_samples_per_second": 890.029,
43
+ "eval_steps_per_second": 28.248,
44
+ "step": 1443
45
+ },
46
+ {
47
+ "epoch": 3.0,
48
+ "step": 1443,
49
+ "total_flos": 736655902431120.0,
50
+ "train_loss": 0.6979017356824974,
51
+ "train_runtime": 157.0033,
52
+ "train_samples_per_second": 293.936,
53
+ "train_steps_per_second": 9.191
54
+ }
55
+ ],
56
+ "max_steps": 1443,
57
+ "num_train_epochs": 3,
58
+ "total_flos": 736655902431120.0,
59
+ "trial_name": null,
60
+ "trial_params": null
61
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c76ce4485b64a5702a8ce31c3289572d54aa1f7a4c942883f18cf217dec8fd48
3
+ size 3119
training_dynamics/epoch0_train_idxs_[15383].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aaeb19d32c0db5eb6d632f80136c429247902cb6e3a95a6d4d4f2daf0cd645f1
3
+ size 123755
training_dynamics/epoch0_train_logits_[15383, 3].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a43f29c6ac9cf4849562db9c00c40a44c884ff55a8c016391318964c57279f23
3
+ size 185323
training_dynamics/epoch1_train_idxs_[15383].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b6dd61b3ec2c4dc9d2dc665245fc26d21e992f6dd2eab38b2d77320edeac737
3
+ size 123755
training_dynamics/epoch1_train_logits_[15383, 3].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f10754de63a72449f28e485e6ebb2d0f1c1c43d88b2a754fd4be5b547e41fc8f
3
+ size 185323
training_dynamics/epoch2_train_idxs_[15383].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de065ee9319875e5da724bad1d4af75c0b934a23469933dbe73c80267ce11e65
3
+ size 123755
training_dynamics/epoch2_train_logits_[15383, 3].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9021069b7b7fffcd4e9bf372759a20f4faa5809604b01cc0d5dee7693ce94c89
3
+ size 185323
training_dynamics_after_epoch/epoch0_after_epoch_train_idxs_[15383].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:261a744bdb762ff1c3e893f2b06e2d5ad525bd0b8a06d5f8f521a4fcfd2a283e
3
+ size 123755
training_dynamics_after_epoch/epoch0_after_epoch_train_logits_[15383, 3].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:116f53edc75e134b07da7486b77f42cdae644b88b2796cef469dc66c848dc70e
3
+ size 185323
training_dynamics_after_epoch/epoch1_after_epoch_train_idxs_[15383].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:808c04cd270c54d3f25a7bd1ba9c1096f018e5f3d5ca1e0bd805cb6d9792e556
3
+ size 123755
training_dynamics_after_epoch/epoch1_after_epoch_train_logits_[15383, 3].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3062d3da16afe3af760044477167e2d9804d1b0e36720998673779650a1181bf
3
+ size 185323
training_dynamics_after_epoch/epoch2_after_epoch_train_idxs_[15383].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e261a8570af9e80feb199bb5e32d88073bc23f3b2ad781f170d83699467714d8
3
+ size 123755
training_dynamics_after_epoch/epoch2_after_epoch_train_logits_[15383, 3].pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33daacc01ffcad1f8501c6b6580d265183dcd350ce113db615ff9d9450a2efbe
3
+ size 185323
val_sals.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1372397754bf861b8c5b7c9510fc344e4f515433f1d684e148f383996ae0c04f
3
+ size 1968256
vocab.txt ADDED
The diff for this file is too large to render. See raw diff