raygx commited on
Commit
a945e5c
1 Parent(s): 1c2c10e

Upload TFGPT2ForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +56 -0
  2. config.json +49 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: GNePT-NepSA
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
+ # GNePT-NepSA
14
+
15
+ This model is a fine-tuned version of [raygx/GNePT](https://huggingface.co/raygx/GNePT) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.5905
18
+ - Validation Loss: 0.6977
19
+ - Epoch: 3
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 6.99e-06, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.001}
39
+ - training_precision: float32
40
+
41
+ ### Training results
42
+
43
+ | Train Loss | Validation Loss | Epoch |
44
+ |:----------:|:---------------:|:-----:|
45
+ | 0.9549 | 0.7891 | 0 |
46
+ | 0.7454 | 0.6990 | 1 |
47
+ | 0.6544 | 0.6724 | 2 |
48
+ | 0.5905 | 0.6977 | 3 |
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.28.1
54
+ - TensorFlow 2.11.0
55
+ - Datasets 2.1.0
56
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "raygx/GNePT",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2ForSequenceClassification"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": null,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": null,
11
+ "id2label": {
12
+ "0": "NEUTRAL",
13
+ "1": "POSITIVE",
14
+ "2": "NEGATIVE"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "label2id": {
18
+ "NEGATIVE": 2,
19
+ "NEUTRAL": 0,
20
+ "POSITIVE": 1
21
+ },
22
+ "layer_norm_epsilon": 1e-05,
23
+ "model_type": "gpt2",
24
+ "n_ctx": 1024,
25
+ "n_embd": 768,
26
+ "n_head": 12,
27
+ "n_inner": null,
28
+ "n_layer": 12,
29
+ "n_positions": 1024,
30
+ "pad_token_id": 3,
31
+ "reorder_and_upcast_attn": false,
32
+ "resid_pdrop": 0.1,
33
+ "scale_attn_by_inverse_layer_idx": false,
34
+ "scale_attn_weights": true,
35
+ "summary_activation": null,
36
+ "summary_first_dropout": 0.1,
37
+ "summary_proj_to_labels": true,
38
+ "summary_type": "cls_index",
39
+ "summary_use_proj": true,
40
+ "task_specific_params": {
41
+ "text-generation": {
42
+ "do_sample": true,
43
+ "max_length": 50
44
+ }
45
+ },
46
+ "transformers_version": "4.28.1",
47
+ "use_cache": true,
48
+ "vocab_size": 50000
49
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c8e4595ef305a9765546d2c7e5bff639cafcdf7aa020f5d5a77d3497d966f03
3
+ size 497166832