soschuetze commited on
Commit
e217a50
·
1 Parent(s): 8d17f4b

Upload TFDistilBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +63 -0
  2. config.json +45 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: disilbert-blm-tweets
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
11
+ probably proofread and complete it, then remove this comment. -->
12
+
13
+ # disilbert-blm-tweets
14
+
15
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.0727
18
+ - Train Accuracy: 0.9926
19
+ - Validation Loss: 1.8131
20
+ - Validation Accuracy: 0.5631
21
+ - Epoch: 9
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'Adam', 'learning_rate': 5e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
46
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
47
+ | 2.0599 | 0.1921 | 1.9355 | 0.2621 | 0 |
48
+ | 1.8101 | 0.3596 | 1.6701 | 0.3981 | 1 |
49
+ | 1.4513 | 0.5493 | 1.4079 | 0.5243 | 2 |
50
+ | 1.0462 | 0.6995 | 1.4498 | 0.5340 | 3 |
51
+ | 0.7448 | 0.8030 | 1.3420 | 0.5825 | 4 |
52
+ | 0.4818 | 0.8867 | 1.4666 | 0.5728 | 5 |
53
+ | 0.3204 | 0.9163 | 1.7067 | 0.5534 | 6 |
54
+ | 0.1792 | 0.9655 | 1.6278 | 0.5728 | 7 |
55
+ | 0.1129 | 0.9852 | 1.7240 | 0.5728 | 8 |
56
+ | 0.0727 | 0.9926 | 1.8131 | 0.5631 | 9 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.25.1
62
+ - TensorFlow 2.9.2
63
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "label2id": {
24
+ "LABEL_0": 0,
25
+ "LABEL_1": 1,
26
+ "LABEL_2": 2,
27
+ "LABEL_3": 3,
28
+ "LABEL_4": 4,
29
+ "LABEL_5": 5,
30
+ "LABEL_6": 6,
31
+ "LABEL_7": 7,
32
+ "LABEL_8": 8
33
+ },
34
+ "max_position_embeddings": 512,
35
+ "model_type": "distilbert",
36
+ "n_heads": 12,
37
+ "n_layers": 6,
38
+ "pad_token_id": 0,
39
+ "qa_dropout": 0.1,
40
+ "seq_classif_dropout": 0.2,
41
+ "sinusoidal_pos_embds": false,
42
+ "tie_weights_": true,
43
+ "transformers_version": "4.25.1",
44
+ "vocab_size": 30522
45
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:177055cadbbd66fecb6306f7777822e30bacb21b2eaa5233d4bf4f751e0397b3
3
+ size 267977896