kasrahabib commited on
Commit
338204e
1 Parent(s): eb20a88

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: openai-community/gpt2
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: kasrahabib/gpt2-finetuned-iso29148-req-detector
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
+ # kasrahabib/gpt2-finetuned-iso29148-req-detector
15
+
16
+ This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.1004
19
+ - Validation Loss: 0.5468
20
+ - Epoch: 29
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - 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': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 3570, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
40
+ - training_precision: float32
41
+
42
+ ### Training results
43
+
44
+ | Train Loss | Validation Loss | Epoch |
45
+ |:----------:|:---------------:|:-----:|
46
+ | 3.0225 | 2.8144 | 0 |
47
+ | 2.7666 | 2.7501 | 1 |
48
+ | 2.6971 | 2.6517 | 2 |
49
+ | 2.6218 | 2.4804 | 3 |
50
+ | 2.3698 | 2.0353 | 4 |
51
+ | 1.8887 | 1.4317 | 5 |
52
+ | 1.1104 | 0.8991 | 6 |
53
+ | 0.7810 | 0.8057 | 7 |
54
+ | 0.6463 | 0.6800 | 8 |
55
+ | 0.5507 | 0.6747 | 9 |
56
+ | 0.4679 | 0.6156 | 10 |
57
+ | 0.4313 | 0.6102 | 11 |
58
+ | 0.3696 | 0.5972 | 12 |
59
+ | 0.3365 | 0.5437 | 13 |
60
+ | 0.2866 | 0.5637 | 14 |
61
+ | 0.2492 | 0.5682 | 15 |
62
+ | 0.2392 | 0.5496 | 16 |
63
+ | 0.2029 | 0.6076 | 17 |
64
+ | 0.2062 | 0.5368 | 18 |
65
+ | 0.1898 | 0.5434 | 19 |
66
+ | 0.1670 | 0.5434 | 20 |
67
+ | 0.1682 | 0.5403 | 21 |
68
+ | 0.1650 | 0.5830 | 22 |
69
+ | 0.1326 | 0.5400 | 23 |
70
+ | 0.1366 | 0.5497 | 24 |
71
+ | 0.1148 | 0.5432 | 25 |
72
+ | 0.1263 | 0.5662 | 26 |
73
+ | 0.1171 | 0.5591 | 27 |
74
+ | 0.1075 | 0.5445 | 28 |
75
+ | 0.1004 | 0.5468 | 29 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.40.1
81
+ - TensorFlow 2.15.0
82
+ - Datasets 2.19.1
83
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai-community/gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2ForSequenceClassification"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "id2label": {
12
+ "0": "may_signal_keyword_general_text",
13
+ "1": "may_signal_keyword_requirement",
14
+ "2": "may_signal_keyword_srs_text",
15
+ "3": "must_signal_keyword_general_text",
16
+ "4": "must_signal_keyword_requirement",
17
+ "5": "must_signal_keyword_srs_text",
18
+ "6": "no_signal_keyword_general_text",
19
+ "7": "no_signal_keyword_srs_text",
20
+ "8": "shall_signal_keyword_general_text",
21
+ "9": "shall_signal_keyword_requirement",
22
+ "10": "shall_signal_keyword_srs_text",
23
+ "11": "should_signal_keyword_general_text",
24
+ "12": "should_signal_keyword_requirement",
25
+ "13": "should_signal_keyword_srs_text",
26
+ "14": "will_signal_keyword_general_text",
27
+ "15": "will_signal_keyword_requirement",
28
+ "16": "will_signal_keyword_srs_text"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "label2id": {
32
+ "may_signal_keyword_general_text": 0,
33
+ "may_signal_keyword_requirement": 1,
34
+ "may_signal_keyword_srs_text": 2,
35
+ "must_signal_keyword_general_text": 3,
36
+ "must_signal_keyword_requirement": 4,
37
+ "must_signal_keyword_srs_text": 5,
38
+ "no_signal_keyword_general_text": 6,
39
+ "no_signal_keyword_srs_text": 7,
40
+ "shall_signal_keyword_general_text": 8,
41
+ "shall_signal_keyword_requirement": 9,
42
+ "shall_signal_keyword_srs_text": 10,
43
+ "should_signal_keyword_general_text": 11,
44
+ "should_signal_keyword_requirement": 12,
45
+ "should_signal_keyword_srs_text": 13,
46
+ "will_signal_keyword_general_text": 14,
47
+ "will_signal_keyword_requirement": 15,
48
+ "will_signal_keyword_srs_text": 16
49
+ },
50
+ "layer_norm_epsilon": 1e-05,
51
+ "model_type": "gpt2",
52
+ "n_ctx": 1024,
53
+ "n_embd": 768,
54
+ "n_head": 12,
55
+ "n_inner": null,
56
+ "n_layer": 12,
57
+ "n_positions": 1024,
58
+ "pad_token_id": 50256,
59
+ "reorder_and_upcast_attn": false,
60
+ "resid_pdrop": 0.1,
61
+ "scale_attn_by_inverse_layer_idx": false,
62
+ "scale_attn_weights": true,
63
+ "summary_activation": null,
64
+ "summary_first_dropout": 0.1,
65
+ "summary_proj_to_labels": true,
66
+ "summary_type": "cls_index",
67
+ "summary_use_proj": true,
68
+ "task_specific_params": {
69
+ "text-generation": {
70
+ "do_sample": true,
71
+ "max_length": 50
72
+ }
73
+ },
74
+ "transformers_version": "4.40.1",
75
+ "use_cache": true,
76
+ "vocab_size": 50257
77
+ }
logs/train/events.out.tfevents.1715264632.iste.735681.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c437776db51741285f427ca952ac3ed3accc3375cb78cbd4ae05a90a43516728
3
+ size 78
logs/train/events.out.tfevents.1715264715.iste.740663.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69b31c654cbb678df8a428286b62fb3db471a0b31997057ce8bd08581cadfb0e
3
+ size 78
logs/train/events.out.tfevents.1715264960.iste.740663.1.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:055ee6ca1c4a560966022bfda107a3022841507805b93c8bb6cb6002509c0ea8
3
+ size 78
logs/train/events.out.tfevents.1715265195.iste.740663.2.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0589403f4d259eca78a9e29861907a0c5a4ef972a13709a29d0d997d55adaac4
3
+ size 78
logs/train/events.out.tfevents.1715265874.iste.746549.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e952971e19e9b1523d9aee4dda8ed08b4710debd41a29527d9145d0b453a6731
3
+ size 78
logs/train/events.out.tfevents.1715265886.iste.746549.1.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10115068f6a645dfb825e1e69f27ee92437c20fa791067ee5474697f6345ec3c
3
+ size 78
logs/train/events.out.tfevents.1715266154.iste.746549.2.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77a37da4b206f8cd6510b1b23f2adffee15ec497dbe3f23bd353cb6af3d9fc58
3
+ size 78
logs/train/events.out.tfevents.1715266268.iste.746549.3.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfc084f2551a8944dc68efdbe467cd5407268e65212529d6c86eb27c89244e53
3
+ size 78
logs/train/events.out.tfevents.1715266585.iste.746549.4.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a922a7777e81ab3fce4e1f85f9a313dba89447263c312ac1129606b37238694
3
+ size 78
logs/train/events.out.tfevents.1715266792.iste.747601.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:920eea06c7511697c9518c38702f069ccae869113d0dfe3e68bcc642a8ff0111
3
+ size 78
logs/train/events.out.tfevents.1715266929.iste.748139.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba0f234dd49ecd467261b507a8e0f7590245d7f3a01163357f09405a33a9779d
3
+ size 78
logs/train/events.out.tfevents.1715267006.iste.748518.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84901a1c4eddad101e707364e60f7e5370b4c3ec629180e957ba1d92a6a19e7b
3
+ size 2150825
logs/validation/events.out.tfevents.1715267040.iste.748518.1.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2d0c31c9b591efb5184eefa7b4a203ea6f20ed3519546bf53778910dd453c47
3
+ size 4755
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ab7cc49e98dda84bfeabe4fcfd38e07f3e6d2786672098974ffa5c46ee51b45
3
+ size 497999344
tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "50256": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ }
13
+ },
14
+ "bos_token": "<|endoftext|>",
15
+ "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
+ "errors": "replace",
18
+ "model_max_length": 1024,
19
+ "pad_token": "<|endoftext|>",
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "unk_token": "<|endoftext|>"
22
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff