ale-bay commited on
Commit
15908bf
1 Parent(s): 88a337e

Model save

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ base_model: ale-bay/zephyr-2b-gemma-sft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: zephyr-2b-gemma-sft-dpo
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://zebra.wandb.io/cto/distillm/runs/shrbgd04)
17
+ # zephyr-2b-gemma-sft-dpo
18
+
19
+ This model is a fine-tuned version of [ale-bay/zephyr-2b-gemma-sft](https://huggingface.co/ale-bay/zephyr-2b-gemma-sft) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5960
22
+ - Rewards/chosen: 0.2261
23
+ - Rewards/rejected: -0.0336
24
+ - Rewards/accuracies: 0.7188
25
+ - Rewards/margins: 0.2597
26
+ - Logps/rejected: -363.7130
27
+ - Logps/chosen: -363.7419
28
+ - Logits/rejected: -15.9487
29
+ - Logits/chosen: -16.5860
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 5e-07
49
+ - train_batch_size: 2
50
+ - eval_batch_size: 4
51
+ - seed: 42
52
+ - distributed_type: multi-GPU
53
+ - num_devices: 8
54
+ - gradient_accumulation_steps: 8
55
+ - total_train_batch_size: 128
56
+ - total_eval_batch_size: 32
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: cosine
59
+ - lr_scheduler_warmup_ratio: 0.1
60
+ - num_epochs: 2
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
65
+ |:-------------:|:------:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
66
+ | 0.5725 | 1.8957 | 100 | 0.5960 | 0.2261 | -0.0336 | 0.7188 | 0.2597 | -363.7130 | -363.7419 | -15.9487 | -16.5860 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.42.3
72
+ - Pytorch 2.3.1+cu121
73
+ - Datasets 2.20.0
74
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.971563981042654,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.6262502945386447,
5
+ "train_runtime": 431.1142,
6
+ "train_samples": 6750,
7
+ "train_samples_per_second": 31.314,
8
+ "train_steps_per_second": 0.241
9
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ale-bay/zephyr-2b-gemma-sft",
3
+ "architectures": [
4
+ "GemmaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 2,
9
+ "eos_token_id": 1,
10
+ "head_dim": 256,
11
+ "hidden_act": "gelu",
12
+ "hidden_activation": "gelu_pytorch_tanh",
13
+ "hidden_size": 2048,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 16384,
16
+ "max_position_embeddings": 8192,
17
+ "model_type": "gemma",
18
+ "num_attention_heads": 8,
19
+ "num_hidden_layers": 18,
20
+ "num_key_value_heads": 1,
21
+ "pad_token_id": 0,
22
+ "rms_norm_eps": 1e-06,
23
+ "rope_scaling": null,
24
+ "rope_theta": 10000.0,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.42.3",
27
+ "use_cache": false,
28
+ "vocab_size": 256000
29
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.42.3"
7
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa1f7ad0d0f67af664b6c1a4477e54136e77255515bd56810e71495f81f65b74
3
+ size 4945242264
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b32ba20df4448d5300dc31b9e9d0018800c90af7305d23b80270f40b1968192e
3
+ size 67121608
model.safetensors.index.json ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 5012344832
4
+ },
5
+ "weight_map": {
6
+ "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
7
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
8
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
9
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
10
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
11
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
12
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
13
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
14
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
15
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
16
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
17
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
18
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
20
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
21
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
22
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
23
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
24
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
25
+ "model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
26
+ "model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
27
+ "model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
28
+ "model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
29
+ "model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
30
+ "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
31
+ "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
32
+ "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
35
+ "model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
36
+ "model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
37
+ "model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
39
+ "model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
40
+ "model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
41
+ "model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
42
+ "model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
43
+ "model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
44
+ "model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
45
+ "model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
48
+ "model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
49
+ "model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
50
+ "model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
51
+ "model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
53
+ "model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
55
+ "model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
56
+ "model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
57
+ "model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
58
+ "model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
59
+ "model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
60
+ "model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
61
+ "model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
62
+ "model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
63
+ "model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
64
+ "model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
65
+ "model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
66
+ "model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
67
+ "model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
68
+ "model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
69
+ "model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
71
+ "model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
72
+ "model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
73
+ "model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
74
+ "model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
75
+ "model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
76
+ "model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
77
+ "model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
78
+ "model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
79
+ "model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
80
+ "model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
81
+ "model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
82
+ "model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
83
+ "model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
84
+ "model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
85
+ "model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.layers.17.input_layernorm.weight": "model-00002-of-00002.safetensors",
89
+ "model.layers.17.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
90
+ "model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
91
+ "model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
92
+ "model.layers.17.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
93
+ "model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
94
+ "model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
95
+ "model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
96
+ "model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
97
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
98
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
99
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
101
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
102
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
103
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
104
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
105
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
106
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
107
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
108
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
109
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
111
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
112
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
113
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
115
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
116
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
117
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
118
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
119
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
120
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
121
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
122
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
123
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
124
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
125
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
126
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
127
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
128
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
129
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
130
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
131
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
132
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
133
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
134
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
135
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
136
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
137
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
138
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
139
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
140
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
141
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
142
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
143
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
144
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
145
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
146
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
147
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
148
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
149
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
150
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
151
+ "model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
152
+ "model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
153
+ "model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
154
+ "model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
155
+ "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
156
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
157
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
158
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
159
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
160
+ "model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
161
+ "model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
162
+ "model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
163
+ "model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
164
+ "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
165
+ "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
166
+ "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
167
+ "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
168
+ "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
169
+ "model.norm.weight": "model-00002-of-00002.safetensors"
170
+ }
171
+ }
runs/Jul11_11-23-58_ale-distillm-8-0-0/events.out.tfevents.1720693710.ale-distillm-8-0-0.3691.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b92b6db5429094f8c03f12f4fb738f52b3d9104895d4dc578a8b2cefa873ce2
3
+ size 13634
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<bos>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<eos>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<pad>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "unk_token": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:322a5f52ab5cab196761ab397a022d6fa3a2e1418585e532bb6efb2fedd2ae94
3
+ size 17477501
tokenizer_config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<pad>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<eos>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<bos>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<unk>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "106": {
38
+ "content": "<|im_start|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "107": {
46
+ "content": "<|im_end|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ }
53
+ },
54
+ "additional_special_tokens": [
55
+ "<|im_start|>",
56
+ "<|im_end|>"
57
+ ],
58
+ "bos_token": "<bos>",
59
+ "chat_template": "{% if messages[0]['role'] == 'user' or messages[0]['role'] == 'system' %}{{ bos_token }}{% endif %}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% elif messages[-1]['role'] == 'assistant' %}{{ eos_token }}{% endif %}",
60
+ "clean_up_tokenization_spaces": false,
61
+ "eos_token": "<eos>",
62
+ "legacy": null,
63
+ "model_max_length": 2048,
64
+ "pad_token": "<pad>",
65
+ "sp_model_kwargs": {},
66
+ "spaces_between_special_tokens": false,
67
+ "tokenizer_class": "GemmaTokenizer",
68
+ "unk_token": "<unk>",
69
+ "use_default_system_prompt": false
70
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.971563981042654,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.6262502945386447,
5
+ "train_runtime": 431.1142,
6
+ "train_samples": 6750,
7
+ "train_samples_per_second": 31.314,
8
+ "train_steps_per_second": 0.241
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.971563981042654,
5
+ "eval_steps": 100,
6
+ "global_step": 104,
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.018957345971563982,
13
+ "grad_norm": 17.039526624858368,
14
+ "learning_rate": 4.545454545454545e-08,
15
+ "logits/chosen": -16.87786293029785,
16
+ "logits/rejected": -17.083940505981445,
17
+ "logps/chosen": -334.51202392578125,
18
+ "logps/rejected": -430.7342224121094,
19
+ "loss": 0.6931,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/chosen": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/rejected": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.1895734597156398,
28
+ "grad_norm": 17.02641660622309,
29
+ "learning_rate": 4.545454545454545e-07,
30
+ "logits/chosen": -17.35299301147461,
31
+ "logits/rejected": -17.494272232055664,
32
+ "logps/chosen": -402.1957702636719,
33
+ "logps/rejected": -436.8443603515625,
34
+ "loss": 0.6942,
35
+ "rewards/accuracies": 0.4444444477558136,
36
+ "rewards/chosen": 0.0008524802979081869,
37
+ "rewards/margins": 0.0015829234616830945,
38
+ "rewards/rejected": -0.000730442872736603,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.3791469194312796,
43
+ "grad_norm": 15.563346495094395,
44
+ "learning_rate": 4.885348141000122e-07,
45
+ "logits/chosen": -16.698389053344727,
46
+ "logits/rejected": -16.837512969970703,
47
+ "logps/chosen": -379.29327392578125,
48
+ "logps/rejected": -413.91607666015625,
49
+ "loss": 0.689,
50
+ "rewards/accuracies": 0.4312500059604645,
51
+ "rewards/chosen": 0.007832124829292297,
52
+ "rewards/margins": -0.00933709554374218,
53
+ "rewards/rejected": 0.017169222235679626,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.5687203791469194,
58
+ "grad_norm": 17.011437827705663,
59
+ "learning_rate": 4.5025027361734613e-07,
60
+ "logits/chosen": -17.711877822875977,
61
+ "logits/rejected": -17.14129638671875,
62
+ "logps/chosen": -398.89691162109375,
63
+ "logps/rejected": -415.79156494140625,
64
+ "loss": 0.6725,
65
+ "rewards/accuracies": 0.606249988079071,
66
+ "rewards/chosen": 0.08761711418628693,
67
+ "rewards/margins": 0.03942377120256424,
68
+ "rewards/rejected": 0.04819334298372269,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.7582938388625592,
73
+ "grad_norm": 14.678769570259123,
74
+ "learning_rate": 3.893311157806091e-07,
75
+ "logits/chosen": -17.091754913330078,
76
+ "logits/rejected": -16.351659774780273,
77
+ "logps/chosen": -358.50946044921875,
78
+ "logps/rejected": -351.41278076171875,
79
+ "loss": 0.6555,
80
+ "rewards/accuracies": 0.65625,
81
+ "rewards/chosen": 0.22874267399311066,
82
+ "rewards/margins": 0.08902247995138168,
83
+ "rewards/rejected": 0.13972017168998718,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 0.9478672985781991,
88
+ "grad_norm": 16.97842458896973,
89
+ "learning_rate": 3.126631330646801e-07,
90
+ "logits/chosen": -18.3736515045166,
91
+ "logits/rejected": -18.453527450561523,
92
+ "logps/chosen": -411.6908264160156,
93
+ "logps/rejected": -464.92529296875,
94
+ "loss": 0.6319,
95
+ "rewards/accuracies": 0.71875,
96
+ "rewards/chosen": 0.4013705253601074,
97
+ "rewards/margins": 0.18392089009284973,
98
+ "rewards/rejected": 0.2174496352672577,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 1.1374407582938388,
103
+ "grad_norm": 14.380477446845697,
104
+ "learning_rate": 2.2891223348923882e-07,
105
+ "logits/chosen": -18.0875301361084,
106
+ "logits/rejected": -17.782365798950195,
107
+ "logps/chosen": -400.21282958984375,
108
+ "logps/rejected": -429.13922119140625,
109
+ "loss": 0.6034,
110
+ "rewards/accuracies": 0.75,
111
+ "rewards/chosen": 0.38667935132980347,
112
+ "rewards/margins": 0.23242299258708954,
113
+ "rewards/rejected": 0.15425635874271393,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 1.3270142180094786,
118
+ "grad_norm": 13.517572081923934,
119
+ "learning_rate": 1.4754491880085317e-07,
120
+ "logits/chosen": -17.54964828491211,
121
+ "logits/rejected": -17.380077362060547,
122
+ "logps/chosen": -369.05426025390625,
123
+ "logps/rejected": -405.892578125,
124
+ "loss": 0.5985,
125
+ "rewards/accuracies": 0.6937500238418579,
126
+ "rewards/chosen": 0.3417219817638397,
127
+ "rewards/margins": 0.23048743605613708,
128
+ "rewards/rejected": 0.11123454570770264,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 1.5165876777251186,
133
+ "grad_norm": 13.094353030731684,
134
+ "learning_rate": 7.775827023107834e-08,
135
+ "logits/chosen": -17.020626068115234,
136
+ "logits/rejected": -17.626625061035156,
137
+ "logps/chosen": -355.83404541015625,
138
+ "logps/rejected": -411.6244201660156,
139
+ "loss": 0.5786,
140
+ "rewards/accuracies": 0.7562500238418579,
141
+ "rewards/chosen": 0.23768803477287292,
142
+ "rewards/margins": 0.33307021856307983,
143
+ "rewards/rejected": -0.09538215398788452,
144
+ "step": 80
145
+ },
146
+ {
147
+ "epoch": 1.7061611374407581,
148
+ "grad_norm": 14.853001845607317,
149
+ "learning_rate": 2.7440387297912122e-08,
150
+ "logits/chosen": -17.405044555664062,
151
+ "logits/rejected": -17.63189697265625,
152
+ "logps/chosen": -387.94354248046875,
153
+ "logps/rejected": -437.82366943359375,
154
+ "loss": 0.5742,
155
+ "rewards/accuracies": 0.793749988079071,
156
+ "rewards/chosen": 0.27590411901474,
157
+ "rewards/margins": 0.3552981913089752,
158
+ "rewards/rejected": -0.07939404994249344,
159
+ "step": 90
160
+ },
161
+ {
162
+ "epoch": 1.8957345971563981,
163
+ "grad_norm": 13.859137885848625,
164
+ "learning_rate": 2.27878296044029e-09,
165
+ "logits/chosen": -17.7724552154541,
166
+ "logits/rejected": -17.65437889099121,
167
+ "logps/chosen": -380.60955810546875,
168
+ "logps/rejected": -411.00164794921875,
169
+ "loss": 0.5725,
170
+ "rewards/accuracies": 0.6937500238418579,
171
+ "rewards/chosen": 0.2799278199672699,
172
+ "rewards/margins": 0.2864844799041748,
173
+ "rewards/rejected": -0.006556662730872631,
174
+ "step": 100
175
+ },
176
+ {
177
+ "epoch": 1.8957345971563981,
178
+ "eval_logits/chosen": -16.585969924926758,
179
+ "eval_logits/rejected": -15.948739051818848,
180
+ "eval_logps/chosen": -363.741943359375,
181
+ "eval_logps/rejected": -363.7130432128906,
182
+ "eval_loss": 0.5959563255310059,
183
+ "eval_rewards/accuracies": 0.71875,
184
+ "eval_rewards/chosen": 0.22609315812587738,
185
+ "eval_rewards/margins": 0.2597140967845917,
186
+ "eval_rewards/rejected": -0.03362090513110161,
187
+ "eval_runtime": 8.7004,
188
+ "eval_samples_per_second": 86.203,
189
+ "eval_steps_per_second": 2.758,
190
+ "step": 100
191
+ },
192
+ {
193
+ "epoch": 1.971563981042654,
194
+ "step": 104,
195
+ "total_flos": 0.0,
196
+ "train_loss": 0.6262502945386447,
197
+ "train_runtime": 431.1142,
198
+ "train_samples_per_second": 31.314,
199
+ "train_steps_per_second": 0.241
200
+ }
201
+ ],
202
+ "logging_steps": 10,
203
+ "max_steps": 104,
204
+ "num_input_tokens_seen": 0,
205
+ "num_train_epochs": 2,
206
+ "save_steps": 500,
207
+ "stateful_callbacks": {
208
+ "TrainerControl": {
209
+ "args": {
210
+ "should_epoch_stop": false,
211
+ "should_evaluate": false,
212
+ "should_log": false,
213
+ "should_save": false,
214
+ "should_training_stop": false
215
+ },
216
+ "attributes": {}
217
+ }
218
+ },
219
+ "total_flos": 0.0,
220
+ "train_batch_size": 2,
221
+ "trial_name": null,
222
+ "trial_params": null
223
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a9b4f76367a9e96bbf1dd27dea688c4c65ec23747f7ba62d8b29cd726c69954
3
+ size 6456