AIGym commited on
Commit
b5fdded
1 Parent(s): bc9b7d3

Upload 14 files

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - wikitext
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: test-plm
10
+ results:
11
+ - task:
12
+ name: Causal Language Modeling
13
+ type: text-generation
14
+ dataset:
15
+ name: wikitext wikitext-2-raw-v1
16
+ type: wikitext
17
+ args: wikitext-2-raw-v1
18
+ metrics:
19
+ - name: Accuracy
20
+ type: accuracy
21
+ value: 0.2304371642779472
22
+ ---
23
+
24
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
25
+ should probably proofread and complete it, then remove this comment. -->
26
+
27
+ # test-plm
28
+
29
+ This model is a fine-tuned version of [](https://huggingface.co/) on the wikitext wikitext-2-raw-v1 dataset.
30
+ It achieves the following results on the evaluation set:
31
+ - Loss: 5.6030
32
+ - Accuracy: 0.2304
33
+
34
+ ## Model description
35
+
36
+ More information needed
37
+
38
+ ## Intended uses & limitations
39
+
40
+ More information needed
41
+
42
+ ## Training and evaluation data
43
+
44
+ More information needed
45
+
46
+ ## Training procedure
47
+
48
+ ### Training hyperparameters
49
+
50
+ The following hyperparameters were used during training:
51
+ - learning_rate: 5e-05
52
+ - train_batch_size: 16
53
+ - eval_batch_size: 16
54
+ - seed: 42
55
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
56
+ - lr_scheduler_type: linear
57
+ - num_epochs: 3.0
58
+
59
+ ### Training results
60
+
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.42.0.dev0
66
+ - Pytorch 2.3.1+cu121
67
+ - Datasets 2.20.0
68
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.2304371642779472,
4
+ "eval_loss": 5.603015422821045,
5
+ "eval_runtime": 359.2844,
6
+ "eval_samples": 2422,
7
+ "eval_samples_per_second": 6.741,
8
+ "eval_steps_per_second": 0.423,
9
+ "perplexity": 271.2430880864446,
10
+ "total_flos": 2.60103732553728e+16,
11
+ "train_loss": 5.880197445605802,
12
+ "train_runtime": 24831.4743,
13
+ "train_samples": 23431,
14
+ "train_samples_per_second": 2.831,
15
+ "train_steps_per_second": 0.177
16
+ }
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_function": "gelu_new",
3
+ "architectures": [
4
+ "GPT2LMHeadModel"
5
+ ],
6
+ "attn_pdrop": 0.1,
7
+ "bos_token_id": 50256,
8
+ "embd_pdrop": 0.1,
9
+ "eos_token_id": 50256,
10
+ "initializer_range": 0.02,
11
+ "layer_norm_epsilon": 1e-05,
12
+ "model_type": "gpt2",
13
+ "n_embd": 1024,
14
+ "n_head": 16,
15
+ "n_inner": null,
16
+ "n_layer": 48,
17
+ "n_positions": 102,
18
+ "reorder_and_upcast_attn": false,
19
+ "resid_pdrop": 0.1,
20
+ "scale_attn_by_inverse_layer_idx": false,
21
+ "scale_attn_weights": true,
22
+ "summary_activation": null,
23
+ "summary_first_dropout": 0.1,
24
+ "summary_proj_to_labels": true,
25
+ "summary_type": "cls_index",
26
+ "summary_use_proj": true,
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.42.0.dev0",
29
+ "use_cache": true,
30
+ "vocab_size": 50257
31
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.2304371642779472,
4
+ "eval_loss": 5.603015422821045,
5
+ "eval_runtime": 359.2844,
6
+ "eval_samples": 2422,
7
+ "eval_samples_per_second": 6.741,
8
+ "eval_steps_per_second": 0.423,
9
+ "perplexity": 271.2430880864446
10
+ }
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.42.0.dev0"
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:49bd12f93bfe857e2eba635c6ad6d322b6874d52dc4425970703a846583960f8
3
+ size 2624814304
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "unk_token": "<|endoftext|>"
5
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "clean_up_tokenization_spaces": true,
15
+ "eos_token": "<|endoftext|>",
16
+ "model_max_length": 1024,
17
+ "tokenizer_class": "GPT2Tokenizer",
18
+ "unk_token": "<|endoftext|>"
19
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 2.60103732553728e+16,
4
+ "train_loss": 5.880197445605802,
5
+ "train_runtime": 24831.4743,
6
+ "train_samples": 23431,
7
+ "train_samples_per_second": 2.831,
8
+ "train_steps_per_second": 0.177
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4395,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.3412969283276451,
13
+ "grad_norm": 1.9755513668060303,
14
+ "learning_rate": 4.431171786120592e-05,
15
+ "loss": 7.0043,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.6825938566552902,
20
+ "grad_norm": 2.0670814514160156,
21
+ "learning_rate": 3.862343572241183e-05,
22
+ "loss": 6.3637,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.023890784982935,
27
+ "grad_norm": 1.9433873891830444,
28
+ "learning_rate": 3.293515358361775e-05,
29
+ "loss": 6.1006,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 1.36518771331058,
34
+ "grad_norm": 2.0810210704803467,
35
+ "learning_rate": 2.7246871444823664e-05,
36
+ "loss": 5.8529,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 1.7064846416382253,
41
+ "grad_norm": 2.127770185470581,
42
+ "learning_rate": 2.1558589306029582e-05,
43
+ "loss": 5.7272,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 2.04778156996587,
48
+ "grad_norm": 2.3847897052764893,
49
+ "learning_rate": 1.5870307167235497e-05,
50
+ "loss": 5.5975,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 2.3890784982935154,
55
+ "grad_norm": 2.466097354888916,
56
+ "learning_rate": 1.0182025028441412e-05,
57
+ "loss": 5.4416,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 2.73037542662116,
62
+ "grad_norm": 2.4412147998809814,
63
+ "learning_rate": 4.493742889647327e-06,
64
+ "loss": 5.3805,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 3.0,
69
+ "step": 4395,
70
+ "total_flos": 2.60103732553728e+16,
71
+ "train_loss": 5.880197445605802,
72
+ "train_runtime": 24831.4743,
73
+ "train_samples_per_second": 2.831,
74
+ "train_steps_per_second": 0.177
75
+ }
76
+ ],
77
+ "logging_steps": 500,
78
+ "max_steps": 4395,
79
+ "num_input_tokens_seen": 0,
80
+ "num_train_epochs": 3,
81
+ "save_steps": 500,
82
+ "stateful_callbacks": {
83
+ "TrainerControl": {
84
+ "args": {
85
+ "should_epoch_stop": false,
86
+ "should_evaluate": false,
87
+ "should_log": false,
88
+ "should_save": true,
89
+ "should_training_stop": true
90
+ },
91
+ "attributes": {}
92
+ }
93
+ },
94
+ "total_flos": 2.60103732553728e+16,
95
+ "train_batch_size": 16,
96
+ "trial_name": null,
97
+ "trial_params": null
98
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5259cd8ca30efb60912b86cc9ca7a8404f033aac6987e38fbe2f7f1b5cb7d40
3
+ size 5112
vocab.json ADDED
The diff for this file is too large to render. See raw diff