ATL-Machine commited on
Commit
e3ef4d3
·
verified ·
1 Parent(s): 832bafc

Upload model (bfloat16) from script

Browse files
chat_template.jinja CHANGED
@@ -23,13 +23,7 @@
23
  {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
24
  {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
25
  {%- elif message.role == "assistant" %}
26
-
27
- {%- set has_loss = (message.loss is defined and message.loss) %}
28
-
29
- {{- '<|im_start|>' + message.role + '\n' }}
30
- {%- if has_loss -%}
31
- {%- generation -%}
32
- {{- content }}
33
  {%- if message.tool_calls %}
34
  {%- for tool_call in message.tool_calls %}
35
  {%- if (loop.first and content) or (not loop.first) %}
@@ -50,30 +44,6 @@
50
  {%- endfor %}
51
  {%- endif %}
52
  {{- '<|im_end|>\n' }}
53
- {%- endgeneration -%}
54
- {%- else -%}
55
- {{- content }}
56
- {%- if message.tool_calls %}
57
- {%- for tool_call in message.tool_calls %}
58
- {%- if (loop.first and content) or (not loop.first) %}
59
- {{- '\n' }}
60
- {%- endif %}
61
- {%- if tool_call.function %}
62
- {%- set tool_call = tool_call.function %}
63
- {%- endif %}
64
- {{- '<tool_call>\n{"name": "' }}
65
- {{- tool_call.name }}
66
- {{- '", "arguments": ' }}
67
- {%- if tool_call.arguments is string %}
68
- {{- tool_call.arguments }}
69
- {%- else %}
70
- {{- tool_call.arguments | tojson }}
71
- {%- endif %}
72
- {{- '}\n</tool_call>' }}
73
- {%- endfor %}
74
- {%- endif %}
75
- {{- '<|im_end|>\n' }}
76
- {%- endif %}
77
  {%- elif message.role == "tool" %}
78
  {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
79
  {{- '<|im_start|>user' }}
 
23
  {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
24
  {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
25
  {%- elif message.role == "assistant" %}
26
+ {{- '<|im_start|>' + message.role + '\n' + content }}
 
 
 
 
 
 
27
  {%- if message.tool_calls %}
28
  {%- for tool_call in message.tool_calls %}
29
  {%- if (loop.first and content) or (not loop.first) %}
 
44
  {%- endfor %}
45
  {%- endif %}
46
  {{- '<|im_end|>\n' }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  {%- elif message.role == "tool" %}
48
  {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
49
  {{- '<|im_start|>user' }}
config.json CHANGED
@@ -1,68 +1,69 @@
1
  {
2
- "architectures": [
3
- "Qwen3ForCausalLM"
4
- ],
5
- "attention_bias": false,
6
- "attention_dropout": 0.0,
7
- "dtype": "bfloat16",
8
- "eos_token_id": 151645,
9
- "head_dim": 128,
10
- "hidden_act": "silu",
11
- "hidden_size": 2560,
12
- "initializer_range": 0.02,
13
- "intermediate_size": 9728,
14
- "layer_types": [
15
- "full_attention",
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
- "full_attention",
45
- "full_attention",
46
- "full_attention",
47
- "full_attention",
48
- "full_attention",
49
- "full_attention",
50
- "full_attention"
51
- ],
52
- "max_position_embeddings": 262144,
53
- "max_window_layers": 36,
54
- "model_type": "qwen3",
55
- "num_attention_heads": 32,
56
- "num_hidden_layers": 36,
57
- "num_key_value_heads": 8,
58
- "pad_token_id": 151643,
59
- "rms_norm_eps": 1e-06,
60
- "rope_scaling": null,
61
- "rope_theta": 5000000,
62
- "sliding_window": null,
63
- "tie_word_embeddings": true,
64
- "transformers_version": "4.57.3",
65
- "use_cache": false,
66
- "use_sliding_window": false,
67
- "vocab_size": 151936
68
- }
 
 
1
  {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "torch_dtype": "bfloat16",
8
+ "eos_token_id": 151645,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2560,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 9728,
14
+ "layer_types": [
15
+ "full_attention",
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
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention"
51
+ ],
52
+ "max_position_embeddings": 262144,
53
+ "max_window_layers": 36,
54
+ "model_type": "qwen3",
55
+ "num_attention_heads": 32,
56
+ "num_hidden_layers": 36,
57
+ "num_key_value_heads": 8,
58
+ "pad_token_id": 151643,
59
+ "rms_norm_eps": 1e-06,
60
+ "rope_scaling": null,
61
+ "rope_theta": 5000000,
62
+ "sliding_window": null,
63
+ "tie_word_embeddings": true,
64
+ "transformers_version": "4.57.3",
65
+ "unsloth_version": "2026.1.2",
66
+ "use_cache": false,
67
+ "use_sliding_window": false,
68
+ "vocab_size": 151936
69
+ }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2b6c63b3611a5d60c5361f40f07c22e70e456e127710d896c482cc204f13b4b0
3
- size 4967215360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce6006507e7b1d3a8f8a7f0ab19e5cea144bf5767ffaa755740b5a811e6e0bc4
3
+ size 4967215544
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a19cbd476c866417a15d4f8b3719ae1af353b125df9b90c60669531f5285a028
3
- size 3077766632
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5d21e8b937a58f1052266d64bb047940372ec4bd8113f63649fd6923a9e6c8d
3
+ size 3855679328
model.safetensors.index.json CHANGED
@@ -1,9 +1,10 @@
1
  {
2
  "metadata": {
3
  "total_parameters": 4022468096,
4
- "total_size": 8044936192
5
  },
6
  "weight_map": {
 
7
  "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
8
  "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
9
  "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
 
1
  {
2
  "metadata": {
3
  "total_parameters": 4022468096,
4
+ "total_size": 8822848512
5
  },
6
  "weight_map": {
7
+ "lm_head.weight": "model-00002-of-00002.safetensors",
8
  "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
9
  "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
10
  "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:16f528d95d7ef509451617b1e80ce38caa95fd4ff3651cfe77abc8a3d8d87817
3
- size 11422753
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenizer_config.json CHANGED
@@ -233,8 +233,8 @@
233
  "extra_special_tokens": {},
234
  "model_max_length": 1010000,
235
  "pad_token": "<|endoftext|>",
236
- "padding_side": "right",
237
  "split_special_tokens": false,
238
  "tokenizer_class": "Qwen2Tokenizer",
239
- "unk_token": null
240
- }
 
 
233
  "extra_special_tokens": {},
234
  "model_max_length": 1010000,
235
  "pad_token": "<|endoftext|>",
 
236
  "split_special_tokens": false,
237
  "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null,
239
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# 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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}"
240
+ }