WaRKiD commited on
Commit
f5216b8
1 Parent(s): e5937cc

Upload TFDistilBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +55 -0
  2. config.json +33 -0
  3. tf_model.h5 +3 -0
README.md CHANGED
@@ -1,3 +1,58 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ base_model: distilbert-base-uncased-finetuned-sst-2-english
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: distilbert-base-uncased-finetuned-intel-llm-tf-dataset
8
+ results: []
9
  ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # distilbert-base-uncased-finetuned-intel-llm-tf-dataset
15
+
16
+ This model is a fine-tuned version of [distilbert-base-uncased-finetuned-sst-2-english](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.5438
19
+ - Train Accuracy: 0.7955
20
+ - Validation Loss: 1.7204
21
+ - Validation Accuracy: 0.4167
22
+ - Epoch: 2
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - 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': False, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 1e-05, 'decay_steps': 132, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
42
+ - training_precision: float32
43
+
44
+ ### Training results
45
+
46
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
47
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
48
+ | 1.4394 | 0.6364 | 2.2391 | 0.4167 | 0 |
49
+ | 0.7689 | 0.75 | 1.7260 | 0.4167 | 1 |
50
+ | 0.5438 | 0.7955 | 1.7204 | 0.4167 | 2 |
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - Transformers 4.34.0
56
+ - TensorFlow 2.12.0
57
+ - Datasets 2.14.5
58
+ - Tokenizers 0.14.0
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased-finetuned-sst-2-english",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "finetuning_task": "sst-2",
11
+ "hidden_dim": 3072,
12
+ "id2label": {
13
+ "0": "false",
14
+ "1": "true"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "label2id": {
18
+ "false": 0,
19
+ "true": 1
20
+ },
21
+ "max_position_embeddings": 512,
22
+ "model_type": "distilbert",
23
+ "n_heads": 12,
24
+ "n_layers": 6,
25
+ "output_past": true,
26
+ "pad_token_id": 0,
27
+ "qa_dropout": 0.1,
28
+ "seq_classif_dropout": 0.2,
29
+ "sinusoidal_pos_embds": false,
30
+ "tie_weights_": true,
31
+ "transformers_version": "4.34.0",
32
+ "vocab_size": 30522
33
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d587ea94afc043cf4f4920b5fd06184b54b103ef27e486ca622172fc1083989
3
+ size 267951808