Stage 1 checkpoint step 8000
Browse files- .gitattributes +1 -0
- checkpoint-8000/chat_template.jinja +97 -0
- checkpoint-8000/config.json +63 -0
- checkpoint-8000/generation_config.json +10 -0
- checkpoint-8000/model.safetensors +3 -0
- checkpoint-8000/tokenizer.json +3 -0
- checkpoint-8000/tokenizer_config.json +22 -0
- checkpoint-8000/training_state.pt +3 -0
.gitattributes
CHANGED
|
@@ -39,3 +39,4 @@ checkpoint-4000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
| 39 |
checkpoint-5000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
checkpoint-6000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
checkpoint-7000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 39 |
checkpoint-5000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
checkpoint-6000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
checkpoint-7000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
checkpoint-8000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
checkpoint-8000/chat_template.jinja
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{- '[@BOS@]\n' }}
|
| 2 |
+
{%- if tools -%}
|
| 3 |
+
<|start_of_turn|><|tool_declare|>
|
| 4 |
+
<tools>
|
| 5 |
+
{% for tool in tools %}
|
| 6 |
+
{{ tool | tojson(ensure_ascii=False) }}
|
| 7 |
+
{% endfor %}
|
| 8 |
+
</tools>
|
| 9 |
+
{{- '<|end_of_turn|>\n' }}{%- endif -%}
|
| 10 |
+
{%- macro visible_text(content) -%}
|
| 11 |
+
{%- if content is string -%}
|
| 12 |
+
{{- content }}
|
| 13 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 14 |
+
{%- for item in content -%}
|
| 15 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 16 |
+
{{- item.text }}
|
| 17 |
+
{%- elif item is string -%}
|
| 18 |
+
{{- item }}
|
| 19 |
+
{%- endif -%}
|
| 20 |
+
{%- endfor -%}
|
| 21 |
+
{%- elif content is none -%}
|
| 22 |
+
{{- '' }}
|
| 23 |
+
{%- else -%}
|
| 24 |
+
{{- content }}
|
| 25 |
+
{%- endif -%}
|
| 26 |
+
{%- endmacro -%}
|
| 27 |
+
{%- set ns = namespace(last_user_index=-1) %}
|
| 28 |
+
{%- for m in messages %}
|
| 29 |
+
{%- if m.role == 'user' %}
|
| 30 |
+
{% set ns.last_user_index = loop.index0 -%}
|
| 31 |
+
{%- endif %}
|
| 32 |
+
{%- endfor %}
|
| 33 |
+
{% for m in messages %}
|
| 34 |
+
{%- if m.role == 'user' -%}<|start_of_turn|><|user|>
|
| 35 |
+
{{ visible_text(m.content) }}
|
| 36 |
+
{{- '<|nothink|>' if (enable_thinking is defined and not enable_thinking and not visible_text(m.content).endswith("<|nothink|>")) else '' -}}
|
| 37 |
+
{{- '<|end_of_turn|>\n' }}
|
| 38 |
+
{%- elif m.role == 'assistant' -%}
|
| 39 |
+
{{- '<|start_of_turn|><|assistant|>\n' }}
|
| 40 |
+
{%- set reasoning_content = '' %}
|
| 41 |
+
{%- set content = visible_text(m.content) %}
|
| 42 |
+
{%- if m.reasoning_content is string %}
|
| 43 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 44 |
+
{%- else %}
|
| 45 |
+
{%- if '</think>' in content %}
|
| 46 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 47 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 48 |
+
{%- endif %}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- if loop.index0 > ns.last_user_index and reasoning_content -%}
|
| 51 |
+
{{ '<think>' + reasoning_content.strip() + '</think>'}}
|
| 52 |
+
{%- else -%}
|
| 53 |
+
{{ '<think></think>' }}
|
| 54 |
+
{%- endif -%}
|
| 55 |
+
{%- if content.strip() -%}
|
| 56 |
+
{{ '\n' + content.strip() }}
|
| 57 |
+
{%- endif -%}
|
| 58 |
+
{% if m.tool_calls %}
|
| 59 |
+
{% for tc in m.tool_calls %}
|
| 60 |
+
{%- if tc.function %}
|
| 61 |
+
{%- set tc = tc.function %}
|
| 62 |
+
{%- endif %}
|
| 63 |
+
{{ '\n<tool_call>' + tc.name }}
|
| 64 |
+
{% set _args = tc.arguments %}
|
| 65 |
+
{% for k, v in _args.items() %}
|
| 66 |
+
<arg_key>{{ k }}</arg_key>
|
| 67 |
+
<arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>
|
| 68 |
+
{% endfor %}
|
| 69 |
+
</tool_call>{% endfor %}
|
| 70 |
+
{% endif %}
|
| 71 |
+
{{- '<|end_of_turn|>\n' }}
|
| 72 |
+
{%- elif m.role == 'tool' -%}
|
| 73 |
+
{%- if m.content is string -%}
|
| 74 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 75 |
+
{{- '<|start_of_turn|><|observation|>' }}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{{- '\n<tool_response>\n' }}
|
| 78 |
+
{{- m.content }}
|
| 79 |
+
{{- '\n</tool_response>' }}
|
| 80 |
+
{%- else -%}
|
| 81 |
+
<|start_of_turn|><|observation|>{% for tr in m.content %}
|
| 82 |
+
|
| 83 |
+
<tool_response>
|
| 84 |
+
{{ tr.output if tr.output is defined else tr }}
|
| 85 |
+
</tool_response>{% endfor -%}
|
| 86 |
+
{% endif -%}
|
| 87 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 88 |
+
{{- '<|end_of_turn|>\n' }}{%- endif -%}
|
| 89 |
+
{%- elif m.role == 'system' -%}
|
| 90 |
+
<|start_of_turn|><|system|>
|
| 91 |
+
{{ visible_text(m.content) }}
|
| 92 |
+
{{- '<|end_of_turn|>\n' }}
|
| 93 |
+
{%- endif -%}
|
| 94 |
+
{%- endfor -%}
|
| 95 |
+
{%- if add_generation_prompt -%}
|
| 96 |
+
{{- '<|start_of_turn|><|assistant|>\n' }}
|
| 97 |
+
{%- endif -%}
|
checkpoint-8000/config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 6,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 26,
|
| 10 |
+
"head_dim": 64,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 3072,
|
| 15 |
+
"layer_types": [
|
| 16 |
+
"linear_attention",
|
| 17 |
+
"linear_attention",
|
| 18 |
+
"full_attention",
|
| 19 |
+
"linear_attention",
|
| 20 |
+
"linear_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"linear_attention",
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"full_attention"
|
| 40 |
+
],
|
| 41 |
+
"linear_conv_kernel_dim": 4,
|
| 42 |
+
"linear_key_head_dim": 64,
|
| 43 |
+
"linear_num_key_heads": 12,
|
| 44 |
+
"linear_num_value_heads": 12,
|
| 45 |
+
"linear_value_head_dim": 64,
|
| 46 |
+
"max_position_embeddings": 2048,
|
| 47 |
+
"model_type": "qwen3_5_text",
|
| 48 |
+
"num_attention_heads": 12,
|
| 49 |
+
"num_hidden_layers": 24,
|
| 50 |
+
"num_key_value_heads": 4,
|
| 51 |
+
"pad_token_id": 0,
|
| 52 |
+
"partial_rotary_factor": 0.25,
|
| 53 |
+
"rms_norm_eps": 1e-06,
|
| 54 |
+
"rope_parameters": {
|
| 55 |
+
"partial_rotary_factor": 0.25,
|
| 56 |
+
"rope_theta": 10000.0,
|
| 57 |
+
"rope_type": "default"
|
| 58 |
+
},
|
| 59 |
+
"tie_word_embeddings": true,
|
| 60 |
+
"transformers_version": "5.3.0",
|
| 61 |
+
"use_cache": false,
|
| 62 |
+
"vocab_size": 262144
|
| 63 |
+
}
|
checkpoint-8000/generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 6,
|
| 4 |
+
"eos_token_id": 26,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 0,
|
| 8 |
+
"transformers_version": "5.3.0",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
checkpoint-8000/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2964d88c895ae3186fba1b4f7cf48e3aefbf5fcbb5fc6aba72d9e2ae5015c868
|
| 3 |
+
size 1744703352
|
checkpoint-8000/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a574ceaaff7c7a8f091179c53fd17ae33567089c099d4ff37d4cb3bc1a87e80e
|
| 3 |
+
size 33627251
|
checkpoint-8000/tokenizer_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"boi_token": "<|start_of_image|>",
|
| 4 |
+
"bos_token": "[@BOS@]",
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eoi_token": "<|end_of_image|>",
|
| 7 |
+
"eos_token": "<|end_of_turn|>",
|
| 8 |
+
"image_token": "<|image_soft_token|>",
|
| 9 |
+
"is_local": false,
|
| 10 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 11 |
+
"model_specific_special_tokens": {
|
| 12 |
+
"boi_token": "<|start_of_image|>",
|
| 13 |
+
"eoi_token": "<|end_of_image|>",
|
| 14 |
+
"image_token": "<|image_soft_token|>"
|
| 15 |
+
},
|
| 16 |
+
"pad_token": "<pad>",
|
| 17 |
+
"sp_model_kwargs": null,
|
| 18 |
+
"spaces_between_special_tokens": false,
|
| 19 |
+
"tokenizer_class": "TokenizersBackend",
|
| 20 |
+
"unk_token": "<unk>",
|
| 21 |
+
"use_default_system_prompt": false
|
| 22 |
+
}
|
checkpoint-8000/training_state.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36cff049421911517b816ca76f7aec6ab1c3a59179760c768dc3145b307b33f0
|
| 3 |
+
size 3489605443
|