lilyray commited on
Commit
096d7af
·
verified ·
1 Parent(s): a03e292

distilbert-irony

Browse files
README.md CHANGED
@@ -3,26 +3,11 @@ license: apache-2.0
3
  base_model: distilbert-base-uncased
4
  tags:
5
  - generated_from_trainer
6
- datasets:
7
- - emotion
8
  metrics:
9
  - accuracy
10
  model-index:
11
  - name: results
12
- results:
13
- - task:
14
- name: Text Classification
15
- type: text-classification
16
- dataset:
17
- name: emotion
18
- type: emotion
19
- config: split
20
- split: validation
21
- args: split
22
- metrics:
23
- - name: Accuracy
24
- type: accuracy
25
- value: 0.9385
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -30,10 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
30
 
31
  # results
32
 
33
- This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
34
  It achieves the following results on the evaluation set:
35
- - Loss: 0.1706
36
- - Accuracy: 0.9385
37
 
38
  ## Model description
39
 
@@ -64,16 +49,16 @@ The following hyperparameters were used during training:
64
 
65
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
66
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
67
- | 0.257 | 1.0 | 1000 | 0.1801 | 0.934 |
68
- | 0.1568 | 2.0 | 2000 | 0.1773 | 0.9325 |
69
- | 0.1095 | 3.0 | 3000 | 0.1706 | 0.9385 |
70
- | 0.0803 | 4.0 | 4000 | 0.1866 | 0.939 |
71
- | 0.0565 | 5.0 | 5000 | 0.2082 | 0.9345 |
72
 
73
 
74
  ### Framework versions
75
 
76
- - Transformers 4.38.1
77
  - Pytorch 2.1.0+cu121
78
  - Datasets 2.18.0
79
  - Tokenizers 0.15.2
 
3
  base_model: distilbert-base-uncased
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  model-index:
9
  - name: results
10
+ results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
15
 
16
  # results
17
 
18
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
+ - Loss: 0.5392
21
+ - Accuracy: 0.7362
22
 
23
  ## Model description
24
 
 
49
 
50
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
+ | No log | 1.0 | 179 | 0.6078 | 0.6534 |
53
+ | No log | 2.0 | 358 | 0.6082 | 0.6681 |
54
+ | 0.5295 | 3.0 | 537 | 0.6529 | 0.6796 |
55
+ | 0.5295 | 4.0 | 716 | 0.7743 | 0.6859 |
56
+ | 0.5295 | 5.0 | 895 | 0.8280 | 0.6827 |
57
 
58
 
59
  ### Framework versions
60
 
61
+ - Transformers 4.38.2
62
  - Pytorch 2.1.0+cu121
63
  - Datasets 2.18.0
64
  - Tokenizers 0.15.2
config.json CHANGED
@@ -1,27 +1,25 @@
1
  {
2
- "_name_or_path": "google-bert/bert-base-uncased",
 
3
  "architectures": [
4
- "BertForSequenceClassification"
5
  ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "classifier_dropout": null,
8
- "gradient_checkpointing": false,
9
- "hidden_act": "gelu",
10
- "hidden_dropout_prob": 0.1,
11
- "hidden_size": 768,
12
  "initializer_range": 0.02,
13
- "intermediate_size": 3072,
14
- "layer_norm_eps": 1e-12,
15
  "max_position_embeddings": 512,
16
- "model_type": "bert",
17
- "num_attention_heads": 12,
18
- "num_hidden_layers": 12,
19
  "pad_token_id": 0,
20
- "position_embedding_type": "absolute",
21
  "problem_type": "single_label_classification",
 
 
 
 
22
  "torch_dtype": "float32",
23
  "transformers_version": "4.38.2",
24
- "type_vocab_size": 2,
25
- "use_cache": true,
26
  "vocab_size": 30522
27
  }
 
1
  {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
  "architectures": [
5
+ "DistilBertForSequenceClassification"
6
  ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
 
 
11
  "initializer_range": 0.02,
 
 
12
  "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
  "pad_token_id": 0,
 
17
  "problem_type": "single_label_classification",
18
+ "qa_dropout": 0.1,
19
+ "seq_classif_dropout": 0.2,
20
+ "sinusoidal_pos_embds": false,
21
+ "tie_weights_": true,
22
  "torch_dtype": "float32",
23
  "transformers_version": "4.38.2",
 
 
24
  "vocab_size": 30522
25
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e6b7192ac023b99453abae6426209233d1e86113b4ae39a3cd7fc4c6e67469c
3
- size 437958648
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26f66a305c7749bdf45977de4fb6af47d6647ff1bbebdff8eb539c9f97a173be
3
+ size 267832560
runs/Mar10_00-13-37_9e66d5520874/events.out.tfevents.1710029623.9e66d5520874.3219.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12fb3e690fef62266dd2ce39e06bf0f95dea1b8f9856a7b2dae85f42851e626d
3
+ size 862
runs/Mar10_00-14-03_9e66d5520874/events.out.tfevents.1710029644.9e66d5520874.3219.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:439c86645932fa855e641ee94f120866003719877764330468331f6660217a4c
3
+ size 6605
runs/Mar10_00-14-03_9e66d5520874/events.out.tfevents.1710029902.9e66d5520874.3219.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1114079dc49b59ec19c7917402c968fee92eb9863030b9c558b71257e8417d0
3
+ size 734
tokenizer_config.json CHANGED
@@ -52,6 +52,6 @@
52
  "sep_token": "[SEP]",
53
  "strip_accents": null,
54
  "tokenize_chinese_chars": true,
55
- "tokenizer_class": "BertTokenizer",
56
  "unk_token": "[UNK]"
57
  }
 
52
  "sep_token": "[SEP]",
53
  "strip_accents": null,
54
  "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "DistilBertTokenizer",
56
  "unk_token": "[UNK]"
57
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2bf4adf8eb808dd644c69cea85cfe008935e4f450bf19284dd29f846fa0895b7
3
  size 4920
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:053eafb695e31e083430bae8494f4ba1f8bc65d8882f3d8df0e1a3d692ff2eb4
3
  size 4920