dralex commited on
Commit
d495eca
·
1 Parent(s): 95b83ca
.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,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: cyberbabooshka/base_noreasoning
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ datasets:
9
+ - cyberbabooshka/MNLP_M2_mcqa_dataset
10
+ model-index:
11
+ - name: MNLP_M2_mcqa_model
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
19
+ <details><summary>See axolotl config</summary>
20
+
21
+ axolotl version: `0.10.0.dev0`
22
+ ```yaml
23
+ base_model: cyberbabooshka/base_noreasoning
24
+ hub_model_id: cyberbabooshka/MNLP_M2_mcqa_model
25
+ wandb_name: base
26
+
27
+ tokenizer_type: AutoTokenizer
28
+ load_in_8bit: false
29
+ load_in_4bit: false
30
+
31
+ num_processes: 64
32
+ dataset_processes: 64
33
+ dataset_prepared_path: last_run_prepared
34
+
35
+ chat_template: jinja
36
+ chat_template_jinja: >-
37
+ {%- for message in messages %}
38
+ {{- message.content.strip('\n') + '\n' }}
39
+ {%- endfor %}
40
+ {%- if not add_generation_prompt %}
41
+ {{- '<|im_end|>' }}
42
+ {%- endif %}
43
+
44
+
45
+ datasets:
46
+ - path: cyberbabooshka/MNLP_M2_mcqa_dataset
47
+ name: cooldown
48
+ split: train
49
+ type: chat_template
50
+ chat_template: tokenizer_default
51
+ field_messages: messages
52
+ train_on_eos: all
53
+ train_on_eot: all
54
+ message_property_mappings:
55
+ role: role
56
+ content: content
57
+ roles:
58
+ user:
59
+ - user
60
+ assistant:
61
+ - assistant
62
+
63
+ test_datasets:
64
+ - path: cyberbabooshka/MNLP_M2_mcqa_dataset
65
+ name: mcqa
66
+ split: test
67
+ type: chat_template
68
+ chat_template: tokenizer_default
69
+ field_messages: messages
70
+ train_on_eos: all
71
+ train_on_eot: all
72
+ message_property_mappings:
73
+ role: role
74
+ content: content
75
+ roles:
76
+ user:
77
+ - user
78
+ assistant:
79
+ - assistant
80
+
81
+ output_dir: ./outputs_mcqa
82
+
83
+ sequence_len: 2048
84
+ batch_flattening: true
85
+ sample_packing: false
86
+
87
+ wandb_project: mnlp
88
+ wandb_entity: aleksandr-dremov-epfl
89
+ wandb_watch:
90
+ wandb_log_model:
91
+
92
+ gradient_accumulation_steps: 1
93
+ eval_batch_size: 16
94
+ micro_batch_size: 12
95
+
96
+ optimizer: ademamix_8bit
97
+ weight_decay: 0.01
98
+
99
+ learning_rate: 0.00001
100
+ warmup_steps: 100
101
+
102
+ wsd_final_lr_factor: 0.0
103
+ wsd_init_div_factor: 100
104
+ wsd_fract_decay: 0.2
105
+ wsd_decay_type: "sqrt"
106
+ wsd_sqrt_power: 0.5
107
+ wsd_cooldown_start_lr_factor: 1.0
108
+
109
+ bf16: auto
110
+ tf32: false
111
+
112
+ torch_compile: true
113
+ flash_attention: true
114
+ gradient_checkpointing: false
115
+
116
+ resume_from_checkpoint:
117
+ auto_resume_from_checkpoints: true
118
+
119
+ logging_steps: 16
120
+ eval_steps: 500
121
+ save_steps: 500
122
+ max_steps: 1000000
123
+ num_epochs: 1
124
+ save_total_limit: 2
125
+
126
+ special_tokens:
127
+ eos_token: "<|im_end|>"
128
+ pad_token: "<|endoftext|>"
129
+
130
+ eot_tokens:
131
+ - <|im_end|>
132
+
133
+ plugins:
134
+ - axolotl_wsd.WSDSchedulerPlugin
135
+
136
+ ```
137
+
138
+ </details><br>
139
+
140
+ # MNLP_M2_mcqa_model
141
+
142
+ This model is a fine-tuned version of [cyberbabooshka/base_noreasoning](https://huggingface.co/cyberbabooshka/base_noreasoning) on the cyberbabooshka/MNLP_M2_mcqa_dataset dataset.
143
+ It achieves the following results on the evaluation set:
144
+ - Loss: 0.6772
145
+
146
+ ## Model description
147
+
148
+ More information needed
149
+
150
+ ## Intended uses & limitations
151
+
152
+ More information needed
153
+
154
+ ## Training and evaluation data
155
+
156
+ More information needed
157
+
158
+ ## Training procedure
159
+
160
+ ### Training hyperparameters
161
+
162
+ The following hyperparameters were used during training:
163
+ - learning_rate: 1e-05
164
+ - train_batch_size: 12
165
+ - eval_batch_size: 16
166
+ - seed: 42
167
+ - distributed_type: multi-GPU
168
+ - num_devices: 2
169
+ - total_train_batch_size: 24
170
+ - total_eval_batch_size: 32
171
+ - optimizer: Use OptimizerNames.ADEMAMIX_8BIT and the args are:
172
+ No additional optimizer arguments
173
+ - lr_scheduler_type: cosine
174
+ - lr_scheduler_warmup_steps: 100
175
+ - training_steps: 8438
176
+
177
+ ### Training results
178
+
179
+ | Training Loss | Epoch | Step | Validation Loss |
180
+ |:-------------:|:------:|:----:|:---------------:|
181
+ | No log | 0.0001 | 1 | 2.2371 |
182
+ | 0.8956 | 0.0593 | 500 | 0.7674 |
183
+ | 0.9093 | 0.1185 | 1000 | 0.7335 |
184
+ | 0.8544 | 0.1778 | 1500 | 0.7159 |
185
+ | 0.8503 | 0.2370 | 2000 | 0.7074 |
186
+ | 0.8781 | 0.2963 | 2500 | 0.7016 |
187
+ | 0.8171 | 0.3555 | 3000 | 0.6968 |
188
+ | 0.9179 | 0.4148 | 3500 | 0.6930 |
189
+ | 0.845 | 0.4740 | 4000 | 0.6895 |
190
+ | 0.8885 | 0.5333 | 4500 | 0.6865 |
191
+ | 0.9432 | 0.5926 | 5000 | 0.6844 |
192
+ | 0.7451 | 0.6518 | 5500 | 0.6825 |
193
+ | 0.8675 | 0.7111 | 6000 | 0.6811 |
194
+ | 0.8606 | 0.7703 | 6500 | 0.6793 |
195
+ | 0.8602 | 0.8000 | 6750 | 0.6793 |
196
+ | 0.8458 | 0.8296 | 7000 | 0.6778 |
197
+ | 0.9051 | 0.8888 | 7500 | 0.6772 |
198
+ | 0.8589 | 0.9481 | 8000 | 0.6772 |
199
+
200
+
201
+ ### Framework versions
202
+
203
+ - Transformers 4.52.1
204
+ - Pytorch 2.7.0+cu126
205
+ - Datasets 3.5.0
206
+ - Tokenizers 0.21.1
added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
chat_template.jinja ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {%- for message in messages %}
2
+ {{- message.content.strip('\n') + '\n' }}
3
+ {%- endfor %} {%- if not add_generation_prompt %}
4
+ {{- '<|im_end|>' }}
5
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "eos_token_id": 151645,
8
+ "head_dim": 128,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1024,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 28,
15
+ "model_type": "qwen3",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 28,
18
+ "num_key_value_heads": 8,
19
+ "rms_norm_eps": 1e-06,
20
+ "rope_scaling": null,
21
+ "rope_theta": 1000000,
22
+ "sliding_window": null,
23
+ "tie_word_embeddings": true,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.52.1",
26
+ "use_cache": false,
27
+ "use_sliding_window": false,
28
+ "vocab_size": 151936
29
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": 151643,
5
+ "max_new_tokens": 2048,
6
+ "transformers_version": "4.52.1"
7
+ }
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:a2523da081dfc0472229adc37faf3dc17332dee1af725c955bc2d7eee869f764
3
+ size 1192135096
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4ca5e476a8b74b7c8d92f81e7730dc002dff80064f8c3f75a9c838671deb775
3
+ size 7185
vocab.json ADDED
The diff for this file is too large to render. See raw diff