zguir23 commited on
Commit
cd5c2af
·
verified ·
1 Parent(s): 8a69da7

Upload thinking_t1_no_reasoning_traces

Browse files
.gitattributes CHANGED
@@ -40,3 +40,4 @@ exp5_large_mix_bbq_58k/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
  dpo_d1_single_pass/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  dpo_d2_iterative_collapsed/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  dpo_d3_iterative_softer_collapsed/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
40
  dpo_d1_single_pass/tokenizer.json filter=lfs diff=lfs merge=lfs -text
41
  dpo_d2_iterative_collapsed/tokenizer.json filter=lfs diff=lfs merge=lfs -text
42
  dpo_d3_iterative_softer_collapsed/tokenizer.json filter=lfs diff=lfs merge=lfs -text
43
+ thinking_t1_no_reasoning_traces/tokenizer.json filter=lfs diff=lfs merge=lfs -text
thinking_t1_no_reasoning_traces/chat_template.jinja ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {# === FORCE_QWEN_NO_THINK_BEGIN === #}
2
+ {%- set enable_thinking = false %}
3
+ {# === FORCE_QWEN_NO_THINK_END === #}
4
+ {# === SAFETY_DEFAULT_SYSTEM_BEGIN === #}
5
+ {%- if messages and messages[0].role != 'system' %}
6
+ {%- set messages = [{'role': 'system', 'content': 'Choose the correct option. Answer only with one boxed letter, like \\boxed{A}. '}] + messages %}
7
+ {%- endif %}
8
+ {# === SAFETY_DEFAULT_SYSTEM_END === #}
9
+ {%- if tools %}
10
+ {{- '<|im_start|>system\n' }}
11
+ {%- if messages[0].role == 'system' %}
12
+ {{- messages[0].content + '\n\n' }}
13
+ {%- endif %}
14
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
15
+ {%- for tool in tools %}
16
+ {{- "\n" }}
17
+ {{- tool | tojson }}
18
+ {%- endfor %}
19
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
20
+ {%- else %}
21
+ {%- if messages[0].role == 'system' %}
22
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
23
+ {%- endif %}
24
+ {%- endif %}
25
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
26
+ {%- for message in messages[::-1] %}
27
+ {%- set index = (messages|length - 1) - loop.index0 %}
28
+ {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
29
+ {%- set ns.multi_step_tool = false %}
30
+ {%- set ns.last_query_index = index %}
31
+ {%- endif %}
32
+ {%- endfor %}
33
+ {%- for message in messages %}
34
+ {%- if message.content is string %}
35
+ {%- set content = message.content %}
36
+ {%- else %}
37
+ {%- set content = '' %}
38
+ {%- endif %}
39
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
40
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
41
+ {%- elif message.role == "assistant" %}
42
+ {%- set reasoning_content = '' %}
43
+ {%- if message.reasoning_content is string %}
44
+ {%- set reasoning_content = message.reasoning_content %}
45
+ {%- else %}
46
+ {%- if '</think>' in content %}
47
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
48
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- if loop.index0 > ns.last_query_index %}
52
+ {%- if loop.last or (not loop.last and reasoning_content) %}
53
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
54
+ {%- else %}
55
+ {{- '<|im_start|>' + message.role + '\n' + content }}
56
+ {%- endif %}
57
+ {%- else %}
58
+ {{- '<|im_start|>' + message.role + '\n' + content }}
59
+ {%- endif %}
60
+ {%- if message.tool_calls %}
61
+ {%- for tool_call in message.tool_calls %}
62
+ {%- if (loop.first and content) or (not loop.first) %}
63
+ {{- '\n' }}
64
+ {%- endif %}
65
+ {%- if tool_call.function %}
66
+ {%- set tool_call = tool_call.function %}
67
+ {%- endif %}
68
+ {{- '<tool_call>\n{"name": "' }}
69
+ {{- tool_call.name }}
70
+ {{- '", "arguments": ' }}
71
+ {%- if tool_call.arguments is string %}
72
+ {{- tool_call.arguments }}
73
+ {%- else %}
74
+ {{- tool_call.arguments | tojson }}
75
+ {%- endif %}
76
+ {{- '}\n</tool_call>' }}
77
+ {%- endfor %}
78
+ {%- endif %}
79
+ {{- '<|im_end|>\n' }}
80
+ {%- elif message.role == "tool" %}
81
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
82
+ {{- '<|im_start|>user' }}
83
+ {%- endif %}
84
+ {{- '\n<tool_response>\n' }}
85
+ {{- content }}
86
+ {{- '\n</tool_response>' }}
87
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
88
+ {{- '<|im_end|>\n' }}
89
+ {%- endif %}
90
+ {%- endif %}
91
+ {%- endfor %}
92
+ {%- if add_generation_prompt %}
93
+ {{- '<|im_start|>assistant\n' }}
94
+ {%- if enable_thinking is defined and enable_thinking is false %}
95
+ {{- '<think>\n\n</think>\n\n' }}
96
+ {%- endif %}
97
+ {%- endif %}
thinking_t1_no_reasoning_traces/config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2048,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 6144,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention"
44
+ ],
45
+ "max_position_embeddings": 40960,
46
+ "max_window_layers": 28,
47
+ "model_type": "qwen3",
48
+ "num_attention_heads": 16,
49
+ "num_hidden_layers": 28,
50
+ "num_key_value_heads": 8,
51
+ "pad_token_id": null,
52
+ "rms_norm_eps": 1e-06,
53
+ "rope_parameters": {
54
+ "rope_theta": 1000000,
55
+ "rope_type": "default"
56
+ },
57
+ "sliding_window": null,
58
+ "tie_word_embeddings": true,
59
+ "transformers_version": "5.7.0",
60
+ "use_cache": true,
61
+ "use_sliding_window": false,
62
+ "vocab_size": 151936
63
+ }
thinking_t1_no_reasoning_traces/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_sample": false,
3
+ "eos_token_id": [
4
+ 151645,
5
+ 151643
6
+ ],
7
+ "max_new_tokens": 16384,
8
+ "pad_token_id": 151643,
9
+ "transformers_version": "5.7.0"
10
+ }
thinking_t1_no_reasoning_traces/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a336df47ea644d7fa7c8d1212fa29342ac47a5da1cf35cd507ec62d75bf01d8c
3
+ size 3441185608
thinking_t1_no_reasoning_traces/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bae3e39d56cfdb7b650cb318344d5c0f071d19fc9868ce086fef0cee78d5e7ff
3
+ size 11422749
thinking_t1_no_reasoning_traces/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "local_files_only": false,
25
+ "max_length": 2048,
26
+ "model_max_length": 131072,
27
+ "pad_token": "<|endoftext|>",
28
+ "split_special_tokens": false,
29
+ "stride": 0,
30
+ "tokenizer_class": "Qwen2Tokenizer",
31
+ "truncation_side": "right",
32
+ "truncation_strategy": "longest_first",
33
+ "unk_token": null
34
+ }