lfernandopg commited on
Commit
9006822
1 Parent(s): f7ab176

Upload TFDistilBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +58 -0
  2. config.json +69 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: Proyecto-Transformers
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
+ # Proyecto-Transformers
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: 1.3322
18
+ - Train Accuracy: 0.5469
19
+ - Validation Loss: 2.5269
20
+ - Validation Accuracy: 0.2944
21
+ - Epoch: 4
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
+ | 1.5237 | 0.5237 | 2.2847 | 0.3024 | 0 |
48
+ | 1.4421 | 0.5378 | 2.3720 | 0.2823 | 1 |
49
+ | 1.3973 | 0.5439 | 2.4879 | 0.2742 | 2 |
50
+ | 1.3523 | 0.5610 | 2.4525 | 0.2944 | 3 |
51
+ | 1.3322 | 0.5469 | 2.5269 | 0.2944 | 4 |
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - Transformers 4.27.4
57
+ - TensorFlow 2.5.0
58
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20"
33
+ },
34
+ "initializer_range": 0.02,
35
+ "label2id": {
36
+ "LABEL_0": 0,
37
+ "LABEL_1": 1,
38
+ "LABEL_10": 10,
39
+ "LABEL_11": 11,
40
+ "LABEL_12": 12,
41
+ "LABEL_13": 13,
42
+ "LABEL_14": 14,
43
+ "LABEL_15": 15,
44
+ "LABEL_16": 16,
45
+ "LABEL_17": 17,
46
+ "LABEL_18": 18,
47
+ "LABEL_19": 19,
48
+ "LABEL_2": 2,
49
+ "LABEL_20": 20,
50
+ "LABEL_3": 3,
51
+ "LABEL_4": 4,
52
+ "LABEL_5": 5,
53
+ "LABEL_6": 6,
54
+ "LABEL_7": 7,
55
+ "LABEL_8": 8,
56
+ "LABEL_9": 9
57
+ },
58
+ "max_position_embeddings": 512,
59
+ "model_type": "distilbert",
60
+ "n_heads": 12,
61
+ "n_layers": 6,
62
+ "pad_token_id": 0,
63
+ "qa_dropout": 0.1,
64
+ "seq_classif_dropout": 0.2,
65
+ "sinusoidal_pos_embds": false,
66
+ "tie_weights_": true,
67
+ "transformers_version": "4.27.4",
68
+ "vocab_size": 30522
69
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3650263c528e74b65819cd0106da1d4dabecee52f333224b935f66aa6e50e633
3
+ size 268010264