RaushanTurganbay HF staff commited on
Commit
7d3e531
·
1 Parent(s): de321c0

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "RaushanTurganbay/GPT2_instruct_tuned",
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": 1024,
16
+ "n_head": 16,
17
+ "n_inner": null,
18
+ "n_layer": 24,
19
+ "n_positions": 1024,
20
+ "n_special": 0,
21
+ "predict_special_tokens": true,
22
+ "reorder_and_upcast_attn": false,
23
+ "resid_pdrop": 0.1,
24
+ "scale_attn_by_inverse_layer_idx": false,
25
+ "scale_attn_weights": true,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
31
+ "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 50
35
+ }
36
+ },
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.35.0",
39
+ "use_cache": true,
40
+ "vocab_size": 50257
41
+ }
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.35.0"
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:03235fd0269488d8cd4423104f33e686aecfedfe3dc149af35efa6e5ce3b5ac4
3
+ size 1419322880
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0bcbaddedc7d0475f605f7565eec44f000ebcc1c1b1315bd62a8bd69d20dbee
3
+ size 1814002618
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85ad2cbc3c7a0fefa416ca212a3ca0c765342dd508d3b01b19c9bdea93628432
3
+ size 14768
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9903702cd62a564aeefa5a7e25e7880f9da928b6f8206920658a1bffb56fd4d
3
+ size 14768
rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8e2a0709246422023102bef738c8b868479d2bb14ff3437e9da4185d107bb40
3
+ size 14768
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e6e9380fd9d2b73c11381e0b5d08d710643424b0797ec19d68db1b4c85b288d
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "<|endoftext|>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 750,
17
+ "model_max_length": 1024,
18
+ "pad_token": "<|endoftext|>",
19
+ "stride": 0,
20
+ "tokenizer_class": "GPT2Tokenizer",
21
+ "truncation_side": "right",
22
+ "truncation_strategy": "longest_first",
23
+ "unk_token": "<|endoftext|>"
24
+ }
trainer_state.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.6019110676397562,
5
+ "eval_steps": 500,
6
+ "global_step": 1000,
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.12,
13
+ "learning_rate": 8.000000000000001e-06,
14
+ "logits/chosen": -58.747344970703125,
15
+ "logits/rejected": -59.84019470214844,
16
+ "logps/chosen": -150.3143768310547,
17
+ "logps/rejected": -179.38966369628906,
18
+ "loss": 0.5314,
19
+ "rewards/accuracies": 0.7318750023841858,
20
+ "rewards/chosen": -0.8851571679115295,
21
+ "rewards/margins": 0.6559739708900452,
22
+ "rewards/rejected": -1.5411310195922852,
23
+ "step": 200
24
+ },
25
+ {
26
+ "epoch": 0.24,
27
+ "learning_rate": 9.68421052631579e-06,
28
+ "logits/chosen": -64.05355072021484,
29
+ "logits/rejected": -65.13407897949219,
30
+ "logps/chosen": -155.71795654296875,
31
+ "logps/rejected": -190.02166748046875,
32
+ "loss": 0.4485,
33
+ "rewards/accuracies": 0.7715625166893005,
34
+ "rewards/chosen": -1.3824467658996582,
35
+ "rewards/margins": 1.1924123764038086,
36
+ "rewards/rejected": -2.5748589038848877,
37
+ "step": 400
38
+ },
39
+ {
40
+ "epoch": 0.36,
41
+ "learning_rate": 9.263157894736842e-06,
42
+ "logits/chosen": -64.59612274169922,
43
+ "logits/rejected": -65.59567260742188,
44
+ "logps/chosen": -158.51266479492188,
45
+ "logps/rejected": -191.44497680664062,
46
+ "loss": 0.4208,
47
+ "rewards/accuracies": 0.7871875166893005,
48
+ "rewards/chosen": -1.4413859844207764,
49
+ "rewards/margins": 1.3812304735183716,
50
+ "rewards/rejected": -2.8226163387298584,
51
+ "step": 600
52
+ },
53
+ {
54
+ "epoch": 0.48,
55
+ "learning_rate": 8.842105263157895e-06,
56
+ "logits/chosen": -65.70255279541016,
57
+ "logits/rejected": -66.5833969116211,
58
+ "logps/chosen": -156.6477508544922,
59
+ "logps/rejected": -195.2394561767578,
60
+ "loss": 0.4062,
61
+ "rewards/accuracies": 0.7973437309265137,
62
+ "rewards/chosen": -1.4948838949203491,
63
+ "rewards/margins": 1.513500690460205,
64
+ "rewards/rejected": -3.0083847045898438,
65
+ "step": 800
66
+ },
67
+ {
68
+ "epoch": 0.6,
69
+ "learning_rate": 8.421052631578948e-06,
70
+ "logits/chosen": -65.27395629882812,
71
+ "logits/rejected": -66.06521606445312,
72
+ "logps/chosen": -156.45945739746094,
73
+ "logps/rejected": -196.63790893554688,
74
+ "loss": 0.3898,
75
+ "rewards/accuracies": 0.7978125214576721,
76
+ "rewards/chosen": -1.6718982458114624,
77
+ "rewards/margins": 1.6537814140319824,
78
+ "rewards/rejected": -3.3256795406341553,
79
+ "step": 1000
80
+ }
81
+ ],
82
+ "logging_steps": 200,
83
+ "max_steps": 5000,
84
+ "num_train_epochs": 4,
85
+ "save_steps": 500,
86
+ "total_flos": 0.0,
87
+ "trial_name": null,
88
+ "trial_params": null
89
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7e1e66a5fc1e5e94ca641507f4b9c8653beee72fb1693755e34b6c8669c1633
3
+ size 4536
vocab.json ADDED
The diff for this file is too large to render. See raw diff