ahpah commited on
Commit
39fe4e3
·
verified ·
1 Parent(s): 2eb89d4

Update YokoCoder-4B with five additional coding epochs

Browse files
.gitattributes CHANGED
@@ -34,3 +34,5 @@ saved_model/**/* 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
  YokoCoder-Qwen35-4B-flappy-3epoch-Q4_K_M.gguf 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
  YokoCoder-Qwen35-4B-flappy-3epoch-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ YokoCoder-4B-5epochs-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
38
+ adapters/dataset4-5epochs/final_adapter/tokenizer.json filter=lfs diff=lfs merge=lfs -text
Modelfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ./YokoCoder-Qwen35-4B-flappy-3epoch-Q4_K_M.gguf
2
  PARAMETER num_ctx 16384
3
  PARAMETER num_predict -1
4
  PARAMETER temperature 0.6
 
1
+ FROM ./YokoCoder-4B-5epochs-Q4_K_M.gguf
2
  PARAMETER num_ctx 16384
3
  PARAMETER num_predict -1
4
  PARAMETER temperature 0.6
README.md CHANGED
@@ -1,43 +1,47 @@
1
- ---
2
- license: apache-2.0
3
- base_model: wangzhang/Qwen3.5-4B-abliterated
4
- pipeline_tag: text-generation
5
- library_name: gguf
6
- tags:
7
- - gguf
8
- - qwen3.5
9
- - code
10
- - coding
11
- - abliterated
12
- - ollama
13
- language:
14
- - en
15
- ---
16
-
17
- # YokoCoder-4B
18
-
19
- YokoCoder-4B is a compact, locally runnable coding assistant built on the abliterated Qwen3.5 4B model. It was fine-tuned for coding and further trained on Flappy Bird examples. Tested on a Flappy Bird generation task, it delivers good results for its size.
20
-
21
- ## Model details
22
-
23
- - **Format:** GGUF, Q4_K_M
24
- - **Parameters:** 4B
25
- - **Download size:** about 2.7 GB
26
- - **Base:** [wangzhang/Qwen3.5-4B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-4B-abliterated), derived from Qwen3.5-4B
27
- - **Training:** coding fine-tune followed by three additional epochs on Flappy Bird examples
28
- - **License:** Apache 2.0
29
-
30
- ## Run with Ollama
31
-
32
- Download the files in this repository, then run the following from their directory:
33
-
34
- ```bash
35
- ollama create yokocoder-4b -f Modelfile
36
- ollama run yokocoder-4b
37
- ```
38
-
39
- The included Modelfile configures a 16,384-token context and leaves the output-token limit unset. The GGUF can also be used with other compatible Qwen3.5 GGUF runtimes.
40
-
41
- ## Attribution
42
-
43
  YokoCoder-4B is a fine-tuned and quantized derivative of [Qwen3.5-4B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-4B-abliterated) by Wangzhang Wu, based on [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B). The original model card and notices are included in [UPSTREAM_MODEL_CARD.md](UPSTREAM_MODEL_CARD.md), and the license is in [LICENSE](LICENSE).
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: wangzhang/Qwen3.5-4B-abliterated
4
+ pipeline_tag: text-generation
5
+ library_name: gguf
6
+ tags:
7
+ - gguf
8
+ - qwen3.5
9
+ - code
10
+ - coding
11
+ - abliterated
12
+ - ollama
13
+ language:
14
+ - en
15
+ ---
16
+
17
+ # YokoCoder-4B
18
+
19
+ YokoCoder-4B is a compact, locally runnable coding assistant built on the abliterated Qwen3.5 4B model. It was fine-tuned for coding, further trained on Flappy Bird examples, and continued for five more epochs on a new coding dataset. Tested on a Flappy Bird generation task, it delivers good results for its size.
20
+
21
+ ## Model details
22
+
23
+ - **Format:** GGUF, Q4_K_M
24
+ - **Parameters:** 4B
25
+ - **Download size:** about 2.7 GB
26
+ - **Base:** [wangzhang/Qwen3.5-4B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-4B-abliterated), derived from Qwen3.5-4B
27
+ - **Training:** coding fine-tune, three additional epochs on Flappy Bird examples, then five additional epochs on 12 coding examples (28 training windows)
28
+ - **License:** Apache 2.0
29
+
30
+ ## Run with Ollama
31
+
32
+ Download the files in this repository, then run the following from their directory:
33
+
34
+ ```bash
35
+ ollama create yokocoder-4b -f Modelfile
36
+ ollama run yokocoder-4b
37
+ ```
38
+
39
+ The included Modelfile configures a 16,384-token context and sets `num_predict -1` for generation without a fixed output-token cap. The GGUF can also be used with other compatible Qwen3.5 GGUF runtimes.
40
+
41
+ ## Attribution
42
+
43
  YokoCoder-4B is a fine-tuned and quantized derivative of [Qwen3.5-4B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-4B-abliterated) by Wangzhang Wu, based on [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B). The original model card and notices are included in [UPSTREAM_MODEL_CARD.md](UPSTREAM_MODEL_CARD.md), and the license is in [LICENSE](LICENSE).
44
+
45
+ ## Latest training update
46
+
47
+ The October 29, 2026 update continues the existing YokoCoder checkpoint for five epochs, completing 20 optimizer steps with training loss 1.0559. The Q4_K_M file contains the merged updated weights. The continued-training LoRA adapter and its training records are included under `adapters/dataset4-5epochs/`. Export hashes and provenance are in `export_manifest_5epochs.json`.
YokoCoder-Qwen35-4B-flappy-3epoch-Q4_K_M.gguf → YokoCoder-4B-5epochs-Q4_K_M.gguf RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:44bde08f844059f298ee6efc6c1f7168c3619b161e48ef7b2f4fbd72e9539f8d
3
  size 2708804224
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9292f20ceb1704004c0a27350dc44536c1dd337b960befa926ad81b2515cc77
3
  size 2708804224
adapters/dataset4-5epochs/final_adapter/README.md ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: wangzhang/Qwen3.5-4B-abliterated
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:wangzhang/Qwen3.5-4B-abliterated
7
+ - lora
8
+ - transformers
9
+ - unsloth
10
+ ---
11
+
12
+ # Model Card for Model ID
13
+
14
+ <!-- Provide a quick summary of what the model is/does. -->
15
+
16
+
17
+
18
+ ## Model Details
19
+
20
+ ### Model Description
21
+
22
+ <!-- Provide a longer summary of what this model is. -->
23
+
24
+
25
+
26
+ - **Developed by:** [More Information Needed]
27
+ - **Funded by [optional]:** [More Information Needed]
28
+ - **Shared by [optional]:** [More Information Needed]
29
+ - **Model type:** [More Information Needed]
30
+ - **Language(s) (NLP):** [More Information Needed]
31
+ - **License:** [More Information Needed]
32
+ - **Finetuned from model [optional]:** [More Information Needed]
33
+
34
+ ### Model Sources [optional]
35
+
36
+ <!-- Provide the basic links for the model. -->
37
+
38
+ - **Repository:** [More Information Needed]
39
+ - **Paper [optional]:** [More Information Needed]
40
+ - **Demo [optional]:** [More Information Needed]
41
+
42
+ ## Uses
43
+
44
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
45
+
46
+ ### Direct Use
47
+
48
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Downstream Use [optional]
53
+
54
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
55
+
56
+ [More Information Needed]
57
+
58
+ ### Out-of-Scope Use
59
+
60
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ## Bias, Risks, and Limitations
65
+
66
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
67
+
68
+ [More Information Needed]
69
+
70
+ ### Recommendations
71
+
72
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
73
+
74
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
75
+
76
+ ## How to Get Started with the Model
77
+
78
+ Use the code below to get started with the model.
79
+
80
+ [More Information Needed]
81
+
82
+ ## Training Details
83
+
84
+ ### Training Data
85
+
86
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
87
+
88
+ [More Information Needed]
89
+
90
+ ### Training Procedure
91
+
92
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
93
+
94
+ #### Preprocessing [optional]
95
+
96
+ [More Information Needed]
97
+
98
+
99
+ #### Training Hyperparameters
100
+
101
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
102
+
103
+ #### Speeds, Sizes, Times [optional]
104
+
105
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
106
+
107
+ [More Information Needed]
108
+
109
+ ## Evaluation
110
+
111
+ <!-- This section describes the evaluation protocols and provides the results. -->
112
+
113
+ ### Testing Data, Factors & Metrics
114
+
115
+ #### Testing Data
116
+
117
+ <!-- This should link to a Dataset Card if possible. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Factors
122
+
123
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
124
+
125
+ [More Information Needed]
126
+
127
+ #### Metrics
128
+
129
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
130
+
131
+ [More Information Needed]
132
+
133
+ ### Results
134
+
135
+ [More Information Needed]
136
+
137
+ #### Summary
138
+
139
+
140
+
141
+ ## Model Examination [optional]
142
+
143
+ <!-- Relevant interpretability work for the model goes here -->
144
+
145
+ [More Information Needed]
146
+
147
+ ## Environmental Impact
148
+
149
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
150
+
151
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
152
+
153
+ - **Hardware Type:** [More Information Needed]
154
+ - **Hours used:** [More Information Needed]
155
+ - **Cloud Provider:** [More Information Needed]
156
+ - **Compute Region:** [More Information Needed]
157
+ - **Carbon Emitted:** [More Information Needed]
158
+
159
+ ## Technical Specifications [optional]
160
+
161
+ ### Model Architecture and Objective
162
+
163
+ [More Information Needed]
164
+
165
+ ### Compute Infrastructure
166
+
167
+ [More Information Needed]
168
+
169
+ #### Hardware
170
+
171
+ [More Information Needed]
172
+
173
+ #### Software
174
+
175
+ [More Information Needed]
176
+
177
+ ## Citation [optional]
178
+
179
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
180
+
181
+ **BibTeX:**
182
+
183
+ [More Information Needed]
184
+
185
+ **APA:**
186
+
187
+ [More Information Needed]
188
+
189
+ ## Glossary [optional]
190
+
191
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
192
+
193
+ [More Information Needed]
194
+
195
+ ## More Information [optional]
196
+
197
+ [More Information Needed]
198
+
199
+ ## Model Card Authors [optional]
200
+
201
+ [More Information Needed]
202
+
203
+ ## Model Card Contact
204
+
205
+ [More Information Needed]
206
+ ### Framework versions
207
+
208
+ - PEFT 0.21.2
adapters/dataset4-5epochs/final_adapter/adapter_config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen3_5ForCausalLM",
7
+ "parent_library": "transformers.models.qwen3_5.modeling_qwen3_5",
8
+ "unsloth_fixed": true
9
+ },
10
+ "base_model_name_or_path": "wangzhang/Qwen3.5-4B-abliterated",
11
+ "bias": "none",
12
+ "corda_config": null,
13
+ "ensure_weight_tying": false,
14
+ "eva_config": null,
15
+ "exclude_modules": null,
16
+ "fan_in_fan_out": false,
17
+ "inference_mode": true,
18
+ "init_lora_weights": true,
19
+ "kasa_config": null,
20
+ "layer_replication": null,
21
+ "layers_pattern": null,
22
+ "layers_to_transform": null,
23
+ "loftq_config": {},
24
+ "lora_alpha": 16,
25
+ "lora_bias": false,
26
+ "lora_dropout": 0,
27
+ "lora_ga_config": null,
28
+ "megatron_config": null,
29
+ "megatron_core": "megatron.core",
30
+ "modules_to_save": null,
31
+ "monteclora_config": null,
32
+ "peft_type": "LORA",
33
+ "peft_version": "0.21.2",
34
+ "qalora_group_size": 16,
35
+ "r": 16,
36
+ "rank_pattern": {},
37
+ "revision": null,
38
+ "target_modules": "(?:.*?(?:language|text).*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?\\.(?:q_proj|k_proj|v_proj|o_proj|gate_proj|up_proj|down_proj|in_proj_qkv|in_proj_z|in_proj_b|in_proj_a|out_proj))|(?:\\bmodel\\.layers\\.[\\d]{1,}(?!.*\\.experts\\.\\d)\\..*?(?:self_attn|attention|attn|mixer|mlp|feed_forward|ffn|dense|mixer).*?\\.(?:(?:q_proj|k_proj|v_proj|o_proj|gate_proj|up_proj|down_proj|in_proj_qkv|in_proj_z|in_proj_b|in_proj_a|out_proj)))",
39
+ "target_parameters": null,
40
+ "task_type": "CAUSAL_LM",
41
+ "trainable_token_indices": null,
42
+ "use_bdlora": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false,
46
+ "velora_config": null
47
+ }
adapters/dataset4-5epochs/final_adapter/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd8723d3454e6a26d11ba3f3377ebbd558f035231da5580e37a9d8ac4929b838
3
+ size 129927008
adapters/dataset4-5epochs/final_adapter/chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
adapters/dataset4-5epochs/final_adapter/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
+ size 19989343
adapters/dataset4-5epochs/final_adapter/tokenizer_config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": false,
14
+ "max_length": null,
15
+ "model_max_length": 262144,
16
+ "model_specific_special_tokens": {
17
+ "audio_bos_token": "<|audio_start|>",
18
+ "audio_eos_token": "<|audio_end|>",
19
+ "audio_token": "<|audio_pad|>",
20
+ "image_token": "<|image_pad|>",
21
+ "video_token": "<|video_pad|>",
22
+ "vision_bos_token": "<|vision_start|>",
23
+ "vision_eos_token": "<|vision_end|>"
24
+ },
25
+ "pad_to_multiple_of": null,
26
+ "pad_token": "<|endoftext|>",
27
+ "pad_token_type_id": 0,
28
+ "padding_side": "right",
29
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
30
+ "split_special_tokens": false,
31
+ "tokenizer_class": "TokenizersBackend",
32
+ "unk_token": null,
33
+ "video_token": "<|video_pad|>",
34
+ "vision_bos_token": "<|vision_start|>",
35
+ "vision_eos_token": "<|vision_end|>"
36
+ }
adapters/dataset4-5epochs/final_adapter/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a7242d07809de0ef07394d5fa0c7b887fdcddd53a694ab1366d415140129a97
3
+ size 5201
adapters/dataset4-5epochs/run_config.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_sha256": "1e7b3ab8b53d034d4130ef23101d5a8a0c8f2ce5e4b47c3f88f9ef45cc07407c",
3
+ "starting_adapter_sha256": "259bbea21864b9f0ea82be2b8bfc81c8491ebf5700bc54cb680a1ff395b00f5e",
4
+ "base_model": "wangzhang/Qwen3.5-4B-abliterated",
5
+ "base_revision": "bbf0cdd540907b95ca8430fd34e4b2971f73df57",
6
+ "additional_epochs": 5,
7
+ "optimizer": "fresh",
8
+ "train_examples": 12,
9
+ "train_windows": 28,
10
+ "coverage": [
11
+ {
12
+ "example": 0,
13
+ "tokens": 5201,
14
+ "assistant_targets": 5157,
15
+ "covered_targets": 5157
16
+ },
17
+ {
18
+ "example": 1,
19
+ "tokens": 10425,
20
+ "assistant_targets": 10377,
21
+ "covered_targets": 10377
22
+ },
23
+ {
24
+ "example": 2,
25
+ "tokens": 4904,
26
+ "assistant_targets": 4845,
27
+ "covered_targets": 4845
28
+ },
29
+ {
30
+ "example": 3,
31
+ "tokens": 17477,
32
+ "assistant_targets": 17423,
33
+ "covered_targets": 17423
34
+ },
35
+ {
36
+ "example": 4,
37
+ "tokens": 2485,
38
+ "assistant_targets": 2440,
39
+ "covered_targets": 2440
40
+ },
41
+ {
42
+ "example": 5,
43
+ "tokens": 2495,
44
+ "assistant_targets": 2451,
45
+ "covered_targets": 2451
46
+ },
47
+ {
48
+ "example": 6,
49
+ "tokens": 1740,
50
+ "assistant_targets": 1692,
51
+ "covered_targets": 1692
52
+ },
53
+ {
54
+ "example": 7,
55
+ "tokens": 1223,
56
+ "assistant_targets": 1184,
57
+ "covered_targets": 1184
58
+ },
59
+ {
60
+ "example": 8,
61
+ "tokens": 13241,
62
+ "assistant_targets": 13210,
63
+ "covered_targets": 13210
64
+ },
65
+ {
66
+ "example": 9,
67
+ "tokens": 2355,
68
+ "assistant_targets": 2311,
69
+ "covered_targets": 2311
70
+ },
71
+ {
72
+ "example": 10,
73
+ "tokens": 18944,
74
+ "assistant_targets": 18900,
75
+ "covered_targets": 18900
76
+ },
77
+ {
78
+ "example": 11,
79
+ "tokens": 2296,
80
+ "assistant_targets": 2203,
81
+ "covered_targets": 2203
82
+ }
83
+ ]
84
+ }
adapters/dataset4-5epochs/training_status.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "completed": true,
3
+ "requested_epochs": 5,
4
+ "completed_epochs": 5.0,
5
+ "global_step": 20,
6
+ "final_adapter": "/kaggle/working/yokocoder_second_5epochs/final_adapter",
7
+ "metrics": {
8
+ "train_runtime": 2004.9572,
9
+ "train_samples_per_second": 0.07,
10
+ "train_steps_per_second": 0.01,
11
+ "train_loss": 1.055898329615593,
12
+ "epoch": 5.0
13
+ }
14
+ }
export_manifest_5epochs.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "file": "YokoCoder-4B-5epochs-Q4_K_M.gguf",
3
+ "bytes": 2708804224,
4
+ "sha256": "a9292f20ceb1704004c0a27350dc44536c1dd337b960befa926ad81b2515cc77",
5
+ "additional_epochs": 5,
6
+ "global_step": 20,
7
+ "train_loss": 1.055898329615593,
8
+ "dataset_sha256": "1e7b3ab8b53d034d4130ef23101d5a8a0c8f2ce5e4b47c3f88f9ef45cc07407c",
9
+ "adapter_sha256": "bd8723d3454e6a26d11ba3f3377ebbd558f035231da5580e37a9d8ac4929b838",
10
+ "base_model": "wangzhang/Qwen3.5-4B-abliterated",
11
+ "base_revision": "bbf0cdd540907b95ca8430fd34e4b2971f73df57"
12
+ }