helling100 commited on
Commit
8c21ff7
·
1 Parent(s): 5134751

Upload TFDistilBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +68 -0
  2. config.json +30 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: Regression_bert_10
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
+ # Regression_bert_10
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.0535
18
+ - Train Mae: 0.2673
19
+ - Train Mse: 0.1031
20
+ - Train R2-score: 0.6896
21
+ - Validation Loss: 0.1142
22
+ - Validation Mae: 0.3549
23
+ - Validation Mse: 0.1957
24
+ - Validation R2-score: 0.9230
25
+ - Epoch: 9
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 1e-04, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
45
+ - training_precision: float32
46
+
47
+ ### Training results
48
+
49
+ | Train Loss | Train Mae | Train Mse | Train R2-score | Validation Loss | Validation Mae | Validation Mse | Validation R2-score | Epoch |
50
+ |:----------:|:---------:|:---------:|:--------------:|:---------------:|:--------------:|:--------------:|:-------------------:|:-----:|
51
+ | 0.2988 | 0.4759 | 0.3361 | 0.6079 | 0.1967 | 0.3939 | 0.2542 | 0.9026 | 0 |
52
+ | 0.1715 | 0.4010 | 0.2357 | 0.6812 | 0.1680 | 0.4014 | 0.2478 | 0.9049 | 1 |
53
+ | 0.0903 | 0.3374 | 0.1532 | 0.8384 | 0.1354 | 0.3432 | 0.1971 | 0.9210 | 2 |
54
+ | 0.0636 | 0.3139 | 0.1272 | 0.4117 | 0.1538 | 0.4066 | 0.2304 | 0.9034 | 3 |
55
+ | 0.0746 | 0.3142 | 0.1294 | 0.9220 | 0.1184 | 0.3589 | 0.2015 | 0.9224 | 4 |
56
+ | 0.0604 | 0.2837 | 0.1119 | 0.9439 | 0.1268 | 0.3450 | 0.1994 | 0.9209 | 5 |
57
+ | 0.0556 | 0.2660 | 0.1049 | 0.6002 | 0.1193 | 0.3037 | 0.1704 | 0.9265 | 6 |
58
+ | 0.0541 | 0.2581 | 0.1007 | 0.8081 | 0.1125 | 0.3350 | 0.1743 | 0.9229 | 7 |
59
+ | 0.0532 | 0.2679 | 0.1044 | 0.8917 | 0.1109 | 0.3131 | 0.1757 | 0.9311 | 8 |
60
+ | 0.0535 | 0.2673 | 0.1031 | 0.6896 | 0.1142 | 0.3549 | 0.1957 | 0.9230 | 9 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.27.4
66
+ - TensorFlow 2.12.0
67
+ - Datasets 2.11.0
68
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
14
+ "initializer_range": 0.02,
15
+ "label2id": {
16
+ "LABEL_0": 0
17
+ },
18
+ "max_position_embeddings": 512,
19
+ "model_type": "distilbert",
20
+ "n_heads": 12,
21
+ "n_layers": 6,
22
+ "pad_token_id": 0,
23
+ "problem_type": "regression",
24
+ "qa_dropout": 0.1,
25
+ "seq_classif_dropout": 0.2,
26
+ "sinusoidal_pos_embds": false,
27
+ "tie_weights_": true,
28
+ "transformers_version": "4.27.4",
29
+ "vocab_size": 30522
30
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab8b0c5ef7767beadbb5bfe7350db1dd91ea125f9ab621787415b1e0a167d76
3
+ size 267948736