Rsr2425 commited on
Commit
9570311
·
verified ·
1 Parent(s): bc273b3

Rsr2425/Transformers-Workshop-GPT-Generation

Browse files
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: gpt2
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: lyric-gpt
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # lyric-gpt
16
+
17
+ This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 5.4268
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
+ - learning_rate: 0.0001
39
+ - train_batch_size: 8
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 30
45
+
46
+ ### Training results
47
+
48
+ | Training Loss | Epoch | Step | Validation Loss |
49
+ |:-------------:|:-----:|:----:|:---------------:|
50
+ | 3.4133 | 1.0 | 92 | 3.1858 |
51
+ | 2.8751 | 2.0 | 184 | 3.2040 |
52
+ | 2.9241 | 3.0 | 276 | 3.2442 |
53
+ | 2.8796 | 4.0 | 368 | 3.2893 |
54
+ | 2.5508 | 5.0 | 460 | 3.3988 |
55
+ | 2.3505 | 6.0 | 552 | 3.4852 |
56
+ | 2.1709 | 7.0 | 644 | 3.5973 |
57
+ | 1.9833 | 8.0 | 736 | 3.7801 |
58
+ | 1.9428 | 9.0 | 828 | 3.8925 |
59
+ | 1.6357 | 10.0 | 920 | 4.0321 |
60
+ | 1.6304 | 11.0 | 1012 | 4.1989 |
61
+ | 1.5399 | 12.0 | 1104 | 4.3302 |
62
+ | 1.3642 | 13.0 | 1196 | 4.4324 |
63
+ | 1.2646 | 14.0 | 1288 | 4.5765 |
64
+ | 1.0898 | 15.0 | 1380 | 4.7299 |
65
+ | 1.0398 | 16.0 | 1472 | 4.7749 |
66
+ | 0.945 | 17.0 | 1564 | 4.8901 |
67
+ | 0.8175 | 18.0 | 1656 | 4.9615 |
68
+ | 0.8893 | 19.0 | 1748 | 5.0045 |
69
+ | 0.8573 | 20.0 | 1840 | 5.1104 |
70
+ | 0.7946 | 21.0 | 1932 | 5.1732 |
71
+ | 0.713 | 22.0 | 2024 | 5.2327 |
72
+ | 0.7842 | 23.0 | 2116 | 5.2922 |
73
+ | 0.6976 | 24.0 | 2208 | 5.2967 |
74
+ | 0.6625 | 25.0 | 2300 | 5.3163 |
75
+ | 0.6503 | 26.0 | 2392 | 5.3695 |
76
+ | 0.5927 | 27.0 | 2484 | 5.3891 |
77
+ | 0.6025 | 28.0 | 2576 | 5.4029 |
78
+ | 0.6163 | 29.0 | 2668 | 5.4203 |
79
+ | 0.5178 | 30.0 | 2760 | 5.4268 |
80
+
81
+
82
+ ### Framework versions
83
+
84
+ - Transformers 4.47.1
85
+ - Pytorch 2.5.1+cu121
86
+ - Datasets 3.2.0
87
+ - Tokenizers 0.21.0
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[PAD]": 50257
3
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 200,
33
+ "min_length": 100,
34
+ "temperature": 1.0,
35
+ "top_p": 0.95
36
+ }
37
+ },
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.47.1",
40
+ "use_cache": true,
41
+ "vocab_size": 50257
42
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.47.1"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40739bd9bcb6ae8410b0c66dd4343a399ea95d887d61704c9a092b4073fca8f9
3
+ size 497774208
runs/Dec30_15-22-21_acb197b2c9fb/events.out.tfevents.1735572155.acb197b2c9fb.539.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b335d07770b0d9ce1e7c27f26eff8615eeee738a7b656130bf8ddf6785fddbec
3
+ size 130209
special_tokens_map.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": {
5
+ "content": "[PAD]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "unk_token": "<|endoftext|>"
12
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "50257": {
13
+ "content": "[PAD]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ }
20
+ },
21
+ "bos_token": "<|endoftext|>",
22
+ "clean_up_tokenization_spaces": false,
23
+ "eos_token": "<|endoftext|>",
24
+ "extra_special_tokens": {},
25
+ "model_max_length": 1024,
26
+ "pad_token": "[PAD]",
27
+ "tokenizer_class": "GPT2Tokenizer",
28
+ "unk_token": "<|endoftext|>"
29
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18215b5094e7a88a4d5924ceb71c5a4c14b5bfba010661c8229643e97f090b00
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff