diff --git a/checkpoint-1000/chat_template.jinja b/checkpoint-1000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-1000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-1000/config.json b/checkpoint-1000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-1000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-1000/generation_config.json b/checkpoint-1000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-1000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-1000/model.safetensors b/checkpoint-1000/model.safetensors deleted file mode 100644 index 2dc4b786b96c17b19e5cfe83b9601ca3a3437990..0000000000000000000000000000000000000000 --- a/checkpoint-1000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e9b936920f7bd0fafe35abc9e26b61355d074d6b51cd8354388b8beed741c3f3 -size 954310784 diff --git a/checkpoint-1000/optimizer.bin b/checkpoint-1000/optimizer.bin deleted file mode 100644 index 750cd765f041c7ddb97a7526e79aa9814f92a8d9..0000000000000000000000000000000000000000 --- a/checkpoint-1000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec860a92d40c737dade1c2efadc8f7dab28a234139f8a06f3fd32f060ed1ce1f -size 1908743179 diff --git a/checkpoint-1000/scheduler.bin b/checkpoint-1000/scheduler.bin deleted file mode 100644 index 8be42563801393b7bf62c04f9eed0bbd175a486c..0000000000000000000000000000000000000000 --- a/checkpoint-1000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d09398de7f83a0b63e50391667245873a9c116ade86323c54d53ddfb8105a67 -size 1401 diff --git a/checkpoint-1000/tokenizer.json b/checkpoint-1000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-1000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-1000/tokenizer_config.json b/checkpoint-1000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-1000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-1000/train.json b/checkpoint-1000/train.json deleted file mode 100644 index aebed5e2476387b22eebe42f8e863df219e77a3f..0000000000000000000000000000000000000000 --- a/checkpoint-1000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 1000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 19:48:11" -} \ No newline at end of file diff --git a/checkpoint-10000/chat_template.jinja b/checkpoint-10000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-10000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-10000/config.json b/checkpoint-10000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-10000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-10000/generation_config.json b/checkpoint-10000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-10000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-10000/model.safetensors b/checkpoint-10000/model.safetensors deleted file mode 100644 index cd6d338a098264c4f88e27e08a44ca9aabb30523..0000000000000000000000000000000000000000 --- a/checkpoint-10000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c3f9f0fb9d72bdb98758523a864b5428b6d35e0b7d450d200b2af3836e4975c -size 954310784 diff --git a/checkpoint-10000/optimizer.bin b/checkpoint-10000/optimizer.bin deleted file mode 100644 index 8c541ecdff464551cfd1d93a1e259ac16ac39f4c..0000000000000000000000000000000000000000 --- a/checkpoint-10000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd0a6975f78446dc1b51e9095b61f1bb5a39129bb384641408f3f115ffe5088d -size 1908743179 diff --git a/checkpoint-10000/scheduler.bin b/checkpoint-10000/scheduler.bin deleted file mode 100644 index 02d93cd805db4f892b6b465c624cf46c1a5a6105..0000000000000000000000000000000000000000 --- a/checkpoint-10000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c35112cecb5ef9b8bb66e0f5ac8064bd0103bf8e753c396f20a6f9f5ed06fefe -size 1401 diff --git a/checkpoint-10000/tokenizer.json b/checkpoint-10000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-10000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-10000/tokenizer_config.json b/checkpoint-10000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-10000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-10000/train.json b/checkpoint-10000/train.json deleted file mode 100644 index 1244e99f81db859afd339ee898b04623d45fd067..0000000000000000000000000000000000000000 --- a/checkpoint-10000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 10000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:49:04" -} \ No newline at end of file diff --git a/checkpoint-100000/chat_template.jinja b/checkpoint-100000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-100000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-100000/config.json b/checkpoint-100000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-100000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-100000/generation_config.json b/checkpoint-100000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-100000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-100000/model.safetensors b/checkpoint-100000/model.safetensors deleted file mode 100644 index 22d68e24db9b059abac2802252b8960cc2b61e2a..0000000000000000000000000000000000000000 --- a/checkpoint-100000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fbe6ce3e4c7212c73a893ea3e155142515520e7d22aff337a637c22959e7634 -size 954310784 diff --git a/checkpoint-100000/optimizer.bin b/checkpoint-100000/optimizer.bin deleted file mode 100644 index fe715450ad4c6d8a926828ca027a61c0c367863c..0000000000000000000000000000000000000000 --- a/checkpoint-100000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e2d69f9b100d7debfe978caf4e9d24871624a3641f61172ba775f2e41af834b3 -size 1908743179 diff --git a/checkpoint-100000/scheduler.bin b/checkpoint-100000/scheduler.bin deleted file mode 100644 index 2948559a44d3891b7fc3a3d60af029a7dc356dbc..0000000000000000000000000000000000000000 --- a/checkpoint-100000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:575a345f1c2a5ab6970fc9646a59aa4ad25efd0a1cc22455294c6848c68413f1 -size 1465 diff --git a/checkpoint-100000/tokenizer.json b/checkpoint-100000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-100000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-100000/tokenizer_config.json b/checkpoint-100000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-100000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-100000/train.json b/checkpoint-100000/train.json deleted file mode 100644 index d1467390917e4c425693db8768f6b6a185127424..0000000000000000000000000000000000000000 --- a/checkpoint-100000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 100000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:58:49" -} \ No newline at end of file diff --git a/checkpoint-101000/chat_template.jinja b/checkpoint-101000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-101000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-101000/config.json b/checkpoint-101000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-101000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-101000/generation_config.json b/checkpoint-101000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-101000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-101000/model.safetensors b/checkpoint-101000/model.safetensors deleted file mode 100644 index 40f148f2512e0e04ebdfcd3d43524e9693bad648..0000000000000000000000000000000000000000 --- a/checkpoint-101000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f51ec9c2aa0d10c393dd2699e024bd3c706e1933f4e7138c36064fe64bf85b2e -size 954310784 diff --git a/checkpoint-101000/optimizer.bin b/checkpoint-101000/optimizer.bin deleted file mode 100644 index 2f3569f90932be6dccc5dc5426203fa474c8ed8a..0000000000000000000000000000000000000000 --- a/checkpoint-101000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97dba1cc08c9f568f16f261b9e7d2ec82a0bc5f06dca7a9e0d402661c51f7403 -size 1908743179 diff --git a/checkpoint-101000/scheduler.bin b/checkpoint-101000/scheduler.bin deleted file mode 100644 index d94429d5b434fc05e7637e20d07a2c9951efefa8..0000000000000000000000000000000000000000 --- a/checkpoint-101000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9919cd7976be5b005f4a1920781a0753b83b7a39fd2a162782eea3a155942414 -size 1465 diff --git a/checkpoint-101000/tokenizer.json b/checkpoint-101000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-101000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-101000/tokenizer_config.json b/checkpoint-101000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-101000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-101000/train.json b/checkpoint-101000/train.json deleted file mode 100644 index cdbefe6583844efc0c46807ad9f94f9370947cf2..0000000000000000000000000000000000000000 --- a/checkpoint-101000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 101000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 07:05:37" -} \ No newline at end of file diff --git a/checkpoint-102000/chat_template.jinja b/checkpoint-102000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-102000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-102000/config.json b/checkpoint-102000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-102000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-102000/generation_config.json b/checkpoint-102000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-102000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-102000/model.safetensors b/checkpoint-102000/model.safetensors deleted file mode 100644 index 226a805ff4adb28fa45f88c3a3d8c9f2411ca20e..0000000000000000000000000000000000000000 --- a/checkpoint-102000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8d5aa8f988b5c0f70d98ca2819a3d961cf07bc1284bea6eb7e09a287f92c310 -size 954310784 diff --git a/checkpoint-102000/optimizer.bin b/checkpoint-102000/optimizer.bin deleted file mode 100644 index 00e5e4f2abbd8fbfeb29fd7d4444dc3b79e9b9d9..0000000000000000000000000000000000000000 --- a/checkpoint-102000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1ed5dd843cf0e65ce6b042bc045134637d3b57b690a102570fefd9c6f9c72119 -size 1908743179 diff --git a/checkpoint-102000/scheduler.bin b/checkpoint-102000/scheduler.bin deleted file mode 100644 index b07548df0a728c6b5810b909bf206f533f237164..0000000000000000000000000000000000000000 --- a/checkpoint-102000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce7b90954d9b9521d0ce832a7fbd9408315789e283de4e55f9671157afa6757e -size 1465 diff --git a/checkpoint-102000/tokenizer.json b/checkpoint-102000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-102000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-102000/tokenizer_config.json b/checkpoint-102000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-102000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-102000/train.json b/checkpoint-102000/train.json deleted file mode 100644 index 2f2523828ab123d61979a3139411e01539f6b4c4..0000000000000000000000000000000000000000 --- a/checkpoint-102000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 102000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 07:12:22" -} \ No newline at end of file diff --git a/checkpoint-103000/chat_template.jinja b/checkpoint-103000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-103000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-103000/config.json b/checkpoint-103000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-103000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-103000/generation_config.json b/checkpoint-103000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-103000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-103000/model.safetensors b/checkpoint-103000/model.safetensors deleted file mode 100644 index 97eebdc80ba0a6ab243a4935e088e9cb22373cfc..0000000000000000000000000000000000000000 --- a/checkpoint-103000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69796af535e25063b36e575bbe54d762a23f2f040a52040784d98c0bec5bd3d9 -size 954310784 diff --git a/checkpoint-103000/optimizer.bin b/checkpoint-103000/optimizer.bin deleted file mode 100644 index 0c5f235e09c67d30a6da3b4e4480a9e692fa4b1c..0000000000000000000000000000000000000000 --- a/checkpoint-103000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e621293d4c92a675fd36616475644d79a792617db3703baad1a7845ce63260a -size 1908743179 diff --git a/checkpoint-103000/scheduler.bin b/checkpoint-103000/scheduler.bin deleted file mode 100644 index 4390f372f72c723d10533fedfbcccfd79e7e455b..0000000000000000000000000000000000000000 --- a/checkpoint-103000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63482dd8a5760733dfde5519cbbe43dee95ed1409851a694fe8debb63a89e0d3 -size 1465 diff --git a/checkpoint-103000/tokenizer.json b/checkpoint-103000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-103000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-103000/tokenizer_config.json b/checkpoint-103000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-103000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-103000/train.json b/checkpoint-103000/train.json deleted file mode 100644 index 58bad0a57791eed691d8bbefceba2feac829ab17..0000000000000000000000000000000000000000 --- a/checkpoint-103000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 103000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 07:19:08" -} \ No newline at end of file diff --git a/checkpoint-104000/chat_template.jinja b/checkpoint-104000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-104000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-104000/config.json b/checkpoint-104000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-104000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-104000/generation_config.json b/checkpoint-104000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-104000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-104000/model.safetensors b/checkpoint-104000/model.safetensors deleted file mode 100644 index 37e904272b1725dc2f70bdb2751916a6fdedb905..0000000000000000000000000000000000000000 --- a/checkpoint-104000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d15a3145584daa5f4273d1a4d55ce4caac6a7834756c28b8d075f9d86a2a0af6 -size 954310784 diff --git a/checkpoint-104000/optimizer.bin b/checkpoint-104000/optimizer.bin deleted file mode 100644 index f2c63ea7dcd66f872b5664cf34b2b38a5c34c42b..0000000000000000000000000000000000000000 --- a/checkpoint-104000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dee961f8b6d345665561c7da5876803d40f7e51c4a592891e06f10bf83677a9e -size 1908743179 diff --git a/checkpoint-104000/scheduler.bin b/checkpoint-104000/scheduler.bin deleted file mode 100644 index 83a0ffb04df34865ebfba7aa366462c3deee033c..0000000000000000000000000000000000000000 --- a/checkpoint-104000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:109077e8c95d4f2cee06afbfc73a86143a029c0c8653a686925a22fb8a8f7457 -size 1465 diff --git a/checkpoint-104000/tokenizer.json b/checkpoint-104000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-104000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-104000/tokenizer_config.json b/checkpoint-104000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-104000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-104000/train.json b/checkpoint-104000/train.json deleted file mode 100644 index d6bf081cef2d67a764a61771e457caa4e29e3d80..0000000000000000000000000000000000000000 --- a/checkpoint-104000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 104000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 07:25:52" -} \ No newline at end of file diff --git a/checkpoint-105000/chat_template.jinja b/checkpoint-105000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-105000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-105000/config.json b/checkpoint-105000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-105000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-105000/generation_config.json b/checkpoint-105000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-105000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-105000/model.safetensors b/checkpoint-105000/model.safetensors deleted file mode 100644 index 1bd955f0d0b6fc2eb612dee37398822bbf77cbf0..0000000000000000000000000000000000000000 --- a/checkpoint-105000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3902750e77d81eb7f23bc0f812e3cf2b50a47bbd71283294205e0772c6ede9fd -size 954310784 diff --git a/checkpoint-105000/optimizer.bin b/checkpoint-105000/optimizer.bin deleted file mode 100644 index fdbe5f36f2edb4c71706726ded6e5b879df617b7..0000000000000000000000000000000000000000 --- a/checkpoint-105000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:130da836922dd8a6ab40271bbdb5866d8fef21ae5987b649c123dec1ecbc0a65 -size 1908743179 diff --git a/checkpoint-105000/scheduler.bin b/checkpoint-105000/scheduler.bin deleted file mode 100644 index a29b9896f4b0c5d73bede30184ebcb9b0c6f917f..0000000000000000000000000000000000000000 --- a/checkpoint-105000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d221b9fd9b90a5e467670ff1625c94771fc80ccb67cee08bdb67b984633c2e63 -size 1465 diff --git a/checkpoint-105000/tokenizer.json b/checkpoint-105000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-105000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-105000/tokenizer_config.json b/checkpoint-105000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-105000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-105000/train.json b/checkpoint-105000/train.json deleted file mode 100644 index 63f664bd455404f0488f004cea6c584ed2f4589d..0000000000000000000000000000000000000000 --- a/checkpoint-105000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 105000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 07:32:35" -} \ No newline at end of file diff --git a/checkpoint-11000/chat_template.jinja b/checkpoint-11000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-11000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-11000/config.json b/checkpoint-11000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-11000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-11000/generation_config.json b/checkpoint-11000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-11000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-11000/model.safetensors b/checkpoint-11000/model.safetensors deleted file mode 100644 index cdd7141ceb5f4a8c21d2852cd8d9951d45c25e09..0000000000000000000000000000000000000000 --- a/checkpoint-11000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2d904261094e64caccc20ab434bee9f47ae0f8da11444481b5fe0ee5a41bbd6 -size 954310784 diff --git a/checkpoint-11000/optimizer.bin b/checkpoint-11000/optimizer.bin deleted file mode 100644 index 50f920f3c100a5894ecfb51dcb0bb8b208ef483b..0000000000000000000000000000000000000000 --- a/checkpoint-11000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:166b29655dfc0a701b870a26e3a0af497a16436afef730f820e87971f55f4c18 -size 1908743179 diff --git a/checkpoint-11000/scheduler.bin b/checkpoint-11000/scheduler.bin deleted file mode 100644 index ccaa90868379b835012ae3530c51b86585ed955e..0000000000000000000000000000000000000000 --- a/checkpoint-11000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02d9661465baf0db9c527abeea793bbc062ef4fc4be92ca37c14a6167ffd6cb0 -size 1401 diff --git a/checkpoint-11000/tokenizer.json b/checkpoint-11000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-11000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-11000/tokenizer_config.json b/checkpoint-11000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-11000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-11000/train.json b/checkpoint-11000/train.json deleted file mode 100644 index 397eb9003dc1a4c355bab1234dea97da947b0f2d..0000000000000000000000000000000000000000 --- a/checkpoint-11000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 11000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:55:51" -} \ No newline at end of file diff --git a/checkpoint-12000/chat_template.jinja b/checkpoint-12000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-12000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-12000/config.json b/checkpoint-12000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-12000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-12000/generation_config.json b/checkpoint-12000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-12000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-12000/model.safetensors b/checkpoint-12000/model.safetensors deleted file mode 100644 index 29dd60057466bb7c3b2da80736680c5e31bbf317..0000000000000000000000000000000000000000 --- a/checkpoint-12000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b197c27de17d6bacf3317b62a5e2e204c3a1b41ba5087a89432626624437f9e -size 954310784 diff --git a/checkpoint-12000/optimizer.bin b/checkpoint-12000/optimizer.bin deleted file mode 100644 index 1c1ad83f4a5da1f0fc9994b30f7775adb639785f..0000000000000000000000000000000000000000 --- a/checkpoint-12000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d08fc9f1ae01517d6d89ba93ed30c3768e6172418e914be44fec557db9b83ce -size 1908743179 diff --git a/checkpoint-12000/scheduler.bin b/checkpoint-12000/scheduler.bin deleted file mode 100644 index 7e078dbb3d19e8bb639b1d45344548acd20d4598..0000000000000000000000000000000000000000 --- a/checkpoint-12000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3524622619bde7773803684039c4da2f90ed2513738b46de24efb7f579ccafa2 -size 1401 diff --git a/checkpoint-12000/tokenizer.json b/checkpoint-12000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-12000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-12000/tokenizer_config.json b/checkpoint-12000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-12000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-12000/train.json b/checkpoint-12000/train.json deleted file mode 100644 index ca154739215a80f7d617cedb177b40e4220197aa..0000000000000000000000000000000000000000 --- a/checkpoint-12000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 12000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:02:38" -} \ No newline at end of file diff --git a/checkpoint-13000/chat_template.jinja b/checkpoint-13000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-13000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-13000/config.json b/checkpoint-13000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-13000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-13000/generation_config.json b/checkpoint-13000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-13000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-13000/model.safetensors b/checkpoint-13000/model.safetensors deleted file mode 100644 index 9435b72bca7b16db9de30626d294f7e3d31d55d1..0000000000000000000000000000000000000000 --- a/checkpoint-13000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3de30a5166db4a1078bd644817c8f21e6a3e3aff17a6a27f2c49aae0fc115abf -size 954310784 diff --git a/checkpoint-13000/optimizer.bin b/checkpoint-13000/optimizer.bin deleted file mode 100644 index 919ff982d3f43a79a12934affb6a11a9b6787e5e..0000000000000000000000000000000000000000 --- a/checkpoint-13000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b48050aa178a44d0a4e1756632b7aa23e1a7356f682921416892519ca99f00ca -size 1908743179 diff --git a/checkpoint-13000/scheduler.bin b/checkpoint-13000/scheduler.bin deleted file mode 100644 index 6c26c83009966d2548bea3b0b4dd2c326451f8ec..0000000000000000000000000000000000000000 --- a/checkpoint-13000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2665295f1bb67574859893684e76fc62bea020646defa6cb92a6ae9c86276776 -size 1401 diff --git a/checkpoint-13000/tokenizer.json b/checkpoint-13000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-13000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-13000/tokenizer_config.json b/checkpoint-13000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-13000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-13000/train.json b/checkpoint-13000/train.json deleted file mode 100644 index 2a4881b3a97e985a96d44e7bc04c3d7059628782..0000000000000000000000000000000000000000 --- a/checkpoint-13000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 13000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:09:27" -} \ No newline at end of file diff --git a/checkpoint-14000/chat_template.jinja b/checkpoint-14000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-14000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-14000/config.json b/checkpoint-14000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-14000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-14000/generation_config.json b/checkpoint-14000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-14000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-14000/model.safetensors b/checkpoint-14000/model.safetensors deleted file mode 100644 index b59b073590fa1581fdd3a158b26f8aa802bd8cb3..0000000000000000000000000000000000000000 --- a/checkpoint-14000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78ba469e53a3fe200968e7f0448ea11b1b2df14d4b75b13cb0357e2d67a0c0ac -size 954310784 diff --git a/checkpoint-14000/optimizer.bin b/checkpoint-14000/optimizer.bin deleted file mode 100644 index 1b8be59a3d2da97835805f60320f990217f5a416..0000000000000000000000000000000000000000 --- a/checkpoint-14000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a17a50c34963571cd70e3ebe803914d1b07193525990b72cee553979596479bf -size 1908743179 diff --git a/checkpoint-14000/scheduler.bin b/checkpoint-14000/scheduler.bin deleted file mode 100644 index 67261b545da7e8a50d42310b6faf0a9d77b2d6a4..0000000000000000000000000000000000000000 --- a/checkpoint-14000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e381d6b0681ff87c7f93e2cb63764c1bab2ae488372ccb36c3576dab88fb883 -size 1401 diff --git a/checkpoint-14000/tokenizer.json b/checkpoint-14000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-14000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-14000/tokenizer_config.json b/checkpoint-14000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-14000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-14000/train.json b/checkpoint-14000/train.json deleted file mode 100644 index 040fbf3aa4f6f0a5bb72e89de5ce4d6e8def3ef0..0000000000000000000000000000000000000000 --- a/checkpoint-14000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 14000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:16:14" -} \ No newline at end of file diff --git a/checkpoint-15000/chat_template.jinja b/checkpoint-15000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-15000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-15000/config.json b/checkpoint-15000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-15000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-15000/generation_config.json b/checkpoint-15000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-15000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-15000/model.safetensors b/checkpoint-15000/model.safetensors deleted file mode 100644 index dfe66a493db539e6d32a3b944a732790ee319ed4..0000000000000000000000000000000000000000 --- a/checkpoint-15000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db7e8180248a714a8491991a03834fb5ac2167431c9cdf09820194fbac1618a3 -size 954310784 diff --git a/checkpoint-15000/optimizer.bin b/checkpoint-15000/optimizer.bin deleted file mode 100644 index 6706c97e4d22598ab638c42899da1bd1472eb803..0000000000000000000000000000000000000000 --- a/checkpoint-15000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3a943d9a7551817f34f3d860b5604ad231903cb4cf3fb2d0d19f3ba687db1fe -size 1908743179 diff --git a/checkpoint-15000/scheduler.bin b/checkpoint-15000/scheduler.bin deleted file mode 100644 index dbb64ad66d699eaa027bd7b72e33cfed9e876eff..0000000000000000000000000000000000000000 --- a/checkpoint-15000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c498b4e3fe2f7e5edba96c693759db8cc99a6d7debc94a691b397beb8dd6e03 -size 1401 diff --git a/checkpoint-15000/tokenizer.json b/checkpoint-15000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-15000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-15000/tokenizer_config.json b/checkpoint-15000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-15000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-15000/train.json b/checkpoint-15000/train.json deleted file mode 100644 index 8924bf6ecba35bd5a41e7005d8e3b43949b31de5..0000000000000000000000000000000000000000 --- a/checkpoint-15000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 15000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:22:59" -} \ No newline at end of file diff --git a/checkpoint-16000/chat_template.jinja b/checkpoint-16000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-16000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-16000/config.json b/checkpoint-16000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-16000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-16000/generation_config.json b/checkpoint-16000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-16000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-16000/model.safetensors b/checkpoint-16000/model.safetensors deleted file mode 100644 index 671d2cc47bf1a917a901681aed74615836a92677..0000000000000000000000000000000000000000 --- a/checkpoint-16000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97b829f17bd958f19ed4bde9382d461062aa0e3cf318176cfe7622ab1b773c67 -size 954310784 diff --git a/checkpoint-16000/optimizer.bin b/checkpoint-16000/optimizer.bin deleted file mode 100644 index 8e0a9fb44f248b2a417887732af13c97a8dbccb5..0000000000000000000000000000000000000000 --- a/checkpoint-16000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:181b0c047cd7f9de4899479c8d3a2292792b43bbeea0ce1598ffe068a8b1531d -size 1908743179 diff --git a/checkpoint-16000/scheduler.bin b/checkpoint-16000/scheduler.bin deleted file mode 100644 index 9b064682749d2fb878d2476bc15561971bcf68ed..0000000000000000000000000000000000000000 --- a/checkpoint-16000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ffb74de7e58c58f4a0671075eaa3516df9a4778f3c673db139c7f7bd1c0efc6 -size 1401 diff --git a/checkpoint-16000/tokenizer.json b/checkpoint-16000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-16000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-16000/tokenizer_config.json b/checkpoint-16000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-16000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-16000/train.json b/checkpoint-16000/train.json deleted file mode 100644 index 9261ae6b0a79cfe83ce38f50a951a90855edeba3..0000000000000000000000000000000000000000 --- a/checkpoint-16000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 16000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:29:45" -} \ No newline at end of file diff --git a/checkpoint-17000/chat_template.jinja b/checkpoint-17000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-17000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-17000/config.json b/checkpoint-17000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-17000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-17000/generation_config.json b/checkpoint-17000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-17000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-17000/model.safetensors b/checkpoint-17000/model.safetensors deleted file mode 100644 index e05f6da1856df7093b7b31b68cedeb4c87e708f7..0000000000000000000000000000000000000000 --- a/checkpoint-17000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef3d0e3f40d79178167d48fa602848573d2232091bb38857fcf0c139acaaa340 -size 954310784 diff --git a/checkpoint-17000/optimizer.bin b/checkpoint-17000/optimizer.bin deleted file mode 100644 index 15ffef7dd00f558b0feb018851b4389a8e4d426d..0000000000000000000000000000000000000000 --- a/checkpoint-17000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02086a77e7aa8c4f78aa3ed367fe397af78719677595a7490cdff56dfad50531 -size 1908743179 diff --git a/checkpoint-17000/scheduler.bin b/checkpoint-17000/scheduler.bin deleted file mode 100644 index 01941af373f4d40658608c937358d1e5fc94f1e4..0000000000000000000000000000000000000000 --- a/checkpoint-17000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:471bae088a5bd2ae325da90b93c851d076f4d1316cec33c0a5b8116565dc84ca -size 1401 diff --git a/checkpoint-17000/tokenizer.json b/checkpoint-17000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-17000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-17000/tokenizer_config.json b/checkpoint-17000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-17000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-17000/train.json b/checkpoint-17000/train.json deleted file mode 100644 index 32662960d51ff41214359ef1e149998a3d95831c..0000000000000000000000000000000000000000 --- a/checkpoint-17000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 17000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:36:30" -} \ No newline at end of file diff --git a/checkpoint-18000/chat_template.jinja b/checkpoint-18000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-18000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-18000/config.json b/checkpoint-18000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-18000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-18000/generation_config.json b/checkpoint-18000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-18000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-18000/model.safetensors b/checkpoint-18000/model.safetensors deleted file mode 100644 index fe36e86de85741fcecc2163d1473806f415ed6ab..0000000000000000000000000000000000000000 --- a/checkpoint-18000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ea363892ff7777fa90a0176c71537c9a3fdb7acde0867f90618031152be99cd -size 954310784 diff --git a/checkpoint-18000/optimizer.bin b/checkpoint-18000/optimizer.bin deleted file mode 100644 index bd0cc60f558834e09296582dcbe2702472433ebc..0000000000000000000000000000000000000000 --- a/checkpoint-18000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab33a859bbbe9c92275f2d641e31dc7ed897e413e72e513f51a98d423cf232bf -size 1908743179 diff --git a/checkpoint-18000/scheduler.bin b/checkpoint-18000/scheduler.bin deleted file mode 100644 index 031a8ebd07ec1b6f12f02e3cbc54cd7f8451d6cf..0000000000000000000000000000000000000000 --- a/checkpoint-18000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:195f33cea71119a5c36fd176ff2e96c4c07f21797e21a18be7bc45fbe06e1475 -size 1401 diff --git a/checkpoint-18000/tokenizer.json b/checkpoint-18000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-18000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-18000/tokenizer_config.json b/checkpoint-18000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-18000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-18000/train.json b/checkpoint-18000/train.json deleted file mode 100644 index 05e25431f59fbff8a504c8f9b14881c26f717770..0000000000000000000000000000000000000000 --- a/checkpoint-18000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 18000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:43:18" -} \ No newline at end of file diff --git a/checkpoint-19000/chat_template.jinja b/checkpoint-19000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-19000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-19000/config.json b/checkpoint-19000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-19000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-19000/generation_config.json b/checkpoint-19000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-19000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-19000/model.safetensors b/checkpoint-19000/model.safetensors deleted file mode 100644 index 0f69c58ec88da0db223741045feac134ee90b230..0000000000000000000000000000000000000000 --- a/checkpoint-19000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd04b885a9dd67e6d92e65b355e324e5d4875f513c3ea20cf7c43c12ddc37459 -size 954310784 diff --git a/checkpoint-19000/optimizer.bin b/checkpoint-19000/optimizer.bin deleted file mode 100644 index 17de8f701ab4c40ae8c22a58fea5b5ff6f28ed76..0000000000000000000000000000000000000000 --- a/checkpoint-19000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34b0d390e89bb06378d1d1fe9acc3feae87f7c27555d4c2d04eba51f7da76ef0 -size 1908743179 diff --git a/checkpoint-19000/scheduler.bin b/checkpoint-19000/scheduler.bin deleted file mode 100644 index 9f4985268566c490da069cd270d9555061def688..0000000000000000000000000000000000000000 --- a/checkpoint-19000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:013b4c26436b1c13354c5519af69a2ec4014b4118d0b8a1fe9740fc1b2b992ca -size 1401 diff --git a/checkpoint-19000/tokenizer.json b/checkpoint-19000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-19000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-19000/tokenizer_config.json b/checkpoint-19000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-19000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-19000/train.json b/checkpoint-19000/train.json deleted file mode 100644 index 4f74b9a0f5ad0a7702df6bdaafb9b92b8ef3b846..0000000000000000000000000000000000000000 --- a/checkpoint-19000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 19000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:50:05" -} \ No newline at end of file diff --git a/checkpoint-2000/chat_template.jinja b/checkpoint-2000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-2000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-2000/config.json b/checkpoint-2000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-2000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-2000/generation_config.json b/checkpoint-2000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-2000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-2000/model.safetensors b/checkpoint-2000/model.safetensors deleted file mode 100644 index cd73b2ec7165e38fb2c26b97b27e1343aac1a0f5..0000000000000000000000000000000000000000 --- a/checkpoint-2000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:190068be1de87ea802231b193318f155067730056157b62e4d1e1b7c8ea44d69 -size 954310784 diff --git a/checkpoint-2000/optimizer.bin b/checkpoint-2000/optimizer.bin deleted file mode 100644 index cc95c9be35a83910a59dd54aa854dcf060648e66..0000000000000000000000000000000000000000 --- a/checkpoint-2000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:634965d3dfe209a791c7516043c748d0aeae21b603ae4948a3fc63ad8e718790 -size 1908743179 diff --git a/checkpoint-2000/scheduler.bin b/checkpoint-2000/scheduler.bin deleted file mode 100644 index a89a23fb99a1d0bc8155dec8e55a6262221ffa8b..0000000000000000000000000000000000000000 --- a/checkpoint-2000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b264cd95b991ca72515290bcd8393b166512ee57bae54d0af34a44e50675fb04 -size 1401 diff --git a/checkpoint-2000/tokenizer.json b/checkpoint-2000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-2000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-2000/tokenizer_config.json b/checkpoint-2000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-2000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-2000/train.json b/checkpoint-2000/train.json deleted file mode 100644 index 1f917c2eff2c9a66c69ee0a90b77d1d77be37c1d..0000000000000000000000000000000000000000 --- a/checkpoint-2000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 2000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 19:54:58" -} \ No newline at end of file diff --git a/checkpoint-20000/chat_template.jinja b/checkpoint-20000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-20000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-20000/config.json b/checkpoint-20000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-20000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-20000/generation_config.json b/checkpoint-20000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-20000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-20000/model.safetensors b/checkpoint-20000/model.safetensors deleted file mode 100644 index 007f940ec82c4142d8f244443e7ab7fd0c305820..0000000000000000000000000000000000000000 --- a/checkpoint-20000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae112e035d925b96ed8006ad8ceaeda3ffc875d997026ebbb0ecc181a1d8fb04 -size 954310784 diff --git a/checkpoint-20000/optimizer.bin b/checkpoint-20000/optimizer.bin deleted file mode 100644 index a64d65e411acae90e780d991660a6b35e2ae7fee..0000000000000000000000000000000000000000 --- a/checkpoint-20000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12b7bfe3f497eb6e65146163b1d761cc5f6be3eb5a7ad82b3512e0d114af821c -size 1908743179 diff --git a/checkpoint-20000/scheduler.bin b/checkpoint-20000/scheduler.bin deleted file mode 100644 index b60082dfe8f15f94b8da218a8bebd9946fdddea1..0000000000000000000000000000000000000000 --- a/checkpoint-20000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1815474bc7058dceac2ab5e9cea08eb0af2175d21651a2ddd06107e7e1ae1f8 -size 1401 diff --git a/checkpoint-20000/tokenizer.json b/checkpoint-20000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-20000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-20000/tokenizer_config.json b/checkpoint-20000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-20000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-20000/train.json b/checkpoint-20000/train.json deleted file mode 100644 index d45c990bb933450327e32c29344bd7e875af0f75..0000000000000000000000000000000000000000 --- a/checkpoint-20000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 20000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 21:56:52" -} \ No newline at end of file diff --git a/checkpoint-21000/chat_template.jinja b/checkpoint-21000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-21000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-21000/config.json b/checkpoint-21000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-21000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-21000/generation_config.json b/checkpoint-21000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-21000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-21000/model.safetensors b/checkpoint-21000/model.safetensors deleted file mode 100644 index 5375e0b9b1348ff459d5f092dbba0043cc7a75d3..0000000000000000000000000000000000000000 --- a/checkpoint-21000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad7e09775330b4ee2d832e28abf0ad7bdf8bd7d152ebdc9482bbc8f92d36925d -size 954310784 diff --git a/checkpoint-21000/optimizer.bin b/checkpoint-21000/optimizer.bin deleted file mode 100644 index e62d492753140ab30f1538db56d63b7de8167b94..0000000000000000000000000000000000000000 --- a/checkpoint-21000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6ca30d1e09c11b1ae508e6400e9e9819dfcbb94eb631260b2dfdbb15f2755b2 -size 1908743179 diff --git a/checkpoint-21000/scheduler.bin b/checkpoint-21000/scheduler.bin deleted file mode 100644 index d1799bb70d9eca84f8c2a9b0ca48babeee02835a..0000000000000000000000000000000000000000 --- a/checkpoint-21000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac2c420c6ae8c8337c666868ae551e8ae39aefc3e02423b937a5a0ffc1ee08de -size 1401 diff --git a/checkpoint-21000/tokenizer.json b/checkpoint-21000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-21000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-21000/tokenizer_config.json b/checkpoint-21000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-21000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-21000/train.json b/checkpoint-21000/train.json deleted file mode 100644 index 935cb2e20662f3703becb3e9c9df103a9f24b34d..0000000000000000000000000000000000000000 --- a/checkpoint-21000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 21000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:03:38" -} \ No newline at end of file diff --git a/checkpoint-22000/chat_template.jinja b/checkpoint-22000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-22000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-22000/config.json b/checkpoint-22000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-22000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-22000/generation_config.json b/checkpoint-22000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-22000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-22000/model.safetensors b/checkpoint-22000/model.safetensors deleted file mode 100644 index 8be62ae46fbf3d7d475797489cae342d95648329..0000000000000000000000000000000000000000 --- a/checkpoint-22000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a2a801a07bd9eabe1d9381d75a0e5fdabb6e3bf54bec914bf89727f378f36ca -size 954310784 diff --git a/checkpoint-22000/optimizer.bin b/checkpoint-22000/optimizer.bin deleted file mode 100644 index b546d1f0c8c740ac1978ffcc4b3db94c0284e3e0..0000000000000000000000000000000000000000 --- a/checkpoint-22000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af07534aa905b81dd9257ccf45b9218f6943f896c0649597c9a66f6f9bd6d688 -size 1908743179 diff --git a/checkpoint-22000/scheduler.bin b/checkpoint-22000/scheduler.bin deleted file mode 100644 index 2be7e9f546f6f4a7081cdd6eaef4ab3da64cb1ac..0000000000000000000000000000000000000000 --- a/checkpoint-22000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eede8d0781fdff45a5665d7bdb4db0603fb881875be7eae33f51c5bdb0034695 -size 1401 diff --git a/checkpoint-22000/tokenizer.json b/checkpoint-22000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-22000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-22000/tokenizer_config.json b/checkpoint-22000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-22000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-22000/train.json b/checkpoint-22000/train.json deleted file mode 100644 index 7f43a3bfc49de964b6d0ea4e956214e3f429e610..0000000000000000000000000000000000000000 --- a/checkpoint-22000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 22000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:10:23" -} \ No newline at end of file diff --git a/checkpoint-23000/chat_template.jinja b/checkpoint-23000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-23000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-23000/config.json b/checkpoint-23000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-23000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-23000/generation_config.json b/checkpoint-23000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-23000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-23000/model.safetensors b/checkpoint-23000/model.safetensors deleted file mode 100644 index 90c3a2429933d7685e3f0a6358685c8332e9c094..0000000000000000000000000000000000000000 --- a/checkpoint-23000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:62cc6bbe26506bba1c289c96fe68642001e5c249168b9307e189cc67e18b70b1 -size 954310784 diff --git a/checkpoint-23000/optimizer.bin b/checkpoint-23000/optimizer.bin deleted file mode 100644 index e9b0e73fe28b67064d3002705c439567c570d0fb..0000000000000000000000000000000000000000 --- a/checkpoint-23000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ceda51d79320c5efb86cd720778f2c26154ed2ceb4e3303b4e78cdca0a86b4c3 -size 1908743179 diff --git a/checkpoint-23000/scheduler.bin b/checkpoint-23000/scheduler.bin deleted file mode 100644 index 39312386a3eb2f514ee415eff250b0f0fced0292..0000000000000000000000000000000000000000 --- a/checkpoint-23000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8edcc3dad8dde19416f9014e86ee88ba9dd65b6a7f90c7f1fce0d49631c438c6 -size 1401 diff --git a/checkpoint-23000/tokenizer.json b/checkpoint-23000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-23000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-23000/tokenizer_config.json b/checkpoint-23000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-23000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-23000/train.json b/checkpoint-23000/train.json deleted file mode 100644 index f8d4b8db2cbbc9dc4fa209891756a52a39156ff1..0000000000000000000000000000000000000000 --- a/checkpoint-23000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 23000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:17:10" -} \ No newline at end of file diff --git a/checkpoint-24000/chat_template.jinja b/checkpoint-24000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-24000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-24000/config.json b/checkpoint-24000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-24000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-24000/generation_config.json b/checkpoint-24000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-24000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-24000/model.safetensors b/checkpoint-24000/model.safetensors deleted file mode 100644 index d28e4a56538052b5181a8e967d2f751dd73cef81..0000000000000000000000000000000000000000 --- a/checkpoint-24000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85d0f3cf0858f3c17456e3565f77db1fbb27de56f911aa36c056e1c1715c0fb0 -size 954310784 diff --git a/checkpoint-24000/optimizer.bin b/checkpoint-24000/optimizer.bin deleted file mode 100644 index 4ee6985ddfde16ebe526bb6c712728637003ce21..0000000000000000000000000000000000000000 --- a/checkpoint-24000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b790faaf1428ab5e532c68e6483857b140d4c556111909ace64e9006a1e2391e -size 1908743179 diff --git a/checkpoint-24000/scheduler.bin b/checkpoint-24000/scheduler.bin deleted file mode 100644 index 0ee43d2f775301914bbf26c2a6b68781139fa824..0000000000000000000000000000000000000000 --- a/checkpoint-24000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2a57b10fdd07b6f9ae57a13cb50aba417ad260a0b745e69155309d0253bf829 -size 1401 diff --git a/checkpoint-24000/tokenizer.json b/checkpoint-24000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-24000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-24000/tokenizer_config.json b/checkpoint-24000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-24000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-24000/train.json b/checkpoint-24000/train.json deleted file mode 100644 index 282fca9e4b99bbf51ee66baa8be7c81844316e23..0000000000000000000000000000000000000000 --- a/checkpoint-24000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 24000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:24:02" -} \ No newline at end of file diff --git a/checkpoint-25000/chat_template.jinja b/checkpoint-25000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-25000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-25000/config.json b/checkpoint-25000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-25000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-25000/generation_config.json b/checkpoint-25000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-25000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-25000/model.safetensors b/checkpoint-25000/model.safetensors deleted file mode 100644 index c643e6cabaf4961278fc67dea805c15d0e237bff..0000000000000000000000000000000000000000 --- a/checkpoint-25000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5441fdd6249d42dd241a61928e05f4ebcdd994a9f03d785a3489c13416875ba6 -size 954310784 diff --git a/checkpoint-25000/optimizer.bin b/checkpoint-25000/optimizer.bin deleted file mode 100644 index 87b2b8192756909b0fa3781f764f8ccc9bdc3ecd..0000000000000000000000000000000000000000 --- a/checkpoint-25000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec839a7621784bee090023f1c7da45c93825ccf18d1775a0fd954e7843d8a26e -size 1908743179 diff --git a/checkpoint-25000/scheduler.bin b/checkpoint-25000/scheduler.bin deleted file mode 100644 index b614d85f024e89f7ff5acb52a80e26b06b4a6495..0000000000000000000000000000000000000000 --- a/checkpoint-25000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f08d39f73b88791686c297c2731fb00fade4eeab50e45c13c98334e93258ff5e -size 1401 diff --git a/checkpoint-25000/tokenizer.json b/checkpoint-25000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-25000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-25000/tokenizer_config.json b/checkpoint-25000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-25000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-25000/train.json b/checkpoint-25000/train.json deleted file mode 100644 index 0db57ee9c33e0783eb4c1f8f97db0f1a527e6788..0000000000000000000000000000000000000000 --- a/checkpoint-25000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 25000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:30:54" -} \ No newline at end of file diff --git a/checkpoint-26000/chat_template.jinja b/checkpoint-26000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-26000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-26000/config.json b/checkpoint-26000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-26000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-26000/generation_config.json b/checkpoint-26000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-26000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-26000/model.safetensors b/checkpoint-26000/model.safetensors deleted file mode 100644 index c5300fa4f3aad75eb1c8c960fd491aff104dda0c..0000000000000000000000000000000000000000 --- a/checkpoint-26000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fbbe9f504620a7ae6e4bc29bb84f3661ebc0e8206b0f8f8d72b0e93626a157ad -size 954310784 diff --git a/checkpoint-26000/optimizer.bin b/checkpoint-26000/optimizer.bin deleted file mode 100644 index 851ad80c1f3649fcf9429c430cadda8f262a69e1..0000000000000000000000000000000000000000 --- a/checkpoint-26000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f52a438d0813dee6331074ed6cfdf83711e8ffdb6c31d30c360248b6eef06d17 -size 1908743179 diff --git a/checkpoint-26000/scheduler.bin b/checkpoint-26000/scheduler.bin deleted file mode 100644 index f07bb82e95b162e05a42d6e50fbae2beb7ff3194..0000000000000000000000000000000000000000 --- a/checkpoint-26000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:603b47482424ce2390f8957e89894799162973d1b89086f0d3a1f923d4d51aad -size 1401 diff --git a/checkpoint-26000/tokenizer.json b/checkpoint-26000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-26000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-26000/tokenizer_config.json b/checkpoint-26000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-26000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-26000/train.json b/checkpoint-26000/train.json deleted file mode 100644 index 57a84f25f93ff0a1fa49231d6405c4bb91ba748f..0000000000000000000000000000000000000000 --- a/checkpoint-26000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 26000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:37:44" -} \ No newline at end of file diff --git a/checkpoint-27000/chat_template.jinja b/checkpoint-27000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-27000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-27000/config.json b/checkpoint-27000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-27000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-27000/generation_config.json b/checkpoint-27000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-27000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-27000/model.safetensors b/checkpoint-27000/model.safetensors deleted file mode 100644 index 86bb587241e7ba2d452eb1eb372005274a919f43..0000000000000000000000000000000000000000 --- a/checkpoint-27000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21eee633644c69f5f2de9425ab7b4444dbbbdd9e64f1e6faea123f484e660a1b -size 954310784 diff --git a/checkpoint-27000/optimizer.bin b/checkpoint-27000/optimizer.bin deleted file mode 100644 index 94a9a5d1501bc8e58d10c571df07ed162a1155e4..0000000000000000000000000000000000000000 --- a/checkpoint-27000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a58145ea2be3d3829af1dd5d4b1a78c6d21877477773a4b651c927f1b437f6ca -size 1908743179 diff --git a/checkpoint-27000/scheduler.bin b/checkpoint-27000/scheduler.bin deleted file mode 100644 index be8ad81e0f6abdcbc33f68c54427e26f054c6bc8..0000000000000000000000000000000000000000 --- a/checkpoint-27000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8c0e601ece85cfd0b44bd3dd4a0a42fe526da26a23ecc881338e0f6ed75b529 -size 1401 diff --git a/checkpoint-27000/tokenizer.json b/checkpoint-27000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-27000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-27000/tokenizer_config.json b/checkpoint-27000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-27000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-27000/train.json b/checkpoint-27000/train.json deleted file mode 100644 index 816c8da23c2da9dded6c160ae8c71542e455b607..0000000000000000000000000000000000000000 --- a/checkpoint-27000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 27000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:44:34" -} \ No newline at end of file diff --git a/checkpoint-28000/chat_template.jinja b/checkpoint-28000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-28000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-28000/config.json b/checkpoint-28000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-28000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-28000/generation_config.json b/checkpoint-28000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-28000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-28000/model.safetensors b/checkpoint-28000/model.safetensors deleted file mode 100644 index c44d94f7cb2336ca650ba9284b2986d1b90e048e..0000000000000000000000000000000000000000 --- a/checkpoint-28000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4ea5132d94e43e84c2333ea445b54b508fbd35c85e43c837ca77d5256d09ed96 -size 954310784 diff --git a/checkpoint-28000/optimizer.bin b/checkpoint-28000/optimizer.bin deleted file mode 100644 index 4399c3f9eb02d65704801765674b3ead6c0f0250..0000000000000000000000000000000000000000 --- a/checkpoint-28000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86ee7393ce361a8cd56643524643a890b78a2aaa8dd12ce51dfc8b299957dfc6 -size 1908743179 diff --git a/checkpoint-28000/scheduler.bin b/checkpoint-28000/scheduler.bin deleted file mode 100644 index a18da833ee6ef383871e327283a6974be361ddae..0000000000000000000000000000000000000000 --- a/checkpoint-28000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:578f3e4bea39fdf2ecedc923d61cc73d48fcd34c3d5f618cbdecb242e07022fd -size 1401 diff --git a/checkpoint-28000/tokenizer.json b/checkpoint-28000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-28000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-28000/tokenizer_config.json b/checkpoint-28000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-28000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-28000/train.json b/checkpoint-28000/train.json deleted file mode 100644 index f96e502cd87f9a809ee03a3b164df259f98a6101..0000000000000000000000000000000000000000 --- a/checkpoint-28000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 28000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:51:22" -} \ No newline at end of file diff --git a/checkpoint-29000/chat_template.jinja b/checkpoint-29000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-29000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-29000/config.json b/checkpoint-29000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-29000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-29000/generation_config.json b/checkpoint-29000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-29000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-29000/model.safetensors b/checkpoint-29000/model.safetensors deleted file mode 100644 index 0e27b11314cb4929377247c561068a31a70ce5f3..0000000000000000000000000000000000000000 --- a/checkpoint-29000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9286f3c3b4b7d5ec419e5d5e5260fefb9f872630ba212cbca0425aa13320c5a6 -size 954310784 diff --git a/checkpoint-29000/optimizer.bin b/checkpoint-29000/optimizer.bin deleted file mode 100644 index b452639dbd991291fe6d25fb708130395f869131..0000000000000000000000000000000000000000 --- a/checkpoint-29000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d890d49646d77542f693645a18e7cdd8c71c8fc117f5e6b48fb034909fcd4c87 -size 1908743179 diff --git a/checkpoint-29000/scheduler.bin b/checkpoint-29000/scheduler.bin deleted file mode 100644 index 0251f6a7e154c0b8ad1d48aafdd7ea8237996f25..0000000000000000000000000000000000000000 --- a/checkpoint-29000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:17e819cac50eff12e57b981cde8f0522ab10c85256952b1ae60bb19538306e3d -size 1401 diff --git a/checkpoint-29000/tokenizer.json b/checkpoint-29000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-29000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-29000/tokenizer_config.json b/checkpoint-29000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-29000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-29000/train.json b/checkpoint-29000/train.json deleted file mode 100644 index 07b373225583e22572f4ce4c2bf9f706b2ccc5ee..0000000000000000000000000000000000000000 --- a/checkpoint-29000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 29000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 22:58:12" -} \ No newline at end of file diff --git a/checkpoint-3000/chat_template.jinja b/checkpoint-3000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-3000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-3000/config.json b/checkpoint-3000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-3000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-3000/generation_config.json b/checkpoint-3000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-3000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-3000/model.safetensors b/checkpoint-3000/model.safetensors deleted file mode 100644 index fdc63344115b5c17ae87fdb4b6bda123935a3bb2..0000000000000000000000000000000000000000 --- a/checkpoint-3000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:52a97338cd7e37c4710a1ad47934e8dd3e8b1cc59a8f75bb243b360c6e8d2f61 -size 954310784 diff --git a/checkpoint-3000/optimizer.bin b/checkpoint-3000/optimizer.bin deleted file mode 100644 index f8f75481452d9b68977854a9be439b6a478ff7c3..0000000000000000000000000000000000000000 --- a/checkpoint-3000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22674f465dfa5d23891626170cf77dc926dae990c1a22f87b9540d52d689ca6c -size 1908743179 diff --git a/checkpoint-3000/scheduler.bin b/checkpoint-3000/scheduler.bin deleted file mode 100644 index eddd7c19f372e905bfbbbe0249c5c681a242ea91..0000000000000000000000000000000000000000 --- a/checkpoint-3000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b31a971bab9cfaaac169e70dc585979a1f9493b0bea07d9fb564a6f5ea7671f7 -size 1401 diff --git a/checkpoint-3000/tokenizer.json b/checkpoint-3000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-3000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-3000/tokenizer_config.json b/checkpoint-3000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-3000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-3000/train.json b/checkpoint-3000/train.json deleted file mode 100644 index eb46c6e5062708493e76b3e08a6593614e2d28a0..0000000000000000000000000000000000000000 --- a/checkpoint-3000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 3000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:01:44" -} \ No newline at end of file diff --git a/checkpoint-30000/chat_template.jinja b/checkpoint-30000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-30000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-30000/config.json b/checkpoint-30000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-30000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-30000/generation_config.json b/checkpoint-30000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-30000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-30000/model.safetensors b/checkpoint-30000/model.safetensors deleted file mode 100644 index ece023cb6f1bd57b25875a9fab71586d078f0205..0000000000000000000000000000000000000000 --- a/checkpoint-30000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a51cec51679048706e8164605fb8a360c97e2a80341c1aa7130346fbc0356227 -size 954310784 diff --git a/checkpoint-30000/optimizer.bin b/checkpoint-30000/optimizer.bin deleted file mode 100644 index bbdc03807ffc78bc99179aafbb55baaede77819e..0000000000000000000000000000000000000000 --- a/checkpoint-30000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e3aced2da4d98913e2f88de08bc166ddc4f8bbe7fd0b05034c93fe97e4bb539 -size 1908743179 diff --git a/checkpoint-30000/scheduler.bin b/checkpoint-30000/scheduler.bin deleted file mode 100644 index bbc2f4d97d9e05f9c8ed5bd2718c5bfd76fc7c10..0000000000000000000000000000000000000000 --- a/checkpoint-30000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42702ed3a59b340700aab05cff426ee1f38a30bcb5397b4e0ed69a16cb51f417 -size 1401 diff --git a/checkpoint-30000/tokenizer.json b/checkpoint-30000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-30000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-30000/tokenizer_config.json b/checkpoint-30000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-30000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-30000/train.json b/checkpoint-30000/train.json deleted file mode 100644 index ea8a5b5c6902af318f25f2d3905226103ae01979..0000000000000000000000000000000000000000 --- a/checkpoint-30000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 30000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:04:59" -} \ No newline at end of file diff --git a/checkpoint-31000/chat_template.jinja b/checkpoint-31000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-31000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-31000/config.json b/checkpoint-31000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-31000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-31000/generation_config.json b/checkpoint-31000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-31000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-31000/model.safetensors b/checkpoint-31000/model.safetensors deleted file mode 100644 index 4b5a481329555c1a824b9b800af40a16a28921d2..0000000000000000000000000000000000000000 --- a/checkpoint-31000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70b8395006a88543c40bcb64239d1e07e4b3f36947d40530192508415d847cc0 -size 954310784 diff --git a/checkpoint-31000/optimizer.bin b/checkpoint-31000/optimizer.bin deleted file mode 100644 index f1516418f5883aad6384987b9711f0defc6f064c..0000000000000000000000000000000000000000 --- a/checkpoint-31000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd93efa27a1ff6445eb26096b7e17cf32156a83eefa15d3a09a0b9afb26fb454 -size 1908743179 diff --git a/checkpoint-31000/scheduler.bin b/checkpoint-31000/scheduler.bin deleted file mode 100644 index b664b6ac453d7c58f6c7aa0f6103bc058fccfacd..0000000000000000000000000000000000000000 --- a/checkpoint-31000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:649e08471f82f2503b915565a357f8a0bcc2f1d98808d4a70e6666523a4a941e -size 1401 diff --git a/checkpoint-31000/tokenizer.json b/checkpoint-31000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-31000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-31000/tokenizer_config.json b/checkpoint-31000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-31000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-31000/train.json b/checkpoint-31000/train.json deleted file mode 100644 index 9662b34eb30c237b0e2c80430150813e16adaaec..0000000000000000000000000000000000000000 --- a/checkpoint-31000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 31000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:11:46" -} \ No newline at end of file diff --git a/checkpoint-32000/chat_template.jinja b/checkpoint-32000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-32000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-32000/config.json b/checkpoint-32000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-32000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-32000/generation_config.json b/checkpoint-32000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-32000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-32000/model.safetensors b/checkpoint-32000/model.safetensors deleted file mode 100644 index 8689198e747123bac03f2dc0662f370e16d8b430..0000000000000000000000000000000000000000 --- a/checkpoint-32000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48fd875cfd6572264940c05cb243aebfeaa23083be271dea215db3e24ebd5c3d -size 954310784 diff --git a/checkpoint-32000/optimizer.bin b/checkpoint-32000/optimizer.bin deleted file mode 100644 index acbef4f3801314882cdc3f3a33f81b3d11a0a96f..0000000000000000000000000000000000000000 --- a/checkpoint-32000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cc8bbc3e50c52ef300125ccf0e08c53abca651c00f705ec40344a828e62a071 -size 1908743179 diff --git a/checkpoint-32000/scheduler.bin b/checkpoint-32000/scheduler.bin deleted file mode 100644 index c04f7a88d3c802193c5fcbdefa0a6615db528b3a..0000000000000000000000000000000000000000 --- a/checkpoint-32000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a183e56978d19d9c27f8d59dbd90c92059ebfc8c64fe1206c876006392e35ac7 -size 1401 diff --git a/checkpoint-32000/tokenizer.json b/checkpoint-32000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-32000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-32000/tokenizer_config.json b/checkpoint-32000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-32000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-32000/train.json b/checkpoint-32000/train.json deleted file mode 100644 index 2dac471faa82ba84b50be35ef2d0fddca89a02ab..0000000000000000000000000000000000000000 --- a/checkpoint-32000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 32000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:18:31" -} \ No newline at end of file diff --git a/checkpoint-33000/chat_template.jinja b/checkpoint-33000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-33000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-33000/config.json b/checkpoint-33000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-33000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-33000/generation_config.json b/checkpoint-33000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-33000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-33000/model.safetensors b/checkpoint-33000/model.safetensors deleted file mode 100644 index ebac8c98b268d8b2a146a756d365ad3e06d8972c..0000000000000000000000000000000000000000 --- a/checkpoint-33000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc3c2360aecc6668fce956e7c2b43e492ae2009b1afc9e45db109b3ecf2e9f91 -size 954310784 diff --git a/checkpoint-33000/optimizer.bin b/checkpoint-33000/optimizer.bin deleted file mode 100644 index 249fe7eb9e11e4cd161c74e5012bed50bf9f678d..0000000000000000000000000000000000000000 --- a/checkpoint-33000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d3c03d80659db6e083035c1ecc6e02505f6f09cabf9507876a706d3ef0b2e22d -size 1908743179 diff --git a/checkpoint-33000/scheduler.bin b/checkpoint-33000/scheduler.bin deleted file mode 100644 index 5549eb97d57e8c53313a0515c9c330dbae4cc6d7..0000000000000000000000000000000000000000 --- a/checkpoint-33000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:799c2b0303d7a1ffd90b87f0633f29029f3335d29db5033c44db68c1ec8c7546 -size 1465 diff --git a/checkpoint-33000/tokenizer.json b/checkpoint-33000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-33000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-33000/tokenizer_config.json b/checkpoint-33000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-33000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-33000/train.json b/checkpoint-33000/train.json deleted file mode 100644 index 46ad02b2fb4e2fb8c35ec88a0f430a9a7a9255b7..0000000000000000000000000000000000000000 --- a/checkpoint-33000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 33000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:25:15" -} \ No newline at end of file diff --git a/checkpoint-34000/chat_template.jinja b/checkpoint-34000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-34000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-34000/config.json b/checkpoint-34000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-34000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-34000/generation_config.json b/checkpoint-34000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-34000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-34000/model.safetensors b/checkpoint-34000/model.safetensors deleted file mode 100644 index 3fc9a3666fceb962b6e187be16afd61c5dedde8d..0000000000000000000000000000000000000000 --- a/checkpoint-34000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:508993cf049e83805c2a40e72053f7bad73ed3a9ea8b6d4cbb7f5fa2f5b366de -size 954310784 diff --git a/checkpoint-34000/optimizer.bin b/checkpoint-34000/optimizer.bin deleted file mode 100644 index e58a43e3010921400e4f989676382451a56133f6..0000000000000000000000000000000000000000 --- a/checkpoint-34000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b2d3b661e3060551092190752e2c78f7325b2512ace40598c80c1a7105d9469 -size 1908743179 diff --git a/checkpoint-34000/scheduler.bin b/checkpoint-34000/scheduler.bin deleted file mode 100644 index 2a71d83d8e74ce751deadacd835bb71d4664f1f0..0000000000000000000000000000000000000000 --- a/checkpoint-34000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:308a0a2abeb82a55ce1766be79c8ed2f53779bb1fdfe67250eb8de073128cb86 -size 1465 diff --git a/checkpoint-34000/tokenizer.json b/checkpoint-34000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-34000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-34000/tokenizer_config.json b/checkpoint-34000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-34000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-34000/train.json b/checkpoint-34000/train.json deleted file mode 100644 index 37554621a22f6e7df1d9b41b018b6e723b8f780e..0000000000000000000000000000000000000000 --- a/checkpoint-34000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 34000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:32:01" -} \ No newline at end of file diff --git a/checkpoint-35000/chat_template.jinja b/checkpoint-35000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-35000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-35000/config.json b/checkpoint-35000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-35000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-35000/generation_config.json b/checkpoint-35000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-35000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-35000/model.safetensors b/checkpoint-35000/model.safetensors deleted file mode 100644 index 3feffd73708f240df29769b62054fc98a27ce9e0..0000000000000000000000000000000000000000 --- a/checkpoint-35000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a262fee730832a36a949bf0cde305a17b3ce6f32089b46a4de8b06aa4feba0b1 -size 954310784 diff --git a/checkpoint-35000/optimizer.bin b/checkpoint-35000/optimizer.bin deleted file mode 100644 index fc118cd0086e77524f590f1ff280ce7170029d9c..0000000000000000000000000000000000000000 --- a/checkpoint-35000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:118baeaad8f82179f84b89a17b44c60bf48337fa9be3ff13046143ab893cbca8 -size 1908743179 diff --git a/checkpoint-35000/scheduler.bin b/checkpoint-35000/scheduler.bin deleted file mode 100644 index c329e9218cfa747fa4f86030a1b8df2da04de471..0000000000000000000000000000000000000000 --- a/checkpoint-35000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef6097f7015274f59bdc46ca781efe3ca0b9cac5a02583cd86bfee44663824d4 -size 1465 diff --git a/checkpoint-35000/tokenizer.json b/checkpoint-35000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-35000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-35000/tokenizer_config.json b/checkpoint-35000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-35000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-35000/train.json b/checkpoint-35000/train.json deleted file mode 100644 index 29081fa74ba397fd074d9d0c989b823cefac3aab..0000000000000000000000000000000000000000 --- a/checkpoint-35000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 35000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:38:46" -} \ No newline at end of file diff --git a/checkpoint-36000/chat_template.jinja b/checkpoint-36000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-36000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-36000/config.json b/checkpoint-36000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-36000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-36000/generation_config.json b/checkpoint-36000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-36000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-36000/model.safetensors b/checkpoint-36000/model.safetensors deleted file mode 100644 index c68af91d851dbdecad098c61b80731c905526cdc..0000000000000000000000000000000000000000 --- a/checkpoint-36000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6439781f074e8ea405b3d343cfa88179f0afc24ef54772afa943198c0ed1549e -size 954310784 diff --git a/checkpoint-36000/optimizer.bin b/checkpoint-36000/optimizer.bin deleted file mode 100644 index dc62d33e4a095a9322deb410b2f2fd473787473a..0000000000000000000000000000000000000000 --- a/checkpoint-36000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:028d4021455ffbb3e8c50af09f304d7fcf7e1d4c36b5357e289e44c8b83a64c7 -size 1908743179 diff --git a/checkpoint-36000/scheduler.bin b/checkpoint-36000/scheduler.bin deleted file mode 100644 index f4a7c63ba23cb2ebafad8bf789e53abdfe0079a8..0000000000000000000000000000000000000000 --- a/checkpoint-36000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5aaa7e4c4347b101cbaf39f9ce187ca63f7bf1062b183ecd108f8bd121ebe5f -size 1465 diff --git a/checkpoint-36000/tokenizer.json b/checkpoint-36000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-36000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-36000/tokenizer_config.json b/checkpoint-36000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-36000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-36000/train.json b/checkpoint-36000/train.json deleted file mode 100644 index 46d60aa49c0c5919756eab3de93ad422db9626dd..0000000000000000000000000000000000000000 --- a/checkpoint-36000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 36000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:45:36" -} \ No newline at end of file diff --git a/checkpoint-37000/chat_template.jinja b/checkpoint-37000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-37000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-37000/config.json b/checkpoint-37000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-37000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-37000/generation_config.json b/checkpoint-37000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-37000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-37000/model.safetensors b/checkpoint-37000/model.safetensors deleted file mode 100644 index e9570ebec67f7e08cebb3aea38b8678203396b93..0000000000000000000000000000000000000000 --- a/checkpoint-37000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfd8e8ed8d8ebc79312456c42caabd56d8a43667ec78394469ce5f766f6b18a8 -size 954310784 diff --git a/checkpoint-37000/optimizer.bin b/checkpoint-37000/optimizer.bin deleted file mode 100644 index 62db62fb2c53723911d0c60fd5129d952c851929..0000000000000000000000000000000000000000 --- a/checkpoint-37000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5440ca0156fb6e9d449176a1bf3baca6499107bd1474eb117718082cc9eb58f5 -size 1908743179 diff --git a/checkpoint-37000/scheduler.bin b/checkpoint-37000/scheduler.bin deleted file mode 100644 index 24d8fa22377f68c03240944fe39d0c2670fda35e..0000000000000000000000000000000000000000 --- a/checkpoint-37000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc0290cdc3de1821b3e83cc69f1901077fc6ce9971b49af8500a37ed7816a514 -size 1465 diff --git a/checkpoint-37000/tokenizer.json b/checkpoint-37000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-37000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-37000/tokenizer_config.json b/checkpoint-37000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-37000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-37000/train.json b/checkpoint-37000/train.json deleted file mode 100644 index c43ae1b31d0d53ac88c473ca3a8fc78303874ea0..0000000000000000000000000000000000000000 --- a/checkpoint-37000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 37000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:52:22" -} \ No newline at end of file diff --git a/checkpoint-38000/chat_template.jinja b/checkpoint-38000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-38000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-38000/config.json b/checkpoint-38000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-38000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-38000/generation_config.json b/checkpoint-38000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-38000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-38000/model.safetensors b/checkpoint-38000/model.safetensors deleted file mode 100644 index 9583349f12f61afdaa469396f2e2c4f445912a6c..0000000000000000000000000000000000000000 --- a/checkpoint-38000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4a2ffba20c3985895aa23be0dec86f95bde769073e726cc5902b6f031de64d66 -size 954310784 diff --git a/checkpoint-38000/optimizer.bin b/checkpoint-38000/optimizer.bin deleted file mode 100644 index 4d133bf8f73998a3a4834664b3b13486259ce8af..0000000000000000000000000000000000000000 --- a/checkpoint-38000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9523b908bdb884603d44d4780121bf683efca040e41639e616c810b212b7486 -size 1908743179 diff --git a/checkpoint-38000/scheduler.bin b/checkpoint-38000/scheduler.bin deleted file mode 100644 index 6965f3ace7f28b1220a95e7e4bf08afef8e0c01b..0000000000000000000000000000000000000000 --- a/checkpoint-38000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cfd0dff42208645b2525f90a3e5a45dc48d99204cb57512a91febef5a7c6792 -size 1465 diff --git a/checkpoint-38000/tokenizer.json b/checkpoint-38000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-38000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-38000/tokenizer_config.json b/checkpoint-38000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-38000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-38000/train.json b/checkpoint-38000/train.json deleted file mode 100644 index fc99c4ad454a8efb3782bf4671572cddfe8e6574..0000000000000000000000000000000000000000 --- a/checkpoint-38000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 38000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 23:59:05" -} \ No newline at end of file diff --git a/checkpoint-39000/chat_template.jinja b/checkpoint-39000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-39000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-39000/config.json b/checkpoint-39000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-39000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-39000/generation_config.json b/checkpoint-39000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-39000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-39000/model.safetensors b/checkpoint-39000/model.safetensors deleted file mode 100644 index 21a90d88f5734baa95acd7fabe4d380ac24882d6..0000000000000000000000000000000000000000 --- a/checkpoint-39000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7364d161822bbf11088f6fe5ee66df8807ef0bebbbbf7ac4b4e93c9583c218e8 -size 954310784 diff --git a/checkpoint-39000/optimizer.bin b/checkpoint-39000/optimizer.bin deleted file mode 100644 index 2e41ae81e9cdfe195fd431adecd6b99ad6b4cd78..0000000000000000000000000000000000000000 --- a/checkpoint-39000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c59d04e7c55d00a89459eca24042dfb00d572be6dba35e0d4b43dfc985f4b38a -size 1908743179 diff --git a/checkpoint-39000/scheduler.bin b/checkpoint-39000/scheduler.bin deleted file mode 100644 index 415cbe8281d60c8e2d3f16c57bc742f2bfe9dd73..0000000000000000000000000000000000000000 --- a/checkpoint-39000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:735858a4e0f5014a1a8d0b1e1343cf4e13f44dc38e7f7f7d8217a64f5fcf189f -size 1465 diff --git a/checkpoint-39000/tokenizer.json b/checkpoint-39000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-39000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-39000/tokenizer_config.json b/checkpoint-39000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-39000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-39000/train.json b/checkpoint-39000/train.json deleted file mode 100644 index d97edc2449546fbdb545a62f61b3f6fdd67de80c..0000000000000000000000000000000000000000 --- a/checkpoint-39000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 39000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:05:49" -} \ No newline at end of file diff --git a/checkpoint-4000/chat_template.jinja b/checkpoint-4000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-4000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-4000/config.json b/checkpoint-4000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-4000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-4000/generation_config.json b/checkpoint-4000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-4000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-4000/model.safetensors b/checkpoint-4000/model.safetensors deleted file mode 100644 index 2edbd2884a4763da98af276b387b32ca9bae62b0..0000000000000000000000000000000000000000 --- a/checkpoint-4000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19bbea2b1860d49adf317c68405c05ea100c9c4784ac40709ba95b2fd0543b67 -size 954310784 diff --git a/checkpoint-4000/optimizer.bin b/checkpoint-4000/optimizer.bin deleted file mode 100644 index 6e40f4c5ee8a58963e44f36e3595abd380c6fc31..0000000000000000000000000000000000000000 --- a/checkpoint-4000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2eaa5aa72bc87b01f8925e459127d098e30175e52dce23c2acb9bcf43f908324 -size 1908743179 diff --git a/checkpoint-4000/scheduler.bin b/checkpoint-4000/scheduler.bin deleted file mode 100644 index 804232e42314f0762a9b3a3bdcfeba5132101999..0000000000000000000000000000000000000000 --- a/checkpoint-4000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5637bcd7aadc09da2228382080e0a50d98f59730fbce354d692357869c36446a -size 1401 diff --git a/checkpoint-4000/tokenizer.json b/checkpoint-4000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-4000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-4000/tokenizer_config.json b/checkpoint-4000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-4000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-4000/train.json b/checkpoint-4000/train.json deleted file mode 100644 index 87ca2bf8e35c85320993f2ad5f39cea66d8eacb6..0000000000000000000000000000000000000000 --- a/checkpoint-4000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 4000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:08:27" -} \ No newline at end of file diff --git a/checkpoint-40000/chat_template.jinja b/checkpoint-40000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-40000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-40000/config.json b/checkpoint-40000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-40000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-40000/generation_config.json b/checkpoint-40000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-40000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-40000/model.safetensors b/checkpoint-40000/model.safetensors deleted file mode 100644 index 1bd2c45b0c6278a9771212632cd1a57e7f737b03..0000000000000000000000000000000000000000 --- a/checkpoint-40000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:135e83cabe4af05a25b527c7d6d05ab07960da9325b246652434e2a3a0b2d164 -size 954310784 diff --git a/checkpoint-40000/optimizer.bin b/checkpoint-40000/optimizer.bin deleted file mode 100644 index ad0193000808735cdfaf2c0084cd6fe7bce5ea60..0000000000000000000000000000000000000000 --- a/checkpoint-40000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:14ea831cbdb77b3dd7b8d718ee9c2abf2fea592fe3bee9f69d8e4eba7532f06f -size 1908743179 diff --git a/checkpoint-40000/scheduler.bin b/checkpoint-40000/scheduler.bin deleted file mode 100644 index 53d8e9d4c43ff8b7002f32eb44be4e562106bdda..0000000000000000000000000000000000000000 --- a/checkpoint-40000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:089568391ddd55ac019a071933742d8570aab65cabc76f6080d1da821b8eeacb -size 1465 diff --git a/checkpoint-40000/tokenizer.json b/checkpoint-40000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-40000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-40000/tokenizer_config.json b/checkpoint-40000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-40000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-40000/train.json b/checkpoint-40000/train.json deleted file mode 100644 index ad5082a7ec4fc244cb4e00bbdd0d25e95487f803..0000000000000000000000000000000000000000 --- a/checkpoint-40000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 40000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:12:35" -} \ No newline at end of file diff --git a/checkpoint-41000/chat_template.jinja b/checkpoint-41000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-41000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-41000/config.json b/checkpoint-41000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-41000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-41000/generation_config.json b/checkpoint-41000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-41000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-41000/model.safetensors b/checkpoint-41000/model.safetensors deleted file mode 100644 index c885da9a54561ac4d3509d54a7a4c469c90af3d5..0000000000000000000000000000000000000000 --- a/checkpoint-41000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce61376ac5067c4e9aca25653e841d2348b4c3e6f99a7a84edd053f94ad8d4f2 -size 954310784 diff --git a/checkpoint-41000/optimizer.bin b/checkpoint-41000/optimizer.bin deleted file mode 100644 index 2f90b51211892ddfaa9eff407b0ff77a3a7da1d4..0000000000000000000000000000000000000000 --- a/checkpoint-41000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b6c424443e567921ceb9d9f0880ad6a825319954fde073b1bd410219da8b08a -size 1908743179 diff --git a/checkpoint-41000/scheduler.bin b/checkpoint-41000/scheduler.bin deleted file mode 100644 index c4a1015759fcd37440fa02e27a20f8f5dcf3a0b3..0000000000000000000000000000000000000000 --- a/checkpoint-41000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eeb147f51a85113a26393e23ce475a784ed7cd0b8d32af54acf11b2f0ec64636 -size 1465 diff --git a/checkpoint-41000/tokenizer.json b/checkpoint-41000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-41000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-41000/tokenizer_config.json b/checkpoint-41000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-41000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-41000/train.json b/checkpoint-41000/train.json deleted file mode 100644 index 727e51bab319c991ec6068ed6bfd2fa88865ea74..0000000000000000000000000000000000000000 --- a/checkpoint-41000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 41000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:19:21" -} \ No newline at end of file diff --git a/checkpoint-42000/chat_template.jinja b/checkpoint-42000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-42000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-42000/config.json b/checkpoint-42000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-42000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-42000/generation_config.json b/checkpoint-42000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-42000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-42000/model.safetensors b/checkpoint-42000/model.safetensors deleted file mode 100644 index 2b371aaae6163d16fc5336e88be2ab0b1595edfd..0000000000000000000000000000000000000000 --- a/checkpoint-42000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bff9916aa45e80a157737ea8b61e5f4ed42d9577fb4e7de06026027cb10ec614 -size 954310784 diff --git a/checkpoint-42000/optimizer.bin b/checkpoint-42000/optimizer.bin deleted file mode 100644 index 75aa6f436ba0e2bdbada1952f275dc2690312b5f..0000000000000000000000000000000000000000 --- a/checkpoint-42000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:724ba2a5bc337105eec9c3b1ee7de4ca85e065cfad6af02a65e7f6b9d03320ff -size 1908743179 diff --git a/checkpoint-42000/scheduler.bin b/checkpoint-42000/scheduler.bin deleted file mode 100644 index 560a915ffadc59199f32e404aa8a4a8ef1c566cc..0000000000000000000000000000000000000000 --- a/checkpoint-42000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d5ca370b205492d145886c85e0c3f4665b14079f416609432b5ab8acc803e18 -size 1465 diff --git a/checkpoint-42000/tokenizer.json b/checkpoint-42000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-42000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-42000/tokenizer_config.json b/checkpoint-42000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-42000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-42000/train.json b/checkpoint-42000/train.json deleted file mode 100644 index 8a4a732db6a370765bf6500d5be6eb75464dfe2b..0000000000000000000000000000000000000000 --- a/checkpoint-42000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 42000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:26:06" -} \ No newline at end of file diff --git a/checkpoint-43000/chat_template.jinja b/checkpoint-43000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-43000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-43000/config.json b/checkpoint-43000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-43000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-43000/generation_config.json b/checkpoint-43000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-43000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-43000/model.safetensors b/checkpoint-43000/model.safetensors deleted file mode 100644 index ef1861e974fac81bd6fca1b0f78ce8e4da3bd777..0000000000000000000000000000000000000000 --- a/checkpoint-43000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24702709d5375bd5a9c789dc8a145e1df56389e25f2e35248654c70827c4e53f -size 954310784 diff --git a/checkpoint-43000/optimizer.bin b/checkpoint-43000/optimizer.bin deleted file mode 100644 index d38022ea831c9169d9712696bba103da475ac6fc..0000000000000000000000000000000000000000 --- a/checkpoint-43000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccc132bee52df3dd9a60b70eedec8c442e65320f38606b65e3085a8e77cb6862 -size 1908743179 diff --git a/checkpoint-43000/scheduler.bin b/checkpoint-43000/scheduler.bin deleted file mode 100644 index c282149150f2786e2e762a499eea4e774a0d4e81..0000000000000000000000000000000000000000 --- a/checkpoint-43000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b0aed7fd58f4e4e38f0db50a78d798222eeccffc9bd1b8b9a88933b00ba9254 -size 1465 diff --git a/checkpoint-43000/tokenizer.json b/checkpoint-43000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-43000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-43000/tokenizer_config.json b/checkpoint-43000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-43000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-43000/train.json b/checkpoint-43000/train.json deleted file mode 100644 index ec8d5d80ec0555632a37f66837ef0d89f49f8e00..0000000000000000000000000000000000000000 --- a/checkpoint-43000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 43000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:32:50" -} \ No newline at end of file diff --git a/checkpoint-44000/chat_template.jinja b/checkpoint-44000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-44000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-44000/config.json b/checkpoint-44000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-44000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-44000/generation_config.json b/checkpoint-44000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-44000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-44000/model.safetensors b/checkpoint-44000/model.safetensors deleted file mode 100644 index 3881cbf473db4f324aeac17038d82077db54d3f5..0000000000000000000000000000000000000000 --- a/checkpoint-44000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0775980573b9c78d0a3c1aef6d574ed2273aeb9b4c4d758e705edc8a0d11f822 -size 954310784 diff --git a/checkpoint-44000/optimizer.bin b/checkpoint-44000/optimizer.bin deleted file mode 100644 index e6b8ad8074250d5b5f19896771d52b37719edb47..0000000000000000000000000000000000000000 --- a/checkpoint-44000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1313e7db77f460ecdde61e9bab6876501fe0aec9bd9bba6e259cdfcb6ddfce12 -size 1908743179 diff --git a/checkpoint-44000/scheduler.bin b/checkpoint-44000/scheduler.bin deleted file mode 100644 index ee0a0decf4d4f07344e6a0be9ec0f2f33585f72d..0000000000000000000000000000000000000000 --- a/checkpoint-44000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75b0105bc6ba507a7e5cebb19a5d10aaf61ccd4f2fc5b2113533d494bcbed052 -size 1465 diff --git a/checkpoint-44000/tokenizer.json b/checkpoint-44000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-44000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-44000/tokenizer_config.json b/checkpoint-44000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-44000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-44000/train.json b/checkpoint-44000/train.json deleted file mode 100644 index efbc37010c879796f0d6ee287f48d2e5f61a7a1e..0000000000000000000000000000000000000000 --- a/checkpoint-44000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 44000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:39:35" -} \ No newline at end of file diff --git a/checkpoint-45000/chat_template.jinja b/checkpoint-45000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-45000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-45000/config.json b/checkpoint-45000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-45000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-45000/generation_config.json b/checkpoint-45000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-45000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-45000/model.safetensors b/checkpoint-45000/model.safetensors deleted file mode 100644 index 49d584322fef4585fab487bf7d89a5bffd70b940..0000000000000000000000000000000000000000 --- a/checkpoint-45000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2cefd55a2058bf290c940be499d6b8d339ab848552f39e18da39037fe5a37d2 -size 954310784 diff --git a/checkpoint-45000/optimizer.bin b/checkpoint-45000/optimizer.bin deleted file mode 100644 index 6d85641d2c6ccca12a1d8f3108c4e3787f3dc822..0000000000000000000000000000000000000000 --- a/checkpoint-45000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c13f56b4126e66608c9eb3cfeb4d33e3e6656c4981954fb759de51fe96228199 -size 1908743179 diff --git a/checkpoint-45000/scheduler.bin b/checkpoint-45000/scheduler.bin deleted file mode 100644 index 5eb428df850f217544da906890057bc53c5b456f..0000000000000000000000000000000000000000 --- a/checkpoint-45000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c679874952b510b911be41737e335afeed0e5dbfd970257d81b95a781f008ae7 -size 1465 diff --git a/checkpoint-45000/tokenizer.json b/checkpoint-45000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-45000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-45000/tokenizer_config.json b/checkpoint-45000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-45000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-45000/train.json b/checkpoint-45000/train.json deleted file mode 100644 index 7388e5a7a30c5208ae561b4fbc68387e10651ab8..0000000000000000000000000000000000000000 --- a/checkpoint-45000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 45000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:46:22" -} \ No newline at end of file diff --git a/checkpoint-46000/chat_template.jinja b/checkpoint-46000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-46000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-46000/config.json b/checkpoint-46000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-46000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-46000/generation_config.json b/checkpoint-46000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-46000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-46000/model.safetensors b/checkpoint-46000/model.safetensors deleted file mode 100644 index 3046cbebc7865834d8fbcd1babfffaa5feab790e..0000000000000000000000000000000000000000 --- a/checkpoint-46000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4fdab492a6c38594e3abf958f48cd032056308f28a3ef9d48e9520518ca4e9e -size 954310784 diff --git a/checkpoint-46000/optimizer.bin b/checkpoint-46000/optimizer.bin deleted file mode 100644 index 6ad87bac324a7372173c2e70ef6992abc2889371..0000000000000000000000000000000000000000 --- a/checkpoint-46000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef6a99c8de2b71398bee93ef702fc1b0d58065582288e35f5173316d22e8e020 -size 1908743179 diff --git a/checkpoint-46000/scheduler.bin b/checkpoint-46000/scheduler.bin deleted file mode 100644 index 593d38aa814b47d4f68e457bcce9eda700ce0494..0000000000000000000000000000000000000000 --- a/checkpoint-46000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d28c3f13b0f84c9ad683af92f7e73ea7ce23598c7e2b664465f8d2b481382c35 -size 1465 diff --git a/checkpoint-46000/tokenizer.json b/checkpoint-46000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-46000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-46000/tokenizer_config.json b/checkpoint-46000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-46000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-46000/train.json b/checkpoint-46000/train.json deleted file mode 100644 index da83e04fbe1c13c6ac4318b7b644467e63ccceef..0000000000000000000000000000000000000000 --- a/checkpoint-46000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 46000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:53:07" -} \ No newline at end of file diff --git a/checkpoint-47000/chat_template.jinja b/checkpoint-47000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-47000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-47000/config.json b/checkpoint-47000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-47000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-47000/generation_config.json b/checkpoint-47000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-47000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-47000/model.safetensors b/checkpoint-47000/model.safetensors deleted file mode 100644 index 3e4d491b7ab8acf4fc7ce67dfe0dac095725cb5b..0000000000000000000000000000000000000000 --- a/checkpoint-47000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4ebc116372b49f6eaafbf18134bd22960d8b157431f0f179760756994d0fae4b -size 954310784 diff --git a/checkpoint-47000/optimizer.bin b/checkpoint-47000/optimizer.bin deleted file mode 100644 index ce623df049f62d01663046858dcbcccceac437f0..0000000000000000000000000000000000000000 --- a/checkpoint-47000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7956349eb6ee7090048bb48fee3f2e1eb59500810ca34a6f2342019f9861a7c6 -size 1908743179 diff --git a/checkpoint-47000/scheduler.bin b/checkpoint-47000/scheduler.bin deleted file mode 100644 index b14d10c9860244d3376d1bdaeaae1e1e8a52d09b..0000000000000000000000000000000000000000 --- a/checkpoint-47000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6377e35d923f5994bbedfff7242d35f79cc276c08396ea00020c82f098630f78 -size 1465 diff --git a/checkpoint-47000/tokenizer.json b/checkpoint-47000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-47000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-47000/tokenizer_config.json b/checkpoint-47000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-47000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-47000/train.json b/checkpoint-47000/train.json deleted file mode 100644 index d1f8038ef773f29f7e6a4e1351d00e98f47f7659..0000000000000000000000000000000000000000 --- a/checkpoint-47000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 47000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 00:59:55" -} \ No newline at end of file diff --git a/checkpoint-48000/chat_template.jinja b/checkpoint-48000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-48000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-48000/config.json b/checkpoint-48000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-48000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-48000/generation_config.json b/checkpoint-48000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-48000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-48000/model.safetensors b/checkpoint-48000/model.safetensors deleted file mode 100644 index c1016a9804139bda2c25f8b0c7950c6f8f2f624a..0000000000000000000000000000000000000000 --- a/checkpoint-48000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29f3925b6354823b527d47cb960be7058ef111577f8bf363f3964d08a93b2502 -size 954310784 diff --git a/checkpoint-48000/optimizer.bin b/checkpoint-48000/optimizer.bin deleted file mode 100644 index 51f42e3533a5064e44bedee6cdafa386bdc2863d..0000000000000000000000000000000000000000 --- a/checkpoint-48000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f526f828deaebcb81381b984767030e64692993bbcbdce584473536798ff8ef -size 1908743179 diff --git a/checkpoint-48000/scheduler.bin b/checkpoint-48000/scheduler.bin deleted file mode 100644 index b0ead7a13b5917f98684bec9c0c01071dc6fc48b..0000000000000000000000000000000000000000 --- a/checkpoint-48000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:214e790e48e3a1402fd3fe911fa8ee198ac7c963b29b1d32a90099dafb15e220 -size 1465 diff --git a/checkpoint-48000/tokenizer.json b/checkpoint-48000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-48000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-48000/tokenizer_config.json b/checkpoint-48000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-48000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-48000/train.json b/checkpoint-48000/train.json deleted file mode 100644 index a5f6885d2e9325fbfeece78063689041f0f4ca4e..0000000000000000000000000000000000000000 --- a/checkpoint-48000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 48000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:06:44" -} \ No newline at end of file diff --git a/checkpoint-49000/chat_template.jinja b/checkpoint-49000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-49000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-49000/config.json b/checkpoint-49000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-49000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-49000/generation_config.json b/checkpoint-49000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-49000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-49000/model.safetensors b/checkpoint-49000/model.safetensors deleted file mode 100644 index 49478e48f447fc466fe32d07bc0c7ed3458fff36..0000000000000000000000000000000000000000 --- a/checkpoint-49000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e6a110ec49f17e597b76e5410ac3c4fc32dd066885666d5a4a6c388337eaa174 -size 954310784 diff --git a/checkpoint-49000/optimizer.bin b/checkpoint-49000/optimizer.bin deleted file mode 100644 index 497f77cf9c356402c8c3a4158237d537d4772795..0000000000000000000000000000000000000000 --- a/checkpoint-49000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd3a94a0084eb65c7bfc11b1fb116b92489c90bfc6599c3803375c31bbb70d30 -size 1908743179 diff --git a/checkpoint-49000/scheduler.bin b/checkpoint-49000/scheduler.bin deleted file mode 100644 index 8c955f86cbce4675d89da39d0771a2a8a26437cb..0000000000000000000000000000000000000000 --- a/checkpoint-49000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e66e3dc4790efbe2fa0942fdf7f53217d0ac65e633ff616d40739f36777d7c9c -size 1465 diff --git a/checkpoint-49000/tokenizer.json b/checkpoint-49000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-49000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-49000/tokenizer_config.json b/checkpoint-49000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-49000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-49000/train.json b/checkpoint-49000/train.json deleted file mode 100644 index 9dbd94afef3828d406be5579b2f8dc74ef716ac5..0000000000000000000000000000000000000000 --- a/checkpoint-49000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 49000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:13:34" -} \ No newline at end of file diff --git a/checkpoint-5000/chat_template.jinja b/checkpoint-5000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-5000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-5000/config.json b/checkpoint-5000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-5000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-5000/generation_config.json b/checkpoint-5000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-5000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-5000/model.safetensors b/checkpoint-5000/model.safetensors deleted file mode 100644 index f886cb0be331159931cd4800abd29b93d37b1424..0000000000000000000000000000000000000000 --- a/checkpoint-5000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c58f160dce05f162c8592cd8e34eae1b3e01f1ad223b14b9d40ba4720742d79d -size 954310784 diff --git a/checkpoint-5000/optimizer.bin b/checkpoint-5000/optimizer.bin deleted file mode 100644 index e13921e299b157d9a026576559fc33fcec39b0a8..0000000000000000000000000000000000000000 --- a/checkpoint-5000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81298a5a9ac7eb12b033ab149c1eacddb5b58a242a4ca5b46356ffdf5f71472e -size 1908743179 diff --git a/checkpoint-5000/scheduler.bin b/checkpoint-5000/scheduler.bin deleted file mode 100644 index 1e6063513569dd9d915d36232a5224499566b59e..0000000000000000000000000000000000000000 --- a/checkpoint-5000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:213013df7c160e1953c5fb43cd4f03b28e4f1326ecfd6a307300a946216c95bb -size 1401 diff --git a/checkpoint-5000/tokenizer.json b/checkpoint-5000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-5000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-5000/tokenizer_config.json b/checkpoint-5000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-5000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-5000/train.json b/checkpoint-5000/train.json deleted file mode 100644 index 35edb6f96aa417bd3490adb5c4a1d1b4cd02931d..0000000000000000000000000000000000000000 --- a/checkpoint-5000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 5000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:15:12" -} \ No newline at end of file diff --git a/checkpoint-50000/chat_template.jinja b/checkpoint-50000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-50000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-50000/config.json b/checkpoint-50000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-50000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-50000/generation_config.json b/checkpoint-50000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-50000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-50000/model.safetensors b/checkpoint-50000/model.safetensors deleted file mode 100644 index 842c5d37de7f794724058f6e21371232151627e0..0000000000000000000000000000000000000000 --- a/checkpoint-50000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec9a9146e3f69285cdea4a30311fc5583f52ce0d5a553655dbdace980a6fc9df -size 954310784 diff --git a/checkpoint-50000/optimizer.bin b/checkpoint-50000/optimizer.bin deleted file mode 100644 index bfae5dd0441582d6994b6f51aeeb2ac70479b0b7..0000000000000000000000000000000000000000 --- a/checkpoint-50000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebc222421958e0e0aae6c2ef8eb654cdb9a8250bc108e4707434df5dd61532b0 -size 1908743179 diff --git a/checkpoint-50000/scheduler.bin b/checkpoint-50000/scheduler.bin deleted file mode 100644 index 51eea7b25c4af1276e21c6ee2c8ea227b670fcb3..0000000000000000000000000000000000000000 --- a/checkpoint-50000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20cf5696d429ff1f2675af2a40dd20bdeaf33d95646f130e2bb0b20811fcbeef -size 1465 diff --git a/checkpoint-50000/tokenizer.json b/checkpoint-50000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-50000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-50000/tokenizer_config.json b/checkpoint-50000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-50000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-50000/train.json b/checkpoint-50000/train.json deleted file mode 100644 index c06e5427009a6acd5c65146772b727e550540a78..0000000000000000000000000000000000000000 --- a/checkpoint-50000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 50000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:20:20" -} \ No newline at end of file diff --git a/checkpoint-51000/chat_template.jinja b/checkpoint-51000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-51000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-51000/config.json b/checkpoint-51000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-51000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-51000/generation_config.json b/checkpoint-51000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-51000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-51000/model.safetensors b/checkpoint-51000/model.safetensors deleted file mode 100644 index 0424a326b4612c43c494df0098fedf5b9356623f..0000000000000000000000000000000000000000 --- a/checkpoint-51000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4485f00fdd3682895d3954b75bb2560ceb006923586b4b5e5357e7b3bf894fb -size 954310784 diff --git a/checkpoint-51000/optimizer.bin b/checkpoint-51000/optimizer.bin deleted file mode 100644 index a17c004e3f88b907e22c4ab69a4f1aef790ac5ed..0000000000000000000000000000000000000000 --- a/checkpoint-51000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d81be5e6519a92df2a84f4ba140f339df3779cad68db3ecb9a302788b83ae4f4 -size 1908743179 diff --git a/checkpoint-51000/scheduler.bin b/checkpoint-51000/scheduler.bin deleted file mode 100644 index 360b68776b0846fef634f30415f34ea7441e15cd..0000000000000000000000000000000000000000 --- a/checkpoint-51000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e506637d795634e72baba3036aaab9cc3b2d3efd256082b9ed67667137a50b19 -size 1465 diff --git a/checkpoint-51000/tokenizer.json b/checkpoint-51000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-51000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-51000/tokenizer_config.json b/checkpoint-51000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-51000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-51000/train.json b/checkpoint-51000/train.json deleted file mode 100644 index c16872efbd2488d1408540bbe85abd38326f5228..0000000000000000000000000000000000000000 --- a/checkpoint-51000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 51000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:27:05" -} \ No newline at end of file diff --git a/checkpoint-52000/chat_template.jinja b/checkpoint-52000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-52000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-52000/config.json b/checkpoint-52000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-52000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-52000/generation_config.json b/checkpoint-52000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-52000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-52000/model.safetensors b/checkpoint-52000/model.safetensors deleted file mode 100644 index a22721ac60932847e046493979ecd790461ebd1b..0000000000000000000000000000000000000000 --- a/checkpoint-52000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50f2831e8cc1a3257d328b99746539335722c05e635cf19ea8e125d3955e34fd -size 954310784 diff --git a/checkpoint-52000/optimizer.bin b/checkpoint-52000/optimizer.bin deleted file mode 100644 index 6755aa1ef198b1ea7b23642881044fffb4423949..0000000000000000000000000000000000000000 --- a/checkpoint-52000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be03eee10d776c494f61c8b531a943b5b99a3fa83dc7545f4e5692b0b6734c71 -size 1908743179 diff --git a/checkpoint-52000/scheduler.bin b/checkpoint-52000/scheduler.bin deleted file mode 100644 index 4933a9254dc2af97f7e69aef2af1a621946aec98..0000000000000000000000000000000000000000 --- a/checkpoint-52000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:26e83dbdd05b555cd9e15961c3e5680916cba053e8f751a5ba39d19986428a7c -size 1465 diff --git a/checkpoint-52000/tokenizer.json b/checkpoint-52000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-52000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-52000/tokenizer_config.json b/checkpoint-52000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-52000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-52000/train.json b/checkpoint-52000/train.json deleted file mode 100644 index 68787e684598c916afd181232808f8415bdea995..0000000000000000000000000000000000000000 --- a/checkpoint-52000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 52000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:33:54" -} \ No newline at end of file diff --git a/checkpoint-53000/chat_template.jinja b/checkpoint-53000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-53000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-53000/config.json b/checkpoint-53000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-53000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-53000/generation_config.json b/checkpoint-53000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-53000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-53000/model.safetensors b/checkpoint-53000/model.safetensors deleted file mode 100644 index c2925508f73b695e189921fe916279096ac5b4a6..0000000000000000000000000000000000000000 --- a/checkpoint-53000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f9ffa78fbf6b44161cf88c5775274081eb7d5f9f015312bff8c092f309dd467 -size 954310784 diff --git a/checkpoint-53000/optimizer.bin b/checkpoint-53000/optimizer.bin deleted file mode 100644 index 057ef4cd4fb1845fabf34510ba62e44ce98ceb13..0000000000000000000000000000000000000000 --- a/checkpoint-53000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10d97cc46f285eaaa08ebde0d476678254c327dba65028697291cd29de70ef67 -size 1908743179 diff --git a/checkpoint-53000/scheduler.bin b/checkpoint-53000/scheduler.bin deleted file mode 100644 index db207f39865cc0dcea9170d11baf7ce725974ff3..0000000000000000000000000000000000000000 --- a/checkpoint-53000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cccc2576afa25540fce256d3cbb2c6482c7ef0570512baea9119f4d754f6252e -size 1465 diff --git a/checkpoint-53000/tokenizer.json b/checkpoint-53000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-53000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-53000/tokenizer_config.json b/checkpoint-53000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-53000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-53000/train.json b/checkpoint-53000/train.json deleted file mode 100644 index 9ba5a6bc05395d09d9136522dfd012fe6cab8729..0000000000000000000000000000000000000000 --- a/checkpoint-53000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 53000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:40:44" -} \ No newline at end of file diff --git a/checkpoint-54000/chat_template.jinja b/checkpoint-54000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-54000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-54000/config.json b/checkpoint-54000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-54000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-54000/generation_config.json b/checkpoint-54000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-54000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-54000/model.safetensors b/checkpoint-54000/model.safetensors deleted file mode 100644 index 0242345b22c4d21c61d1ec1e0239cc122755c3f0..0000000000000000000000000000000000000000 --- a/checkpoint-54000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea5209708895bb39507920c0710ff7e47e2adea8c9a859498e1f121f48ca54ac -size 954310784 diff --git a/checkpoint-54000/optimizer.bin b/checkpoint-54000/optimizer.bin deleted file mode 100644 index 43b5e85ae8cfeeeea67d5f161473c0838909d942..0000000000000000000000000000000000000000 --- a/checkpoint-54000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce8278b316116b9c286342e44ec3dc8c087c0b481eb6802860d437affd4d46a0 -size 1908743179 diff --git a/checkpoint-54000/scheduler.bin b/checkpoint-54000/scheduler.bin deleted file mode 100644 index 33b9f468a9cc633aff48f079be8ee7fd4b843fbe..0000000000000000000000000000000000000000 --- a/checkpoint-54000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1acdd96d044a72c4e107c54340c6efc764ec44b2bb4bba8ec1af8fae234ba96f -size 1465 diff --git a/checkpoint-54000/tokenizer.json b/checkpoint-54000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-54000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-54000/tokenizer_config.json b/checkpoint-54000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-54000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-54000/train.json b/checkpoint-54000/train.json deleted file mode 100644 index 8e7b7a54a84b3e85e3e543c3fe4e4060d13a212c..0000000000000000000000000000000000000000 --- a/checkpoint-54000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 54000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:47:30" -} \ No newline at end of file diff --git a/checkpoint-55000/chat_template.jinja b/checkpoint-55000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-55000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-55000/config.json b/checkpoint-55000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-55000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-55000/generation_config.json b/checkpoint-55000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-55000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-55000/model.safetensors b/checkpoint-55000/model.safetensors deleted file mode 100644 index 69e301d5a2234f650d19e81442fe30113bc73d16..0000000000000000000000000000000000000000 --- a/checkpoint-55000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c74246ead5a19ea05d21efc6f6bed1fa70af36c50bd11022b39e93b614430a4 -size 954310784 diff --git a/checkpoint-55000/optimizer.bin b/checkpoint-55000/optimizer.bin deleted file mode 100644 index aa157d7fecdb42ce2666f3db8d83247e69da2060..0000000000000000000000000000000000000000 --- a/checkpoint-55000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8eb8d5380191d29776c740bbc741f457d792da934a92b9f4625123afde74e94f -size 1908743179 diff --git a/checkpoint-55000/scheduler.bin b/checkpoint-55000/scheduler.bin deleted file mode 100644 index 078c02a01556b69b9f06327ca9b5d77151f026d5..0000000000000000000000000000000000000000 --- a/checkpoint-55000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd3f7d72e4aaa9bed1aae184c0eb72cbbfd7cf8a6c38fee7aca71f58fec51c9b -size 1465 diff --git a/checkpoint-55000/tokenizer.json b/checkpoint-55000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-55000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-55000/tokenizer_config.json b/checkpoint-55000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-55000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-55000/train.json b/checkpoint-55000/train.json deleted file mode 100644 index 665f2c43d18451f92c61643b372aaebc1dd8c65a..0000000000000000000000000000000000000000 --- a/checkpoint-55000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 55000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 01:54:12" -} \ No newline at end of file diff --git a/checkpoint-56000/chat_template.jinja b/checkpoint-56000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-56000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-56000/config.json b/checkpoint-56000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-56000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-56000/generation_config.json b/checkpoint-56000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-56000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-56000/model.safetensors b/checkpoint-56000/model.safetensors deleted file mode 100644 index b89807b1faadbe7c1fdd16076e82642fdaf6fcbc..0000000000000000000000000000000000000000 --- a/checkpoint-56000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35eedddb65128de41bf2ebd76c8ba4b179b0e0e07709394940cc1a107501f66e -size 954310784 diff --git a/checkpoint-56000/optimizer.bin b/checkpoint-56000/optimizer.bin deleted file mode 100644 index 50f19bcb3db222d7a0111175bba220287654ee89..0000000000000000000000000000000000000000 --- a/checkpoint-56000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3075cdc637fa6c70741f5f4b9463ee829fbae9e41cc82aef59f9a12b2a908e2 -size 1908743179 diff --git a/checkpoint-56000/scheduler.bin b/checkpoint-56000/scheduler.bin deleted file mode 100644 index 9aaf87b81942eefc2edad38f2ac6aff869cda51a..0000000000000000000000000000000000000000 --- a/checkpoint-56000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:761640a459ec9c2251bb1d7edcb5a0be40833cea210d49f3c263e1ec3dd1708c -size 1465 diff --git a/checkpoint-56000/tokenizer.json b/checkpoint-56000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-56000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-56000/tokenizer_config.json b/checkpoint-56000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-56000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-56000/train.json b/checkpoint-56000/train.json deleted file mode 100644 index 1e6ea241aba3a4b3adcef270b32b9836e3df99df..0000000000000000000000000000000000000000 --- a/checkpoint-56000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 56000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:00:56" -} \ No newline at end of file diff --git a/checkpoint-57000/chat_template.jinja b/checkpoint-57000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-57000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-57000/config.json b/checkpoint-57000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-57000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-57000/generation_config.json b/checkpoint-57000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-57000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-57000/model.safetensors b/checkpoint-57000/model.safetensors deleted file mode 100644 index 2488f0746091e12547960760075e5a352fb4aa94..0000000000000000000000000000000000000000 --- a/checkpoint-57000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:833184898e213cb207ce783b2fcdf4dd9d468df466fcbf291d295e8b1e0f2aaa -size 954310784 diff --git a/checkpoint-57000/optimizer.bin b/checkpoint-57000/optimizer.bin deleted file mode 100644 index 4ae29d89d1d6654b0f64cb8584d9477eaaf4b41a..0000000000000000000000000000000000000000 --- a/checkpoint-57000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09fca5a48bb638101d873732a9574771469fea20649a5a27104eca27a335fb06 -size 1908743179 diff --git a/checkpoint-57000/scheduler.bin b/checkpoint-57000/scheduler.bin deleted file mode 100644 index 28a81e0472c78b60804e6b7220be6ac8cde94ffc..0000000000000000000000000000000000000000 --- a/checkpoint-57000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88ae9e613f919ffb1bfe9e9f59b4ef23cccb13df8b15d44648f553b518cd93f8 -size 1465 diff --git a/checkpoint-57000/tokenizer.json b/checkpoint-57000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-57000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-57000/tokenizer_config.json b/checkpoint-57000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-57000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-57000/train.json b/checkpoint-57000/train.json deleted file mode 100644 index 32bd3b9a1ee376defc669133730b093ff52e3141..0000000000000000000000000000000000000000 --- a/checkpoint-57000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 57000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:07:44" -} \ No newline at end of file diff --git a/checkpoint-58000/chat_template.jinja b/checkpoint-58000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-58000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-58000/config.json b/checkpoint-58000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-58000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-58000/generation_config.json b/checkpoint-58000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-58000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-58000/model.safetensors b/checkpoint-58000/model.safetensors deleted file mode 100644 index 5fb1d71b9ef611a11897c518f1513f9284f9efda..0000000000000000000000000000000000000000 --- a/checkpoint-58000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ab6dd083f9cbb3460637e036b93461ae9093aa8560e4e33679de3607168d5ae -size 954310784 diff --git a/checkpoint-58000/optimizer.bin b/checkpoint-58000/optimizer.bin deleted file mode 100644 index 7e3ae97bd1d3387819a8dcb9a607a96611eb2b90..0000000000000000000000000000000000000000 --- a/checkpoint-58000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ebe7af7721fe631af68a20e19823e09bbddb53edecce87022a9383021c0b682 -size 1908743179 diff --git a/checkpoint-58000/scheduler.bin b/checkpoint-58000/scheduler.bin deleted file mode 100644 index b5d22d521d1ba46ad2089c90806f9a9aab763d58..0000000000000000000000000000000000000000 --- a/checkpoint-58000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:575f650c48b8b8ea61c9fc729283b448b2c9449f814065a0778df804e568869d -size 1465 diff --git a/checkpoint-58000/tokenizer.json b/checkpoint-58000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-58000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-58000/tokenizer_config.json b/checkpoint-58000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-58000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-58000/train.json b/checkpoint-58000/train.json deleted file mode 100644 index 11f2506625543a9c2f249691cf5bbee7afc9e19a..0000000000000000000000000000000000000000 --- a/checkpoint-58000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 58000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:14:30" -} \ No newline at end of file diff --git a/checkpoint-59000/chat_template.jinja b/checkpoint-59000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-59000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-59000/config.json b/checkpoint-59000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-59000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-59000/generation_config.json b/checkpoint-59000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-59000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-59000/model.safetensors b/checkpoint-59000/model.safetensors deleted file mode 100644 index 0d9afb0d2cc872928a6147125cb5a01bc7a7fc0d..0000000000000000000000000000000000000000 --- a/checkpoint-59000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15f1cf9b9d1a72e107dd0d6e03f24af99bbf8a404ab3603b292d48eb4f120504 -size 954310784 diff --git a/checkpoint-59000/optimizer.bin b/checkpoint-59000/optimizer.bin deleted file mode 100644 index 6f00e01f4d47c81bacf1dfcd5410f0aecea00315..0000000000000000000000000000000000000000 --- a/checkpoint-59000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44e09ae18dd41b005d36cc8f40ecb413d2532740bf78d2fa76cea77e3dfd7700 -size 1908743179 diff --git a/checkpoint-59000/scheduler.bin b/checkpoint-59000/scheduler.bin deleted file mode 100644 index f8aa3955787f36ce319a25acac8545af4e354423..0000000000000000000000000000000000000000 --- a/checkpoint-59000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24fda14031d26cbc8c31de16d7a92c1dab96f614556888cd365930928d31b5c5 -size 1465 diff --git a/checkpoint-59000/tokenizer.json b/checkpoint-59000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-59000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-59000/tokenizer_config.json b/checkpoint-59000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-59000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-59000/train.json b/checkpoint-59000/train.json deleted file mode 100644 index 39530026fa6c919083eddd7efe595dfec1c5b06c..0000000000000000000000000000000000000000 --- a/checkpoint-59000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 59000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:21:19" -} \ No newline at end of file diff --git a/checkpoint-6000/chat_template.jinja b/checkpoint-6000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-6000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-6000/config.json b/checkpoint-6000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-6000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-6000/generation_config.json b/checkpoint-6000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-6000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-6000/model.safetensors b/checkpoint-6000/model.safetensors deleted file mode 100644 index 8e529b8afafb59ee8259652eb96de1206f0e43e6..0000000000000000000000000000000000000000 --- a/checkpoint-6000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:77f568b5b42e26560e1d551bb814c401f8b3851107ff8d6acee2601274a00a29 -size 954310784 diff --git a/checkpoint-6000/optimizer.bin b/checkpoint-6000/optimizer.bin deleted file mode 100644 index 3a96830370e85291ac674e9c350ed8ad4f67f425..0000000000000000000000000000000000000000 --- a/checkpoint-6000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d942d39740e40dbb6e07254509d7cf14aa3d6e1169d83d60373459d480f06e5 -size 1908743179 diff --git a/checkpoint-6000/scheduler.bin b/checkpoint-6000/scheduler.bin deleted file mode 100644 index 89a2e16764c25227aa246312051731867b446c96..0000000000000000000000000000000000000000 --- a/checkpoint-6000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9c96d42a2f4b742bd4564dd898a374228fb89edee3db8bee664d8acdfd82ca6a -size 1401 diff --git a/checkpoint-6000/tokenizer.json b/checkpoint-6000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-6000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-6000/tokenizer_config.json b/checkpoint-6000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-6000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-6000/train.json b/checkpoint-6000/train.json deleted file mode 100644 index 27ba845c16aa5dcf4dd816d8af37204fe0b2bf45..0000000000000000000000000000000000000000 --- a/checkpoint-6000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 6000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:21:58" -} \ No newline at end of file diff --git a/checkpoint-60000/chat_template.jinja b/checkpoint-60000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-60000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-60000/config.json b/checkpoint-60000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-60000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-60000/generation_config.json b/checkpoint-60000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-60000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-60000/model.safetensors b/checkpoint-60000/model.safetensors deleted file mode 100644 index 59f7c3f58ac1e0151d04e85600dd6140b1647755..0000000000000000000000000000000000000000 --- a/checkpoint-60000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70b8402e663f0c38de9296255ddd6bb310300ef7d9038c50382edceb5efe9286 -size 954310784 diff --git a/checkpoint-60000/optimizer.bin b/checkpoint-60000/optimizer.bin deleted file mode 100644 index 850b73bb689884b9dcd5ae82248d3ac40c70ae41..0000000000000000000000000000000000000000 --- a/checkpoint-60000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2079f40e01feef47c08ffd01bdaa44188d0808ae19a99ed5ad8d42e3264c7b66 -size 1908743179 diff --git a/checkpoint-60000/scheduler.bin b/checkpoint-60000/scheduler.bin deleted file mode 100644 index 6683329bbae632ec2284e873a7a883d78ab195c7..0000000000000000000000000000000000000000 --- a/checkpoint-60000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0a907ca662f98dbf464a05c2eb9f37c549d8f4dca97a26d3f09b9a6e8b57ff9 -size 1465 diff --git a/checkpoint-60000/tokenizer.json b/checkpoint-60000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-60000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-60000/tokenizer_config.json b/checkpoint-60000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-60000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-60000/train.json b/checkpoint-60000/train.json deleted file mode 100644 index a167c6f9455e628ee8349ea0fe3f668aafddf494..0000000000000000000000000000000000000000 --- a/checkpoint-60000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 60000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:28:02" -} \ No newline at end of file diff --git a/checkpoint-61000/chat_template.jinja b/checkpoint-61000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-61000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-61000/config.json b/checkpoint-61000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-61000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-61000/generation_config.json b/checkpoint-61000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-61000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-61000/model.safetensors b/checkpoint-61000/model.safetensors deleted file mode 100644 index eca57110a2f6ebe5ac09e0fc5286b6ece28d0fe2..0000000000000000000000000000000000000000 --- a/checkpoint-61000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:167983f4846cebb48eb8c2688d035327963b7466b840288e5cb6725ffcb14a7d -size 954310784 diff --git a/checkpoint-61000/optimizer.bin b/checkpoint-61000/optimizer.bin deleted file mode 100644 index 6d912f5d627aeaf8333faab00ac633e7191cb297..0000000000000000000000000000000000000000 --- a/checkpoint-61000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b3a168a5847acf7719c227a2f9c5d5e5baa40296cb057cabeb4043a48000471 -size 1908743179 diff --git a/checkpoint-61000/scheduler.bin b/checkpoint-61000/scheduler.bin deleted file mode 100644 index ad6b6bd201393df20f21890ecc02ee5293f95ddf..0000000000000000000000000000000000000000 --- a/checkpoint-61000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d6d4806320034d0219cd3ab819c6a3c5c2c1aa8a0f85bedd5cc31f56b26ce901 -size 1465 diff --git a/checkpoint-61000/tokenizer.json b/checkpoint-61000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-61000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-61000/tokenizer_config.json b/checkpoint-61000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-61000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-61000/train.json b/checkpoint-61000/train.json deleted file mode 100644 index 80be31fe3f3a6ee19bcb58ebeb2b888dbcd6bde6..0000000000000000000000000000000000000000 --- a/checkpoint-61000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 61000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:34:53" -} \ No newline at end of file diff --git a/checkpoint-62000/chat_template.jinja b/checkpoint-62000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-62000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-62000/config.json b/checkpoint-62000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-62000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-62000/generation_config.json b/checkpoint-62000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-62000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-62000/model.safetensors b/checkpoint-62000/model.safetensors deleted file mode 100644 index 12825631a98157366f89b321c6a7ffabf40555a3..0000000000000000000000000000000000000000 --- a/checkpoint-62000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cccecb27b520df76dec42f45d8412c35f2935b96c97619e2628c03f592d6ae63 -size 954310784 diff --git a/checkpoint-62000/optimizer.bin b/checkpoint-62000/optimizer.bin deleted file mode 100644 index 6b9cf2cb1635de1e861ee044545774aac4b69340..0000000000000000000000000000000000000000 --- a/checkpoint-62000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b939a0959b3bdfc2d8f202ada08d4d5c19e1b3e73c99e8e0bc054fe26e1331fc -size 1908743179 diff --git a/checkpoint-62000/scheduler.bin b/checkpoint-62000/scheduler.bin deleted file mode 100644 index f11b6a7c8706bbaa81bb01ad48c57c18bb82e003..0000000000000000000000000000000000000000 --- a/checkpoint-62000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ff947db0a31f131f597788a97a8ae674beab09c59b165a84eff87c8f6330b84 -size 1465 diff --git a/checkpoint-62000/tokenizer.json b/checkpoint-62000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-62000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-62000/tokenizer_config.json b/checkpoint-62000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-62000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-62000/train.json b/checkpoint-62000/train.json deleted file mode 100644 index 6bfdc70ee3441058aad16142b63d30887330f689..0000000000000000000000000000000000000000 --- a/checkpoint-62000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 62000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:41:38" -} \ No newline at end of file diff --git a/checkpoint-63000/chat_template.jinja b/checkpoint-63000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-63000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-63000/config.json b/checkpoint-63000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-63000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-63000/generation_config.json b/checkpoint-63000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-63000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-63000/model.safetensors b/checkpoint-63000/model.safetensors deleted file mode 100644 index 989adcfcde5f0cceaaf4722fb353a7e3a368e589..0000000000000000000000000000000000000000 --- a/checkpoint-63000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9c1e8f2553d2eab33fff7b05fe223808553382d0b3f31fa4718ef33c663128a7 -size 954310784 diff --git a/checkpoint-63000/optimizer.bin b/checkpoint-63000/optimizer.bin deleted file mode 100644 index aa9c34cbc00f90eb4f03a159970003c4a7d20281..0000000000000000000000000000000000000000 --- a/checkpoint-63000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c43d6ccbee1d4765ebbad7ceb27c69f3ad3c636dfd27f003eb1f05844ed6e681 -size 1908743179 diff --git a/checkpoint-63000/scheduler.bin b/checkpoint-63000/scheduler.bin deleted file mode 100644 index 4ca34b6a612d8bb25de075c1ac1b69f4e79a35cf..0000000000000000000000000000000000000000 --- a/checkpoint-63000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6db00c35cbaead03e00eadca2d003927faf94167977093027579b32774382290 -size 1465 diff --git a/checkpoint-63000/tokenizer.json b/checkpoint-63000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-63000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-63000/tokenizer_config.json b/checkpoint-63000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-63000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-63000/train.json b/checkpoint-63000/train.json deleted file mode 100644 index 5534f6f6093cddbf8adf70140e8146b3b85efad1..0000000000000000000000000000000000000000 --- a/checkpoint-63000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 63000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:48:25" -} \ No newline at end of file diff --git a/checkpoint-64000/chat_template.jinja b/checkpoint-64000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-64000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-64000/config.json b/checkpoint-64000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-64000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-64000/generation_config.json b/checkpoint-64000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-64000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-64000/model.safetensors b/checkpoint-64000/model.safetensors deleted file mode 100644 index 256dc583b137e83ad9756c5bca7b97ebf3ddd21e..0000000000000000000000000000000000000000 --- a/checkpoint-64000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86f960374c0b968ab003c306e5f3173614f6b905fe0fbfb7cdb581f7cc01f4ce -size 954310784 diff --git a/checkpoint-64000/optimizer.bin b/checkpoint-64000/optimizer.bin deleted file mode 100644 index ff119309210a35f2974d36a035b91aec557e6b34..0000000000000000000000000000000000000000 --- a/checkpoint-64000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:444ab2c1ac377ce96abc49db395f0d928b711b4a3a2a78841da028182a544a59 -size 1908743179 diff --git a/checkpoint-64000/scheduler.bin b/checkpoint-64000/scheduler.bin deleted file mode 100644 index 3026f28422c5e87dbff607e2905056dbc398c87b..0000000000000000000000000000000000000000 --- a/checkpoint-64000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d01ea980ed18744eb50b41d73005862da8e100d363fd58ec920ada43b504009 -size 1465 diff --git a/checkpoint-64000/tokenizer.json b/checkpoint-64000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-64000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-64000/tokenizer_config.json b/checkpoint-64000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-64000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-64000/train.json b/checkpoint-64000/train.json deleted file mode 100644 index 29bff2a72895981a9c5eec7da6baa195383e8cae..0000000000000000000000000000000000000000 --- a/checkpoint-64000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 64000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 02:55:11" -} \ No newline at end of file diff --git a/checkpoint-65000/chat_template.jinja b/checkpoint-65000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-65000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-65000/config.json b/checkpoint-65000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-65000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-65000/generation_config.json b/checkpoint-65000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-65000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-65000/model.safetensors b/checkpoint-65000/model.safetensors deleted file mode 100644 index 4c2446f6676952065966d8205f86f3577599c905..0000000000000000000000000000000000000000 --- a/checkpoint-65000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:66c0bbedff618c6e701a8545db9b321291b9191b1f009f68e2c3f07315cb019c -size 954310784 diff --git a/checkpoint-65000/optimizer.bin b/checkpoint-65000/optimizer.bin deleted file mode 100644 index e75e9d6eb87b793832a680ba912a9099e915d207..0000000000000000000000000000000000000000 --- a/checkpoint-65000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad5c059c7ec5b73183c553f647dcef19d1ab7c76fbabc35ea8273e7288c00f0b -size 1908743179 diff --git a/checkpoint-65000/scheduler.bin b/checkpoint-65000/scheduler.bin deleted file mode 100644 index deb255b0ae58fa683d05baa4754cb250ce0e8564..0000000000000000000000000000000000000000 --- a/checkpoint-65000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:936789374cb28abbb9524b3fbe900e1208f075e417420887f827560f11e229b4 -size 1465 diff --git a/checkpoint-65000/tokenizer.json b/checkpoint-65000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-65000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-65000/tokenizer_config.json b/checkpoint-65000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-65000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-65000/train.json b/checkpoint-65000/train.json deleted file mode 100644 index 5fd6537ce6b8687eb1550e2ca2befc4985dc187e..0000000000000000000000000000000000000000 --- a/checkpoint-65000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 65000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:01:57" -} \ No newline at end of file diff --git a/checkpoint-66000/chat_template.jinja b/checkpoint-66000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-66000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-66000/config.json b/checkpoint-66000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-66000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-66000/generation_config.json b/checkpoint-66000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-66000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-66000/model.safetensors b/checkpoint-66000/model.safetensors deleted file mode 100644 index b2f6b8d9f6dd0a56dedab033fd69f99f45f7e5ff..0000000000000000000000000000000000000000 --- a/checkpoint-66000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3979c05d92c553870b56a4f8f69c6266ebc2ccab66fb404898641bc9255bdb51 -size 954310784 diff --git a/checkpoint-66000/optimizer.bin b/checkpoint-66000/optimizer.bin deleted file mode 100644 index 438766744966c852fd15429ba4bbd4d667a370de..0000000000000000000000000000000000000000 --- a/checkpoint-66000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e2649e563c7728f4e57692a775c3ccd7917b3393723c147c4ea9d2bcaf600306 -size 1908743179 diff --git a/checkpoint-66000/scheduler.bin b/checkpoint-66000/scheduler.bin deleted file mode 100644 index 4a9b46abe4269b2245059baf246db94e4675883d..0000000000000000000000000000000000000000 --- a/checkpoint-66000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd48513161e941eec226aaea009b9e04d77a7f606ea6ba60cde5a5449b6a6fe8 -size 1465 diff --git a/checkpoint-66000/tokenizer.json b/checkpoint-66000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-66000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-66000/tokenizer_config.json b/checkpoint-66000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-66000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-66000/train.json b/checkpoint-66000/train.json deleted file mode 100644 index 340a87ea7214415886c93768af406e81fc3ef33f..0000000000000000000000000000000000000000 --- a/checkpoint-66000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 66000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:08:37" -} \ No newline at end of file diff --git a/checkpoint-67000/chat_template.jinja b/checkpoint-67000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-67000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-67000/config.json b/checkpoint-67000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-67000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-67000/generation_config.json b/checkpoint-67000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-67000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-67000/model.safetensors b/checkpoint-67000/model.safetensors deleted file mode 100644 index 37c6951e21f769e02aeae93797c213f9eaf81fab..0000000000000000000000000000000000000000 --- a/checkpoint-67000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2a0b03a622105d30dc82526d30975ce374630fb7e32dc86b224c5c08056d9677 -size 954310784 diff --git a/checkpoint-67000/optimizer.bin b/checkpoint-67000/optimizer.bin deleted file mode 100644 index 36f4d57346da0a613e627a48408227ab373dfdc8..0000000000000000000000000000000000000000 --- a/checkpoint-67000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce47e0491a598e9b5330de93ba033a2e9963bbf2087c5625825779584dca07e4 -size 1908743179 diff --git a/checkpoint-67000/scheduler.bin b/checkpoint-67000/scheduler.bin deleted file mode 100644 index 1929055f6910080fc3641a88ef9b9c26929a2c9a..0000000000000000000000000000000000000000 --- a/checkpoint-67000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8686a15d547e4199f2c4bcf3187a00002fb07c3a26d7a0bae61b267b546b8799 -size 1465 diff --git a/checkpoint-67000/tokenizer.json b/checkpoint-67000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-67000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-67000/tokenizer_config.json b/checkpoint-67000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-67000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-67000/train.json b/checkpoint-67000/train.json deleted file mode 100644 index d35099ffab765b327fdaec87296b4693d9c71f74..0000000000000000000000000000000000000000 --- a/checkpoint-67000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 67000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:15:30" -} \ No newline at end of file diff --git a/checkpoint-68000/chat_template.jinja b/checkpoint-68000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-68000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-68000/config.json b/checkpoint-68000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-68000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-68000/generation_config.json b/checkpoint-68000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-68000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-68000/model.safetensors b/checkpoint-68000/model.safetensors deleted file mode 100644 index 38e03519244a54f599affdcfd14fca6b59bba8ae..0000000000000000000000000000000000000000 --- a/checkpoint-68000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2aec4c786e50efde3a2dfe014c74baa058ba0818f4242508fcf05b7c9be7ca8a -size 954310784 diff --git a/checkpoint-68000/optimizer.bin b/checkpoint-68000/optimizer.bin deleted file mode 100644 index 95a3570a4a9512f5f670875abe48369c186861ec..0000000000000000000000000000000000000000 --- a/checkpoint-68000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:905c009f503948b087167fbe285593196f1db829be59bad7feff708bed08893f -size 1908743179 diff --git a/checkpoint-68000/scheduler.bin b/checkpoint-68000/scheduler.bin deleted file mode 100644 index 178d66b93ea2f490a5d8aeccf23f7b24b2218552..0000000000000000000000000000000000000000 --- a/checkpoint-68000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8b4bbb57deb3614ea1443c6a000e2c729685b8a88783b4bc4358b3da3a9dd64 -size 1465 diff --git a/checkpoint-68000/tokenizer.json b/checkpoint-68000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-68000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-68000/tokenizer_config.json b/checkpoint-68000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-68000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-68000/train.json b/checkpoint-68000/train.json deleted file mode 100644 index 3665c6557391dcf4232ab0b952cca39c8810130d..0000000000000000000000000000000000000000 --- a/checkpoint-68000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 68000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:22:14" -} \ No newline at end of file diff --git a/checkpoint-69000/chat_template.jinja b/checkpoint-69000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-69000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-69000/config.json b/checkpoint-69000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-69000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-69000/generation_config.json b/checkpoint-69000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-69000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-69000/model.safetensors b/checkpoint-69000/model.safetensors deleted file mode 100644 index 00715461b1f3efe4eaf8c8f9b0e56d3bb829950b..0000000000000000000000000000000000000000 --- a/checkpoint-69000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b99ffb8a17a3137cf402c3ff331f93c1c2f86e71a47cf3e332c38efa55ff801a -size 954310784 diff --git a/checkpoint-69000/optimizer.bin b/checkpoint-69000/optimizer.bin deleted file mode 100644 index dc0eccd568785123fee26e0476a1379891313c08..0000000000000000000000000000000000000000 --- a/checkpoint-69000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b0a50d80adfd8c2c6aa11824b90665fd893c23cb52a08be64a0512f181e7e15 -size 1908743179 diff --git a/checkpoint-69000/scheduler.bin b/checkpoint-69000/scheduler.bin deleted file mode 100644 index c6309ce3a6241ffaf35f276d481824f9a3b02759..0000000000000000000000000000000000000000 --- a/checkpoint-69000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c88a9d18bf75cd7de34329c7fbaacd38539b37c17869868e9a633163e0c9bde8 -size 1465 diff --git a/checkpoint-69000/tokenizer.json b/checkpoint-69000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-69000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-69000/tokenizer_config.json b/checkpoint-69000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-69000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-69000/train.json b/checkpoint-69000/train.json deleted file mode 100644 index e38cebcf428ac13a0b851949c3df61e1a7878119..0000000000000000000000000000000000000000 --- a/checkpoint-69000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 69000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:29:01" -} \ No newline at end of file diff --git a/checkpoint-7000/chat_template.jinja b/checkpoint-7000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-7000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-7000/config.json b/checkpoint-7000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-7000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-7000/generation_config.json b/checkpoint-7000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-7000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-7000/model.safetensors b/checkpoint-7000/model.safetensors deleted file mode 100644 index 963b2bcfe875f57441965c39b69a019a6fbb006c..0000000000000000000000000000000000000000 --- a/checkpoint-7000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a88441c3fe638e89df9176284a43843713313d3ac2f5c378bdeb2a20593b9ec9 -size 954310784 diff --git a/checkpoint-7000/optimizer.bin b/checkpoint-7000/optimizer.bin deleted file mode 100644 index e0003890287765130a9e88d9263f77c0a2cd7b8c..0000000000000000000000000000000000000000 --- a/checkpoint-7000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6198d18896fa0284e4a16c34980c19ffb84a03318fe634c901c26605659131fc -size 1908743179 diff --git a/checkpoint-7000/scheduler.bin b/checkpoint-7000/scheduler.bin deleted file mode 100644 index 1a2684045837bf62b2c4a201cd594f56956d598b..0000000000000000000000000000000000000000 --- a/checkpoint-7000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:493dd549aeb1eb58e5139267eae3f63bc499e5742c9fedf4e423c48444d34388 -size 1401 diff --git a/checkpoint-7000/tokenizer.json b/checkpoint-7000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-7000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-7000/tokenizer_config.json b/checkpoint-7000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-7000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-7000/train.json b/checkpoint-7000/train.json deleted file mode 100644 index aba9c9ed95fbaa3772133cd65dd7b4cf544b8523..0000000000000000000000000000000000000000 --- a/checkpoint-7000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 7000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:28:44" -} \ No newline at end of file diff --git a/checkpoint-70000/chat_template.jinja b/checkpoint-70000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-70000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-70000/config.json b/checkpoint-70000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-70000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-70000/generation_config.json b/checkpoint-70000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-70000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-70000/model.safetensors b/checkpoint-70000/model.safetensors deleted file mode 100644 index 8902cb6800d989728a921dfa67b222ca92388d05..0000000000000000000000000000000000000000 --- a/checkpoint-70000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:863a9a581e38efcd441579151d2a511d90eab96ab068c53eb6b972db08cc07c4 -size 954310784 diff --git a/checkpoint-70000/optimizer.bin b/checkpoint-70000/optimizer.bin deleted file mode 100644 index 14663e9aa602c7db154641a2da0d74b5c03bd3b1..0000000000000000000000000000000000000000 --- a/checkpoint-70000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83c2f8ee5694d62ebd5258605225e38db044282a05fb54cc4ae416bf8f66fa7e -size 1908743179 diff --git a/checkpoint-70000/scheduler.bin b/checkpoint-70000/scheduler.bin deleted file mode 100644 index c6bc508ea4c1e522a7c1908eb2502600a9effddf..0000000000000000000000000000000000000000 --- a/checkpoint-70000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de3e83c95629c5286c7b65ef3a434a059bc6953d91f7ef71f941293d36a9c792 -size 1465 diff --git a/checkpoint-70000/tokenizer.json b/checkpoint-70000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-70000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-70000/tokenizer_config.json b/checkpoint-70000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-70000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-70000/train.json b/checkpoint-70000/train.json deleted file mode 100644 index 5e8d152f9fa9a8c1041f7e0bb1c551545a881fd0..0000000000000000000000000000000000000000 --- a/checkpoint-70000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 70000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:35:45" -} \ No newline at end of file diff --git a/checkpoint-71000/chat_template.jinja b/checkpoint-71000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-71000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-71000/config.json b/checkpoint-71000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-71000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-71000/generation_config.json b/checkpoint-71000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-71000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-71000/model.safetensors b/checkpoint-71000/model.safetensors deleted file mode 100644 index e1308e4bd4a55569ac2171f2e8d412ae28167f85..0000000000000000000000000000000000000000 --- a/checkpoint-71000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42570cb01a87600ac7909867f34385c684a7caf38e434265a6c7e3808648d8d0 -size 954310784 diff --git a/checkpoint-71000/optimizer.bin b/checkpoint-71000/optimizer.bin deleted file mode 100644 index e326c737dc8eb2bcbfb7dac0540088b79402e467..0000000000000000000000000000000000000000 --- a/checkpoint-71000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b850e22df706eb61c9a27c0c09124d08eb5bb9f7036017eb6cb27ed0eb3260fa -size 1908743179 diff --git a/checkpoint-71000/scheduler.bin b/checkpoint-71000/scheduler.bin deleted file mode 100644 index 3d4804fe0d44ac256cb5a31d0d2b93502d5737e3..0000000000000000000000000000000000000000 --- a/checkpoint-71000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:427183078b3d3ae065a664292300beb3bcf757990f9341c7fb9ec9a70efedf52 -size 1465 diff --git a/checkpoint-71000/tokenizer.json b/checkpoint-71000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-71000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-71000/tokenizer_config.json b/checkpoint-71000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-71000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-71000/train.json b/checkpoint-71000/train.json deleted file mode 100644 index 966561c77dab69d5786cc9258093bd07b907540a..0000000000000000000000000000000000000000 --- a/checkpoint-71000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 71000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:42:31" -} \ No newline at end of file diff --git a/checkpoint-72000/chat_template.jinja b/checkpoint-72000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-72000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-72000/config.json b/checkpoint-72000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-72000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-72000/generation_config.json b/checkpoint-72000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-72000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-72000/model.safetensors b/checkpoint-72000/model.safetensors deleted file mode 100644 index 8869e2eb3302a687dc809d2a981736730ad302c3..0000000000000000000000000000000000000000 --- a/checkpoint-72000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bad5d1f5e55877bc83f22a69a94a4c645bd96e48810a2a7dac6980883ec0335 -size 954310784 diff --git a/checkpoint-72000/optimizer.bin b/checkpoint-72000/optimizer.bin deleted file mode 100644 index c06897fa807914af07a64f337b40209033ab3bdf..0000000000000000000000000000000000000000 --- a/checkpoint-72000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ff4ccf45a88712176997afcc4d3ad286b081c3f8803e3456c8376202de71fb4 -size 1908743179 diff --git a/checkpoint-72000/scheduler.bin b/checkpoint-72000/scheduler.bin deleted file mode 100644 index a692ce1a75570ee875df207fe7954f1f9e7faa1f..0000000000000000000000000000000000000000 --- a/checkpoint-72000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82dbb3ae98f96d9ae4b3e244f77194ad2e9e067be0561e7c37040c7c68572028 -size 1465 diff --git a/checkpoint-72000/tokenizer.json b/checkpoint-72000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-72000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-72000/tokenizer_config.json b/checkpoint-72000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-72000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-72000/train.json b/checkpoint-72000/train.json deleted file mode 100644 index a09e28a9b9d3942df28092035690de7571ac7d2f..0000000000000000000000000000000000000000 --- a/checkpoint-72000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 72000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:49:14" -} \ No newline at end of file diff --git a/checkpoint-73000/chat_template.jinja b/checkpoint-73000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-73000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-73000/config.json b/checkpoint-73000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-73000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-73000/generation_config.json b/checkpoint-73000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-73000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-73000/model.safetensors b/checkpoint-73000/model.safetensors deleted file mode 100644 index 29d7ff10e2f7a91929edc4ed80fbc67a63d57849..0000000000000000000000000000000000000000 --- a/checkpoint-73000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b033622b5bc2305cc542c75b720da765a56467fb9925eadf6fb95a096bc2e9f5 -size 954310784 diff --git a/checkpoint-73000/optimizer.bin b/checkpoint-73000/optimizer.bin deleted file mode 100644 index 52714b9def7c72843e9beba6066f6ed9c1493b67..0000000000000000000000000000000000000000 --- a/checkpoint-73000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57080146776cb51bd0ae5bf2b4c4afecd498bb400d94c788f692109fb217be79 -size 1908743179 diff --git a/checkpoint-73000/scheduler.bin b/checkpoint-73000/scheduler.bin deleted file mode 100644 index f973edfbebb85beba77e62e230c659f12df7fec0..0000000000000000000000000000000000000000 --- a/checkpoint-73000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7303b162708707cbc472b09f06f24d344e6d18c2e72aedb21b0e6f02dc926c9a -size 1465 diff --git a/checkpoint-73000/tokenizer.json b/checkpoint-73000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-73000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-73000/tokenizer_config.json b/checkpoint-73000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-73000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-73000/train.json b/checkpoint-73000/train.json deleted file mode 100644 index 9a9d1694fdc3e215b5e66c0e1e8892e66f3e95b5..0000000000000000000000000000000000000000 --- a/checkpoint-73000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 73000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 03:56:02" -} \ No newline at end of file diff --git a/checkpoint-74000/chat_template.jinja b/checkpoint-74000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-74000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-74000/config.json b/checkpoint-74000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-74000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-74000/generation_config.json b/checkpoint-74000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-74000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-74000/model.safetensors b/checkpoint-74000/model.safetensors deleted file mode 100644 index 6f390d3116400f1ac949006bd7d46a299150580c..0000000000000000000000000000000000000000 --- a/checkpoint-74000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75d9ef50a359f2f7c7549d6f531d00f76afaa57d2f75d4f604843b7cab9658cf -size 954310784 diff --git a/checkpoint-74000/optimizer.bin b/checkpoint-74000/optimizer.bin deleted file mode 100644 index 83b3bc419221112d3273c5c28145817e726bd60f..0000000000000000000000000000000000000000 --- a/checkpoint-74000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb80e14095c3dd321239f03b9606b7313ef516028426265243d397c78fd45917 -size 1908743179 diff --git a/checkpoint-74000/scheduler.bin b/checkpoint-74000/scheduler.bin deleted file mode 100644 index bf43f5abb5ca8bf4047ce230a910d483dd670fb0..0000000000000000000000000000000000000000 --- a/checkpoint-74000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75c00ccc4c7689d11215c13f649ba549812a7150402b2e88103ad925aaee22f3 -size 1465 diff --git a/checkpoint-74000/tokenizer.json b/checkpoint-74000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-74000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-74000/tokenizer_config.json b/checkpoint-74000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-74000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-74000/train.json b/checkpoint-74000/train.json deleted file mode 100644 index eef30ad11677cc8f8184e6dd97284e411b649512..0000000000000000000000000000000000000000 --- a/checkpoint-74000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 74000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:02:45" -} \ No newline at end of file diff --git a/checkpoint-75000/chat_template.jinja b/checkpoint-75000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-75000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-75000/config.json b/checkpoint-75000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-75000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-75000/generation_config.json b/checkpoint-75000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-75000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-75000/model.safetensors b/checkpoint-75000/model.safetensors deleted file mode 100644 index 3af93cc1c2eea0780bae04fc36301a056276c4e9..0000000000000000000000000000000000000000 --- a/checkpoint-75000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd6f0070891be94ded782bd16f9457768c0e704429f2c23a353ce5b9a488a600 -size 954310784 diff --git a/checkpoint-75000/optimizer.bin b/checkpoint-75000/optimizer.bin deleted file mode 100644 index 7a5e39d1569bf592c064ee67d0cfbce43753881c..0000000000000000000000000000000000000000 --- a/checkpoint-75000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b8e6bb92a98d7eb6b8acba30df3c7e7dbcdfef01443ba3f3677e3b25286b196 -size 1908743179 diff --git a/checkpoint-75000/scheduler.bin b/checkpoint-75000/scheduler.bin deleted file mode 100644 index 0ce0f5227ff7c7c4232f5095def15f6b513e0b0a..0000000000000000000000000000000000000000 --- a/checkpoint-75000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1d0b8a98f16580cb9e9e24e3d228a38ee537b0685bacf1f62beee25f814034f -size 1465 diff --git a/checkpoint-75000/tokenizer.json b/checkpoint-75000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-75000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-75000/tokenizer_config.json b/checkpoint-75000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-75000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-75000/train.json b/checkpoint-75000/train.json deleted file mode 100644 index 528bbc80c73a881e2b1dbdf65e55f2be826d0da5..0000000000000000000000000000000000000000 --- a/checkpoint-75000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 75000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:09:33" -} \ No newline at end of file diff --git a/checkpoint-76000/chat_template.jinja b/checkpoint-76000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-76000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-76000/config.json b/checkpoint-76000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-76000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-76000/generation_config.json b/checkpoint-76000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-76000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-76000/model.safetensors b/checkpoint-76000/model.safetensors deleted file mode 100644 index 4a5d6f1a866664700700de0144038d4a60d95943..0000000000000000000000000000000000000000 --- a/checkpoint-76000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c31c9261f77f42a7c463b1bdc9d8554ff521b87a1032d7bc6fd9464fd27fe090 -size 954310784 diff --git a/checkpoint-76000/optimizer.bin b/checkpoint-76000/optimizer.bin deleted file mode 100644 index 36fbb733d6c6d1abb8ec347e3c05f1ff2a083148..0000000000000000000000000000000000000000 --- a/checkpoint-76000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebbb2a442643614ea4e53f7c880f37c7640854a435cff1547e3cf4322ab1a3d9 -size 1908743179 diff --git a/checkpoint-76000/scheduler.bin b/checkpoint-76000/scheduler.bin deleted file mode 100644 index cbbc139f8647d453e1de63b69469835f1d1eddf5..0000000000000000000000000000000000000000 --- a/checkpoint-76000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e4403aa4390bc369e9e4db7145ef13bd5f1b6c7f5b9e42fa3fe5909945941bd2 -size 1465 diff --git a/checkpoint-76000/tokenizer.json b/checkpoint-76000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-76000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-76000/tokenizer_config.json b/checkpoint-76000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-76000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-76000/train.json b/checkpoint-76000/train.json deleted file mode 100644 index 37d7cdc50372e11458b421cd92e7182056653f25..0000000000000000000000000000000000000000 --- a/checkpoint-76000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 76000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:16:19" -} \ No newline at end of file diff --git a/checkpoint-77000/chat_template.jinja b/checkpoint-77000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-77000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-77000/config.json b/checkpoint-77000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-77000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-77000/generation_config.json b/checkpoint-77000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-77000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-77000/model.safetensors b/checkpoint-77000/model.safetensors deleted file mode 100644 index 58d99c20c4eacb0859c24ee8511c1878edf8767a..0000000000000000000000000000000000000000 --- a/checkpoint-77000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:780153d5166309fa63bc282e1ba33bf8e4dafc4fcec0db660fb2fb04cdd88a66 -size 954310784 diff --git a/checkpoint-77000/optimizer.bin b/checkpoint-77000/optimizer.bin deleted file mode 100644 index 2de5aab86648b949cbb32031eefeea12ecaccd48..0000000000000000000000000000000000000000 --- a/checkpoint-77000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81546663d8e602cccadbcfd039afeb4dac132d658344af0aa544a850893463c3 -size 1908743179 diff --git a/checkpoint-77000/scheduler.bin b/checkpoint-77000/scheduler.bin deleted file mode 100644 index 7814e103f6015fca641240e93c2bf1fccdfc15ae..0000000000000000000000000000000000000000 --- a/checkpoint-77000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:400b4b5d77d955b163584813617f182ba73a13b2632c48a73b0836152b1ba92e -size 1465 diff --git a/checkpoint-77000/tokenizer.json b/checkpoint-77000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-77000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-77000/tokenizer_config.json b/checkpoint-77000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-77000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-77000/train.json b/checkpoint-77000/train.json deleted file mode 100644 index 47eaa0235cac2f51e9fd324a43024bcce6e215d2..0000000000000000000000000000000000000000 --- a/checkpoint-77000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 77000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:23:05" -} \ No newline at end of file diff --git a/checkpoint-78000/chat_template.jinja b/checkpoint-78000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-78000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-78000/config.json b/checkpoint-78000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-78000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-78000/generation_config.json b/checkpoint-78000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-78000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-78000/model.safetensors b/checkpoint-78000/model.safetensors deleted file mode 100644 index c6105d795ce430e6c6c456b533df38e781c56df9..0000000000000000000000000000000000000000 --- a/checkpoint-78000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:508720346449b62730e3b0da1f9dcb5f2c452ab5fbce44ef2b712fbcc3c3139d -size 954310784 diff --git a/checkpoint-78000/optimizer.bin b/checkpoint-78000/optimizer.bin deleted file mode 100644 index 51e948ef6814f3198b370729934400ea02686980..0000000000000000000000000000000000000000 --- a/checkpoint-78000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f232925f94acf7fe70dd54dd03bec107936aa8cb78f9584ddff65d78d079547 -size 1908743179 diff --git a/checkpoint-78000/scheduler.bin b/checkpoint-78000/scheduler.bin deleted file mode 100644 index cee9ee4918bbb0525e2fd345d967bcd8404ad61e..0000000000000000000000000000000000000000 --- a/checkpoint-78000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:155f3cea3141f39102978a6103262ed3ca5d7abf92b7e02aaa018dc88afb9480 -size 1465 diff --git a/checkpoint-78000/tokenizer.json b/checkpoint-78000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-78000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-78000/tokenizer_config.json b/checkpoint-78000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-78000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-78000/train.json b/checkpoint-78000/train.json deleted file mode 100644 index e8f39554e9e8a917b6f934c23090c4c8dd5e7208..0000000000000000000000000000000000000000 --- a/checkpoint-78000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 78000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:29:53" -} \ No newline at end of file diff --git a/checkpoint-79000/chat_template.jinja b/checkpoint-79000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-79000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-79000/config.json b/checkpoint-79000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-79000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-79000/generation_config.json b/checkpoint-79000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-79000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-79000/model.safetensors b/checkpoint-79000/model.safetensors deleted file mode 100644 index 333d27809adcfbe2c43c2e7ff5dbc1e3d386cf08..0000000000000000000000000000000000000000 --- a/checkpoint-79000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a61cda56e9c18ce1c508c115247e72a8240fb662551fe6d79b77c0f850f76ce -size 954310784 diff --git a/checkpoint-79000/optimizer.bin b/checkpoint-79000/optimizer.bin deleted file mode 100644 index b506223686e20edb76f9a00e971e8a96a4155be2..0000000000000000000000000000000000000000 --- a/checkpoint-79000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8eb0d69a3959a43d9325f325d6f9af71a5b31c3cf68b65fa773f52ccab5b714 -size 1908743179 diff --git a/checkpoint-79000/scheduler.bin b/checkpoint-79000/scheduler.bin deleted file mode 100644 index c2b4c6073c4122c2fea1e32e64351a7d122b2adf..0000000000000000000000000000000000000000 --- a/checkpoint-79000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c66c9c4c9d5865d00e9496985c9546d6ae6ac22fe69bf4725add9cdf44991a56 -size 1465 diff --git a/checkpoint-79000/tokenizer.json b/checkpoint-79000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-79000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-79000/tokenizer_config.json b/checkpoint-79000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-79000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-79000/train.json b/checkpoint-79000/train.json deleted file mode 100644 index 85fb313415cf1bde2c5e3ed90228ac6a9e91c2a5..0000000000000000000000000000000000000000 --- a/checkpoint-79000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 79000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:36:42" -} \ No newline at end of file diff --git a/checkpoint-8000/chat_template.jinja b/checkpoint-8000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-8000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-8000/config.json b/checkpoint-8000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-8000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-8000/generation_config.json b/checkpoint-8000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-8000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-8000/model.safetensors b/checkpoint-8000/model.safetensors deleted file mode 100644 index 2aade580a65d904b3ef8720a18562b88a3aaa686..0000000000000000000000000000000000000000 --- a/checkpoint-8000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20b9e6840bc402556764f5cde97921838b0b4ae330c9838fab486480f3630a2f -size 954310784 diff --git a/checkpoint-8000/optimizer.bin b/checkpoint-8000/optimizer.bin deleted file mode 100644 index 323af8b4c0be9861b621599ca3efb8516b067a60..0000000000000000000000000000000000000000 --- a/checkpoint-8000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2eb4760ede051850180efbf7577cd04097d145aeb0a8b676b21732f3be56f1fa -size 1908743179 diff --git a/checkpoint-8000/scheduler.bin b/checkpoint-8000/scheduler.bin deleted file mode 100644 index 0e69218f97a87a9feb9237d549d59710ba558e83..0000000000000000000000000000000000000000 --- a/checkpoint-8000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1684b18edc857a8ef395edd1da02ddb357c07e78bcf7aed31ecde719f9e4df0 -size 1401 diff --git a/checkpoint-8000/tokenizer.json b/checkpoint-8000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-8000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-8000/tokenizer_config.json b/checkpoint-8000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-8000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-8000/train.json b/checkpoint-8000/train.json deleted file mode 100644 index 4f3b2af4c9947f6474ec370eb31c4ca67a3b02fe..0000000000000000000000000000000000000000 --- a/checkpoint-8000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 8000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:35:35" -} \ No newline at end of file diff --git a/checkpoint-80000/chat_template.jinja b/checkpoint-80000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-80000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-80000/config.json b/checkpoint-80000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-80000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-80000/generation_config.json b/checkpoint-80000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-80000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-80000/model.safetensors b/checkpoint-80000/model.safetensors deleted file mode 100644 index c20d0b110be849bc72ec83442444e65da4307e2e..0000000000000000000000000000000000000000 --- a/checkpoint-80000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:192f75664909a66b5f7153c9f7afcfb66e16c19317ccc1609c2fc70fb137fe32 -size 954310784 diff --git a/checkpoint-80000/optimizer.bin b/checkpoint-80000/optimizer.bin deleted file mode 100644 index 5adacacc23624534e0eb551e87df2910b9bea725..0000000000000000000000000000000000000000 --- a/checkpoint-80000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:14f3de66386c3a686869e5a9e44c87f113e81d2709f16cdc40f2a3d55876da95 -size 1908743179 diff --git a/checkpoint-80000/scheduler.bin b/checkpoint-80000/scheduler.bin deleted file mode 100644 index 7247e94fb49c22a44a4eae2efeefeca3c8fe7940..0000000000000000000000000000000000000000 --- a/checkpoint-80000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:645949d0e0037e97205f05e35839787ce5ec7bd790b6b47218ac2537f498dca4 -size 1465 diff --git a/checkpoint-80000/tokenizer.json b/checkpoint-80000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-80000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-80000/tokenizer_config.json b/checkpoint-80000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-80000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-80000/train.json b/checkpoint-80000/train.json deleted file mode 100644 index b655e818cb00496ed397e76d352b4978f46a460b..0000000000000000000000000000000000000000 --- a/checkpoint-80000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 80000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:43:25" -} \ No newline at end of file diff --git a/checkpoint-81000/chat_template.jinja b/checkpoint-81000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-81000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-81000/config.json b/checkpoint-81000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-81000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-81000/generation_config.json b/checkpoint-81000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-81000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-81000/model.safetensors b/checkpoint-81000/model.safetensors deleted file mode 100644 index 98bf9680c280336a0a3af46285a8186a180e6501..0000000000000000000000000000000000000000 --- a/checkpoint-81000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfb6863a8d6960598a2fc948a2bd5b39495a982c96efc1b4330ee1de7848bade -size 954310784 diff --git a/checkpoint-81000/optimizer.bin b/checkpoint-81000/optimizer.bin deleted file mode 100644 index f60eaaa749b28d049902fba418ec85db7b5550e1..0000000000000000000000000000000000000000 --- a/checkpoint-81000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e808973904852b8f108b54c20ba56dc8a179ec3d905adc9827da2ccd56a797c4 -size 1908743179 diff --git a/checkpoint-81000/scheduler.bin b/checkpoint-81000/scheduler.bin deleted file mode 100644 index cef466bb5093eacab43173457e30d6fe7681d623..0000000000000000000000000000000000000000 --- a/checkpoint-81000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:187a9c44523b846770260a6c184484c3eb2d35fae1774a09076af6b38a65fbca -size 1465 diff --git a/checkpoint-81000/tokenizer.json b/checkpoint-81000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-81000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-81000/tokenizer_config.json b/checkpoint-81000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-81000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-81000/train.json b/checkpoint-81000/train.json deleted file mode 100644 index 7bf096671514fa48f5a3a6c4b12ef3a222716e3b..0000000000000000000000000000000000000000 --- a/checkpoint-81000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 81000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:50:12" -} \ No newline at end of file diff --git a/checkpoint-82000/chat_template.jinja b/checkpoint-82000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-82000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-82000/config.json b/checkpoint-82000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-82000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-82000/generation_config.json b/checkpoint-82000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-82000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-82000/model.safetensors b/checkpoint-82000/model.safetensors deleted file mode 100644 index eae143986991ff6fcf3769e71a1305f504e51071..0000000000000000000000000000000000000000 --- a/checkpoint-82000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15ee735c972a8bc84f6347f2dd004bdd038b01002cbfdb77d0810fd03eeea713 -size 954310784 diff --git a/checkpoint-82000/optimizer.bin b/checkpoint-82000/optimizer.bin deleted file mode 100644 index d259481b954579705e91d318455d68f02ad4af38..0000000000000000000000000000000000000000 --- a/checkpoint-82000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d845a23fd1c40662708c3d83a3d19ebb1c2e8a5a235c32774739b16aa48321b5 -size 1908743179 diff --git a/checkpoint-82000/scheduler.bin b/checkpoint-82000/scheduler.bin deleted file mode 100644 index dc5d221acae6524826b8e166b63eb155ebdfac30..0000000000000000000000000000000000000000 --- a/checkpoint-82000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfc40a5c88ab0ce41c1acc0bd51c287bd73a98bcd0f6280ae36c42b314216d84 -size 1465 diff --git a/checkpoint-82000/tokenizer.json b/checkpoint-82000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-82000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-82000/tokenizer_config.json b/checkpoint-82000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-82000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-82000/train.json b/checkpoint-82000/train.json deleted file mode 100644 index 8b08d718c01d7683c3dab1fd151ccc3ba673688b..0000000000000000000000000000000000000000 --- a/checkpoint-82000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 82000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 04:57:00" -} \ No newline at end of file diff --git a/checkpoint-83000/chat_template.jinja b/checkpoint-83000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-83000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-83000/config.json b/checkpoint-83000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-83000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-83000/generation_config.json b/checkpoint-83000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-83000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-83000/model.safetensors b/checkpoint-83000/model.safetensors deleted file mode 100644 index 6a69ca6bc6619300b05d01fd9beb9f5e6e33af9a..0000000000000000000000000000000000000000 --- a/checkpoint-83000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2ca40c4d555edb498e13f1fa2e4c8a455cf24ddc784e6bd6fb122bd892ef6ca8 -size 954310784 diff --git a/checkpoint-83000/optimizer.bin b/checkpoint-83000/optimizer.bin deleted file mode 100644 index 543ec53f8a9227a8090c1cb453328044e1574067..0000000000000000000000000000000000000000 --- a/checkpoint-83000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:67065077d77f7499d3f4b390adbfe6d0dfcdda85aac55efb1bcc3f41544442fb -size 1908743179 diff --git a/checkpoint-83000/scheduler.bin b/checkpoint-83000/scheduler.bin deleted file mode 100644 index c3521cd4f9a63796fb3730d7f14d5abbb6d00fe8..0000000000000000000000000000000000000000 --- a/checkpoint-83000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:32e61f2e102e25801fb5f524a4f540d8ab9c3f5068e6c1c2127ec32573223f8a -size 1465 diff --git a/checkpoint-83000/tokenizer.json b/checkpoint-83000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-83000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-83000/tokenizer_config.json b/checkpoint-83000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-83000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-83000/train.json b/checkpoint-83000/train.json deleted file mode 100644 index 1141ed1ce00095390e5e9ebf8b11b179259eab49..0000000000000000000000000000000000000000 --- a/checkpoint-83000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 83000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:03:45" -} \ No newline at end of file diff --git a/checkpoint-84000/chat_template.jinja b/checkpoint-84000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-84000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-84000/config.json b/checkpoint-84000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-84000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-84000/generation_config.json b/checkpoint-84000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-84000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-84000/model.safetensors b/checkpoint-84000/model.safetensors deleted file mode 100644 index f69c327607a67c2f5034e4ab3203db54d77a4eac..0000000000000000000000000000000000000000 --- a/checkpoint-84000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c49cb76f4c71c75446ed0c9c55c4cd0e73d412978d4c885ef738935709d55eb1 -size 954310784 diff --git a/checkpoint-84000/optimizer.bin b/checkpoint-84000/optimizer.bin deleted file mode 100644 index f756989fc93d2bf4acc548c67450bce7813dc0d2..0000000000000000000000000000000000000000 --- a/checkpoint-84000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca79df6d590c0715ca08c55893443f3d5f85b9a6ba2bdca1bc7471e2190568e9 -size 1908743179 diff --git a/checkpoint-84000/scheduler.bin b/checkpoint-84000/scheduler.bin deleted file mode 100644 index f744f9d8787ab9e48a4a0385671e0462c789c2db..0000000000000000000000000000000000000000 --- a/checkpoint-84000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35b3d4e835a8c7739492475e4ec8841825f1a58920a8d051ec9563337f738e86 -size 1465 diff --git a/checkpoint-84000/tokenizer.json b/checkpoint-84000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-84000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-84000/tokenizer_config.json b/checkpoint-84000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-84000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-84000/train.json b/checkpoint-84000/train.json deleted file mode 100644 index 58b06023504a3076c46af22fdca32f062327db15..0000000000000000000000000000000000000000 --- a/checkpoint-84000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 84000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:10:29" -} \ No newline at end of file diff --git a/checkpoint-85000/chat_template.jinja b/checkpoint-85000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-85000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-85000/config.json b/checkpoint-85000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-85000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-85000/generation_config.json b/checkpoint-85000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-85000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-85000/model.safetensors b/checkpoint-85000/model.safetensors deleted file mode 100644 index e72a617859d97777b1526936c1d423b28859300d..0000000000000000000000000000000000000000 --- a/checkpoint-85000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eacf94fa2577c957308394940eb9bf5676e6c0ee33950c1c61c9fa91f8b903a4 -size 954310784 diff --git a/checkpoint-85000/optimizer.bin b/checkpoint-85000/optimizer.bin deleted file mode 100644 index 2bec41d8527d0ab7d70e2a9d4c28549281550bb0..0000000000000000000000000000000000000000 --- a/checkpoint-85000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82e85a677418e382544825f857f8edf53e86755eb555179c080b86ba8d13a799 -size 1908743179 diff --git a/checkpoint-85000/scheduler.bin b/checkpoint-85000/scheduler.bin deleted file mode 100644 index 1808abe1ede4ac689099c507158a4ab82ba4d679..0000000000000000000000000000000000000000 --- a/checkpoint-85000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3aafbe1bae7176f153853391da8fa262fbfef4270a85803f050d7867eb16dd03 -size 1465 diff --git a/checkpoint-85000/tokenizer.json b/checkpoint-85000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-85000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-85000/tokenizer_config.json b/checkpoint-85000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-85000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-85000/train.json b/checkpoint-85000/train.json deleted file mode 100644 index f616bb5bad195092619ac6969a100583de6eadcd..0000000000000000000000000000000000000000 --- a/checkpoint-85000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 85000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:17:16" -} \ No newline at end of file diff --git a/checkpoint-86000/chat_template.jinja b/checkpoint-86000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-86000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-86000/config.json b/checkpoint-86000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-86000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-86000/generation_config.json b/checkpoint-86000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-86000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-86000/model.safetensors b/checkpoint-86000/model.safetensors deleted file mode 100644 index 03b24db46cd0c69924228a9b1eb39429f4ea3d74..0000000000000000000000000000000000000000 --- a/checkpoint-86000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0f81f817191d4628281567790a94252c11bd99370cf48463ee2190f3385bc07 -size 954310784 diff --git a/checkpoint-86000/optimizer.bin b/checkpoint-86000/optimizer.bin deleted file mode 100644 index 845e41e7d35f7c7135d3166a1b8170c0043b7477..0000000000000000000000000000000000000000 --- a/checkpoint-86000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2c10d5e6fe9f30040656ca2c54ab4d55b6b51b38fdc65710559575363b27532 -size 1908743179 diff --git a/checkpoint-86000/scheduler.bin b/checkpoint-86000/scheduler.bin deleted file mode 100644 index 81bea38d24eb25f44d82679840b801c36c80479e..0000000000000000000000000000000000000000 --- a/checkpoint-86000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c76178d5dd3cf15ecafb612cf2d10391e1a25566b0cf9279d47cf8cd434b7483 -size 1465 diff --git a/checkpoint-86000/tokenizer.json b/checkpoint-86000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-86000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-86000/tokenizer_config.json b/checkpoint-86000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-86000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-86000/train.json b/checkpoint-86000/train.json deleted file mode 100644 index f7f3c71e01012082aed69bc11c3276dacada7290..0000000000000000000000000000000000000000 --- a/checkpoint-86000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 86000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:24:06" -} \ No newline at end of file diff --git a/checkpoint-87000/chat_template.jinja b/checkpoint-87000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-87000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-87000/config.json b/checkpoint-87000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-87000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-87000/generation_config.json b/checkpoint-87000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-87000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-87000/model.safetensors b/checkpoint-87000/model.safetensors deleted file mode 100644 index 62e759800a57c05fdde089d313bff7d39dc70bbc..0000000000000000000000000000000000000000 --- a/checkpoint-87000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cdaf0b6220eba46825f897d3689e6a53cbfe28c9c02362cab4be15fa2157ed7 -size 954310784 diff --git a/checkpoint-87000/optimizer.bin b/checkpoint-87000/optimizer.bin deleted file mode 100644 index f69b86b1599d739884b91ae794a0f2ea56859762..0000000000000000000000000000000000000000 --- a/checkpoint-87000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e6f73244c12f4e1485e2b020b36b172793078a65567933a1d73f804856df262 -size 1908743179 diff --git a/checkpoint-87000/scheduler.bin b/checkpoint-87000/scheduler.bin deleted file mode 100644 index a35a7befe3ca317f964b0624f06e748bddf6856a..0000000000000000000000000000000000000000 --- a/checkpoint-87000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d5a2f0639b6bfaeb5b9c57662ad44c385813c80fba8bfdb69f67d5bb44a4bf6 -size 1465 diff --git a/checkpoint-87000/tokenizer.json b/checkpoint-87000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-87000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-87000/tokenizer_config.json b/checkpoint-87000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-87000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-87000/train.json b/checkpoint-87000/train.json deleted file mode 100644 index b304ac5c7b9e8a21f0fc960aa7e6503909f07876..0000000000000000000000000000000000000000 --- a/checkpoint-87000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 87000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:30:49" -} \ No newline at end of file diff --git a/checkpoint-88000/chat_template.jinja b/checkpoint-88000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-88000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-88000/config.json b/checkpoint-88000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-88000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-88000/generation_config.json b/checkpoint-88000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-88000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-88000/model.safetensors b/checkpoint-88000/model.safetensors deleted file mode 100644 index 50d811ac7348e04ca82d1b6e621b26903c20614e..0000000000000000000000000000000000000000 --- a/checkpoint-88000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:087c08e102a170cb06e641b44492dfdca256f0ca7bba250b9d6177c80bc1c5a7 -size 954310784 diff --git a/checkpoint-88000/optimizer.bin b/checkpoint-88000/optimizer.bin deleted file mode 100644 index df71b7d522cdb16769b349c27acf9132adfaa435..0000000000000000000000000000000000000000 --- a/checkpoint-88000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d096d1705176aa782ea5b44ecc805857c01c7da01af05a0b689b7de1566f9fa2 -size 1908743179 diff --git a/checkpoint-88000/scheduler.bin b/checkpoint-88000/scheduler.bin deleted file mode 100644 index 7a4b71d71c4d2d3a2796ee9f251c6fbf1aa0eda6..0000000000000000000000000000000000000000 --- a/checkpoint-88000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b882b3a51482a14a98c4d13f6d77b0f7e59f7b70ffd4d9106cfb04d2bde7d36b -size 1465 diff --git a/checkpoint-88000/tokenizer.json b/checkpoint-88000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-88000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-88000/tokenizer_config.json b/checkpoint-88000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-88000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-88000/train.json b/checkpoint-88000/train.json deleted file mode 100644 index 92679d66dfc866fce1b77065f236291322e92b28..0000000000000000000000000000000000000000 --- a/checkpoint-88000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 88000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:37:37" -} \ No newline at end of file diff --git a/checkpoint-89000/chat_template.jinja b/checkpoint-89000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-89000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-89000/config.json b/checkpoint-89000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-89000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-89000/generation_config.json b/checkpoint-89000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-89000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-89000/model.safetensors b/checkpoint-89000/model.safetensors deleted file mode 100644 index 78cbe76157a7d1adcd982d1edcfcdc03708e154c..0000000000000000000000000000000000000000 --- a/checkpoint-89000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a3535a70d0cedfca912d87da0c55fdb983fbd0917a10847cbaf37d0c597253d -size 954310784 diff --git a/checkpoint-89000/optimizer.bin b/checkpoint-89000/optimizer.bin deleted file mode 100644 index a60bfdd8b40f5809b6d5562335a1d04f116685e9..0000000000000000000000000000000000000000 --- a/checkpoint-89000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c45cfa436159fce4c4e225201a33216f7372a3300234fa8aef9d201ef266a177 -size 1908743179 diff --git a/checkpoint-89000/scheduler.bin b/checkpoint-89000/scheduler.bin deleted file mode 100644 index ba3ef34cddfc3d24c669dbaa58ce91bfb24eab0b..0000000000000000000000000000000000000000 --- a/checkpoint-89000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf26090933cd143dbb47b565f5cc30c67f2a824b5b81b2456113ab2351268d1d -size 1465 diff --git a/checkpoint-89000/tokenizer.json b/checkpoint-89000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-89000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-89000/tokenizer_config.json b/checkpoint-89000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-89000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-89000/train.json b/checkpoint-89000/train.json deleted file mode 100644 index 45d9a3f016e0a58e9691b6b728d3b381fe3b1e63..0000000000000000000000000000000000000000 --- a/checkpoint-89000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 89000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:44:28" -} \ No newline at end of file diff --git a/checkpoint-9000/chat_template.jinja b/checkpoint-9000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-9000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-9000/config.json b/checkpoint-9000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-9000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-9000/generation_config.json b/checkpoint-9000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-9000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-9000/model.safetensors b/checkpoint-9000/model.safetensors deleted file mode 100644 index a81e9db05345e0beed583809f05145db305c85f4..0000000000000000000000000000000000000000 --- a/checkpoint-9000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6bb1ef7ff74e136dbff98cc6cb4c3d070ebac7c9d918ac057833e267da536b1 -size 954310784 diff --git a/checkpoint-9000/optimizer.bin b/checkpoint-9000/optimizer.bin deleted file mode 100644 index fc8c9f64655f04cd6a73bf07212c8c0450be9302..0000000000000000000000000000000000000000 --- a/checkpoint-9000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c6bdbc4bd8fa5db12f28f61e1178e63011a35dfa4339b4d031682d6244003d2 -size 1908743179 diff --git a/checkpoint-9000/scheduler.bin b/checkpoint-9000/scheduler.bin deleted file mode 100644 index cbf0f1326a094f2af306a8c96b2b3b5788dd17ba..0000000000000000000000000000000000000000 --- a/checkpoint-9000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13c0309e50523971c3364f300d014193a36b79cfa6128eaac1ba450af64e45cd -size 1401 diff --git a/checkpoint-9000/tokenizer.json b/checkpoint-9000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-9000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-9000/tokenizer_config.json b/checkpoint-9000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-9000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-9000/train.json b/checkpoint-9000/train.json deleted file mode 100644 index 73c55f344a6e81584b9b8fa100fa881962d1b318..0000000000000000000000000000000000000000 --- a/checkpoint-9000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 9000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-17 20:42:16" -} \ No newline at end of file diff --git a/checkpoint-90000/chat_template.jinja b/checkpoint-90000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-90000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-90000/config.json b/checkpoint-90000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-90000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-90000/generation_config.json b/checkpoint-90000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-90000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-90000/model.safetensors b/checkpoint-90000/model.safetensors deleted file mode 100644 index 9916cb1aca9119774e50862017c9d76a665ef902..0000000000000000000000000000000000000000 --- a/checkpoint-90000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba64f92b7a354bf2ee23307daef2c047754429794cb4d4204a3582aae5750af9 -size 954310784 diff --git a/checkpoint-90000/optimizer.bin b/checkpoint-90000/optimizer.bin deleted file mode 100644 index 653bcca75339ccb41c1c2ec5c0e4230c0eb655a3..0000000000000000000000000000000000000000 --- a/checkpoint-90000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eea042990232c417b663e6ab718326023e0e85d7858ff1183b247006636a1128 -size 1908743179 diff --git a/checkpoint-90000/scheduler.bin b/checkpoint-90000/scheduler.bin deleted file mode 100644 index b1701647eaa4b48d3a2c1ad97562a3117bee975d..0000000000000000000000000000000000000000 --- a/checkpoint-90000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83c7c626599b8603c6699d8e8f6bd4696c999d93cd511e8c17fb8c3dededa576 -size 1465 diff --git a/checkpoint-90000/tokenizer.json b/checkpoint-90000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-90000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-90000/tokenizer_config.json b/checkpoint-90000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-90000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-90000/train.json b/checkpoint-90000/train.json deleted file mode 100644 index 3c046611e2e78fc9521f0974f83a39eeb0925a24..0000000000000000000000000000000000000000 --- a/checkpoint-90000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 90000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:51:12" -} \ No newline at end of file diff --git a/checkpoint-91000/chat_template.jinja b/checkpoint-91000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-91000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-91000/config.json b/checkpoint-91000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-91000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-91000/generation_config.json b/checkpoint-91000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-91000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-91000/model.safetensors b/checkpoint-91000/model.safetensors deleted file mode 100644 index 20a25dc0bfa0f44d906382e0234797dfb8229d44..0000000000000000000000000000000000000000 --- a/checkpoint-91000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02d463f495ef46dace0cc1138c982c0d7780e9070a64997bcd86eee66aeb8381 -size 954310784 diff --git a/checkpoint-91000/optimizer.bin b/checkpoint-91000/optimizer.bin deleted file mode 100644 index df90d353957b2935a2bec89ee4046ca2747b8362..0000000000000000000000000000000000000000 --- a/checkpoint-91000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b00563a114e119e2aba63a76f6963b52cfc1cd77c4587756f8037a230f7e0022 -size 1908743179 diff --git a/checkpoint-91000/scheduler.bin b/checkpoint-91000/scheduler.bin deleted file mode 100644 index 4e6be4c18b825430dbe37c6cb6688b10221fe91e..0000000000000000000000000000000000000000 --- a/checkpoint-91000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eab973555ca1121c5acab5005abd933c10481bb119096e3e504e10eb41ed6eee -size 1465 diff --git a/checkpoint-91000/tokenizer.json b/checkpoint-91000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-91000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-91000/tokenizer_config.json b/checkpoint-91000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-91000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-91000/train.json b/checkpoint-91000/train.json deleted file mode 100644 index b0e1d18aa3386cd43cc58261dda7b15045dfc1d7..0000000000000000000000000000000000000000 --- a/checkpoint-91000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 91000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 05:58:01" -} \ No newline at end of file diff --git a/checkpoint-92000/chat_template.jinja b/checkpoint-92000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-92000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-92000/config.json b/checkpoint-92000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-92000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-92000/generation_config.json b/checkpoint-92000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-92000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-92000/model.safetensors b/checkpoint-92000/model.safetensors deleted file mode 100644 index ae441487304c7ee8b45820ae3d92a0da4a4c6556..0000000000000000000000000000000000000000 --- a/checkpoint-92000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96bda03caa3734531d2fc1df662622196ff97d35a6817fccccbc23f4b8b98785 -size 954310784 diff --git a/checkpoint-92000/optimizer.bin b/checkpoint-92000/optimizer.bin deleted file mode 100644 index 056b460417021d5f4694910843804d6eea8afd5f..0000000000000000000000000000000000000000 --- a/checkpoint-92000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b657617a453d68d9ebefe9d2bac6b48a4c57e62cc1c24ffec2fef1c18cad6616 -size 1908743179 diff --git a/checkpoint-92000/scheduler.bin b/checkpoint-92000/scheduler.bin deleted file mode 100644 index fee9ef00cda8a0797b08a912098d7a49c8707612..0000000000000000000000000000000000000000 --- a/checkpoint-92000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9424ff6a4b28c98ad807f6008add1ff7e8bc65fcd72ff3a2d5b2a077bb32442c -size 1465 diff --git a/checkpoint-92000/tokenizer.json b/checkpoint-92000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-92000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-92000/tokenizer_config.json b/checkpoint-92000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-92000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-92000/train.json b/checkpoint-92000/train.json deleted file mode 100644 index e1ae103a346569a6b537ae9c166a433296536115..0000000000000000000000000000000000000000 --- a/checkpoint-92000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 92000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:04:44" -} \ No newline at end of file diff --git a/checkpoint-93000/chat_template.jinja b/checkpoint-93000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-93000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-93000/config.json b/checkpoint-93000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-93000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-93000/generation_config.json b/checkpoint-93000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-93000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-93000/model.safetensors b/checkpoint-93000/model.safetensors deleted file mode 100644 index 8dbed6fd8783e224765bfb516f045f6286664152..0000000000000000000000000000000000000000 --- a/checkpoint-93000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c172db1d9225f271bfadb4648c9b637fe13875046c028e6f7eba8827bc6797c3 -size 954310784 diff --git a/checkpoint-93000/optimizer.bin b/checkpoint-93000/optimizer.bin deleted file mode 100644 index 62908ffcaa7cdc2b9f6b8de7d9076b95d70e686d..0000000000000000000000000000000000000000 --- a/checkpoint-93000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad244c31be1a7159e956f4f419c4c5df93023840fbf910d74bd4bfb94aced09c -size 1908743179 diff --git a/checkpoint-93000/scheduler.bin b/checkpoint-93000/scheduler.bin deleted file mode 100644 index f886a2852d5a659deb2739f6314ceeba40bb09bc..0000000000000000000000000000000000000000 --- a/checkpoint-93000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20a42a1a4832f8de67aa40a0b8e0282933547793436377441258041d9c07573e -size 1465 diff --git a/checkpoint-93000/tokenizer.json b/checkpoint-93000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-93000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-93000/tokenizer_config.json b/checkpoint-93000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-93000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-93000/train.json b/checkpoint-93000/train.json deleted file mode 100644 index 032f4cc99fec98b856f2dcb5810a96de0dab7fd0..0000000000000000000000000000000000000000 --- a/checkpoint-93000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 93000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:11:25" -} \ No newline at end of file diff --git a/checkpoint-94000/chat_template.jinja b/checkpoint-94000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-94000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-94000/config.json b/checkpoint-94000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-94000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-94000/generation_config.json b/checkpoint-94000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-94000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-94000/model.safetensors b/checkpoint-94000/model.safetensors deleted file mode 100644 index b9825ed601c3cedb2d88be696dec24f6c29c8ff6..0000000000000000000000000000000000000000 --- a/checkpoint-94000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:067355a9568560dd75a246262a8cc13ef8379b742a491b0435752d9cc2a9d06e -size 954310784 diff --git a/checkpoint-94000/optimizer.bin b/checkpoint-94000/optimizer.bin deleted file mode 100644 index 31a6624463d0d1d1e4c3501f3e88b7a9cec934d4..0000000000000000000000000000000000000000 --- a/checkpoint-94000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e99885404fd0ed47db0e940d294c2837e911d946e60ea9f60c28c1f14ea4a4f2 -size 1908743179 diff --git a/checkpoint-94000/scheduler.bin b/checkpoint-94000/scheduler.bin deleted file mode 100644 index 449cae699565b9796157db5826260ffa411b4069..0000000000000000000000000000000000000000 --- a/checkpoint-94000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:996d7b82a72087f3d1c9f5b83b7d8002c4af9f18265188e1c17038f7f3809dd6 -size 1465 diff --git a/checkpoint-94000/tokenizer.json b/checkpoint-94000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-94000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-94000/tokenizer_config.json b/checkpoint-94000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-94000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-94000/train.json b/checkpoint-94000/train.json deleted file mode 100644 index 045fb4e9d4ef8cefa006ee538bf2d5b56ede59d5..0000000000000000000000000000000000000000 --- a/checkpoint-94000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 94000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:18:13" -} \ No newline at end of file diff --git a/checkpoint-95000/chat_template.jinja b/checkpoint-95000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-95000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-95000/config.json b/checkpoint-95000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-95000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-95000/generation_config.json b/checkpoint-95000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-95000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-95000/model.safetensors b/checkpoint-95000/model.safetensors deleted file mode 100644 index 1f3b7c1bb90a4ffc569f103a0d937efbe0ff9e86..0000000000000000000000000000000000000000 --- a/checkpoint-95000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6bfa3737857ad7335e2ecd7795856d5ee5d46516f548c8e99e56443f61d0f185 -size 954310784 diff --git a/checkpoint-95000/optimizer.bin b/checkpoint-95000/optimizer.bin deleted file mode 100644 index f38655642a6b18c1013f6bdf8f99c57e9d728a5a..0000000000000000000000000000000000000000 --- a/checkpoint-95000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ad29d904db91ac217a0b884fc9d6f06a912ca7b7d566c632ff6c14a87b8b366 -size 1908743179 diff --git a/checkpoint-95000/scheduler.bin b/checkpoint-95000/scheduler.bin deleted file mode 100644 index 150c4223eb121dfb39d9bf23275b643cb1816c80..0000000000000000000000000000000000000000 --- a/checkpoint-95000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12949ab0ebbc26c5747914ce58038cb991346d6eb0f89a2a3bec01a722a25d87 -size 1465 diff --git a/checkpoint-95000/tokenizer.json b/checkpoint-95000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-95000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-95000/tokenizer_config.json b/checkpoint-95000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-95000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-95000/train.json b/checkpoint-95000/train.json deleted file mode 100644 index 1df64bc3682a0c3b982482bebf72be830a611f55..0000000000000000000000000000000000000000 --- a/checkpoint-95000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 95000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:25:02" -} \ No newline at end of file diff --git a/checkpoint-96000/chat_template.jinja b/checkpoint-96000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-96000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-96000/config.json b/checkpoint-96000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-96000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-96000/generation_config.json b/checkpoint-96000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-96000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-96000/model.safetensors b/checkpoint-96000/model.safetensors deleted file mode 100644 index 461bbd2117d37b399bb10da3c2d9018c0faf8b8a..0000000000000000000000000000000000000000 --- a/checkpoint-96000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:430065db98005795223c8ee31db028830e8989ac9015b4e04b156df2ce37ddd0 -size 954310784 diff --git a/checkpoint-96000/optimizer.bin b/checkpoint-96000/optimizer.bin deleted file mode 100644 index 9360a26aa145ab027ecbcf4cdad3b1e1d8037b76..0000000000000000000000000000000000000000 --- a/checkpoint-96000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d68a029e7b5bd3572b02dcdf66262a7692759df53d6158d014b3019b7edb69bc -size 1908743179 diff --git a/checkpoint-96000/scheduler.bin b/checkpoint-96000/scheduler.bin deleted file mode 100644 index 58d1e0fee16e30d4f4ff45167d58a4e827df9072..0000000000000000000000000000000000000000 --- a/checkpoint-96000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:84a59f3cdbb88e879f5ce0cd0dc07a877bda0c3afb4ad842bef2bf1a2f7417bb -size 1465 diff --git a/checkpoint-96000/tokenizer.json b/checkpoint-96000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-96000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-96000/tokenizer_config.json b/checkpoint-96000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-96000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-96000/train.json b/checkpoint-96000/train.json deleted file mode 100644 index 4963a5c29fab8aa40dfd3f676a82e6c71eeccf2e..0000000000000000000000000000000000000000 --- a/checkpoint-96000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 96000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:31:47" -} \ No newline at end of file diff --git a/checkpoint-97000/chat_template.jinja b/checkpoint-97000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-97000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-97000/config.json b/checkpoint-97000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-97000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-97000/generation_config.json b/checkpoint-97000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-97000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-97000/model.safetensors b/checkpoint-97000/model.safetensors deleted file mode 100644 index b6f60077b89bf670419887ca38f745cf9e4edf98..0000000000000000000000000000000000000000 --- a/checkpoint-97000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20f349d692521d28494857ed27b68f7f83373a87743fd1c077fcde4adab02832 -size 954310784 diff --git a/checkpoint-97000/optimizer.bin b/checkpoint-97000/optimizer.bin deleted file mode 100644 index bf14ca0a1b6c5c7d7423c69ce17178e29328a76d..0000000000000000000000000000000000000000 --- a/checkpoint-97000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f09bb4709891d8a7aa92cb29cd1d562d735b1ffafac3f8caf2199e951791e4a4 -size 1908743179 diff --git a/checkpoint-97000/scheduler.bin b/checkpoint-97000/scheduler.bin deleted file mode 100644 index 7025c2d1b72638ab1cd1600037b1f7d66291812c..0000000000000000000000000000000000000000 --- a/checkpoint-97000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6f742b686cb2e284a4de649062d4b9ca8484068de78457c8020e1f3a5e549f43 -size 1465 diff --git a/checkpoint-97000/tokenizer.json b/checkpoint-97000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-97000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-97000/tokenizer_config.json b/checkpoint-97000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-97000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-97000/train.json b/checkpoint-97000/train.json deleted file mode 100644 index 952807b0dd4e1d03bc8d2f6ee6599d7a54609305..0000000000000000000000000000000000000000 --- a/checkpoint-97000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 97000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:38:31" -} \ No newline at end of file diff --git a/checkpoint-98000/chat_template.jinja b/checkpoint-98000/chat_template.jinja deleted file mode 100644 index 386d0320110fd2c5062ea1a39955e4c51e7bc821..0000000000000000000000000000000000000000 --- a/checkpoint-98000/chat_template.jinja +++ /dev/null @@ -1,111 +0,0 @@ -{{- bos_token }} -{%- if custom_tools is defined and custom_tools%} - {%- set tools = custom_tools %} -{%- endif %} -{%- if tools is defined and tools %} - {%- set tool_definition = tool_definition ~ (tools | tojson(indent=4)) %} -{%- else %} - {%- set tools = none %} -{%- endif %} - - -{#- This block extracts the system message, so we can slot it into the right place. #} -{%- if messages[0]['role'] == 'system' %} - {%- set user_provided_system_message = true %} - {%- if messages[0]['content'] is string %} - {%- set system_message = messages[0]['content']|trim %} - {%- else %} - {%- set system_message = messages[0]['content'][0]['text']|trim %} - {%- endif %} - {%- set messages = messages[1:] %} -{%- else %} - {%- if tools is not none %} - {#- Since not system_message was provided by user, if tool is provided, system_message is now default tool system message #} - {#- This system message is from llama website:https://www.llama.com/docs/model-cards-and-prompt-formats/llama4/ #} - {%- set system_message = "You are a helpful assistant and an expert in function composition. You can answer general questions using your internal knowledge OR invoke functions when necessary. Follow these strict guidelines:\n\n1. FUNCTION CALLS:\n- ONLY use functions that are EXPLICITLY listed in the function list below\n- If NO functions are listed (empty function list []), respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If a function is not in the list, respond ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\"\n- If ALL required parameters are present AND the query EXACTLY matches a listed function's purpose: output ONLY the function call(s)\n- Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\nExamples:\nCORRECT: [get_weather(location=\"Vancouver\"), calculate_route(start=\"Boston\", end=\"New York\")] <- Only if get_weather and calculate_route are in function list\nINCORRECT: get_weather(location=\"New York\")\nINCORRECT: Let me check the weather: [get_weather(location=\"New York\")]\nINCORRECT: [get_events(location=\"Singapore\")] <- If function not in list\n\n2. RESPONSE RULES:\n- For pure function requests matching a listed function: ONLY output the function call(s)\n- For knowledge questions: ONLY output text\n- For missing parameters: ONLY request the specific missing parameters\n- For unavailable services (not in function list): output ONLY with internal knowledge or \"I don't have access to [Unavailable service] information\". Do NOT execute a function call.\n- If the query asks for information beyond what a listed function provides: output ONLY with internal knowledge about your limitations\n- NEVER combine text and function calls in the same response\n- NEVER suggest alternative functions when the requested service is unavailable\n- NEVER create or invent new functions not listed below\n\n3. STRICT BOUNDARIES:\n- ONLY use functions from the list below - no exceptions\n- NEVER use a function as an alternative to unavailable information\n- NEVER call functions not present in the function list\n- NEVER add explanatory text to function calls\n- NEVER respond with empty brackets\n- Use proper Python/JSON syntax for function calls\n- Check the function list carefully before responding\n\n4. TOOL RESPONSE HANDLING:\n- When receiving tool responses: provide concise, natural language responses\n- Don't repeat tool response verbatim\n- Don't add supplementary information\n\nHere is a list of functions in JSON format that you can invoke:\n" %} - {%- else %} - {%- set system_message = "" %} - {%- endif %} -{%- endif %} -{#- Now writing the system message: use the user provided system message if user_provided_system_message, else default tool system message if tools presented #} -{%- if system_message %} - {#- always use user provided system message to override default tool system message #} - {{- "<|header_start|>system<|header_end|>\n\n" }} - {{- system_message }} - {%- if user_provided_system_message and tools %} - {{- "\nHere is a list of functions in JSON format that you can invoke. Use exact format: [func_name1(param1=value1, param2=value2), func_name2(...)]\n" }} - {{- tool_definition -}} - {%- elif tool_definition %} - {{- tool_definition -}} - {%- endif %} - {{- "<|eot|>" }} -{%- endif %} - -{#- Now deal with all other messages #} -{%- for message in messages %} - {#- Base case: messages that are not from tool role and has empty tool_call list #} - {%- if not (message.role == 'ipython' or message.role == 'tool' or ('tool_calls' in message and message.tool_calls|length != 0 )) %} - {{- '<|header_start|>' + message['role'] + '<|header_end|>\n\n' }} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] | trim }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {#- Tool case: messages has non-empty tool_call list, must from assistant #} - {%- elif 'tool_calls' in message %} - {#- assume tool_calls are always coming from assistant #} - {%- if message.role == 'assistant' %} - {{- '<|header_start|>assistant<|header_end|>\n\n' -}} - {%- if message['content'] is string %} - {{- message['content'] }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'image' %} - {{- '<|image|>' }} - {%- elif content['type'] == 'text' %} - {{- content['text'] }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "[" }} - {%- for tool_call in message.tool_calls %} - {%- if tool_call.function is defined %} - {%- set tool_call = tool_call.function %} - {%- endif %} - {{- tool_call.name + '(' -}} - {%- for param in tool_call.arguments %} - {{- param + '="' -}} - {{- "%s" | format(tool_call.arguments[param]) -}} - {{- '"' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- ')' -}} - {% if not loop.last %}, {% endif %} - {%- endfor %} - {{- "]<|eot|>" }} -{%- endif %} -{#- Tool_response case: messages are from tool_response #} - {%- elif message.role == "tool" or message.role == "ipython" %} - {{- "<|header_start|>ipython<|header_end|>\n\n" }} - {%- if message.content is string %} - {{- message.content | tojson }} - {%- else %} - {%- for content in message['content'] %} - {%- if content['type'] == 'text' %} - {{- content['text'] | tojson }} - {%- endif %} - {%- endfor %} - {%- endif %} - {{- "<|eot|>" }} - {%- endif %} -{%- endfor %} -{%- if add_generation_prompt %} - {{- '<|header_start|>assistant<|header_end|>\n\n' }} -{%- endif %} \ No newline at end of file diff --git a/checkpoint-98000/config.json b/checkpoint-98000/config.json deleted file mode 100644 index c688acdd613f159200dc469691a8d810e0804ca9..0000000000000000000000000000000000000000 --- a/checkpoint-98000/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "architectures": [ - "Llama4ForCausalLM" - ], - "attention_bias": false, - "attention_chunk_size": 8192, - "attention_dropout": 0.0, - "attn_scale": 0.1, - "attn_temperature_tuning": true, - "bos_token_id": 1, - "dtype": "float32", - "eos_token_id": 2, - "floor_scale": 8192, - "head_dim": 128, - "hidden_act": "silu", - "hidden_size": 384, - "initializer_range": 0.02, - "interleave_moe_layer_step": 1, - "intermediate_size": 768, - "intermediate_size_mlp": 1024, - "layer_types": [ - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention", - "chunked_attention", - "chunked_attention", - "chunked_attention", - "full_attention" - ], - "max_position_embeddings": 1024, - "model_type": "llama4_text", - "moe_layers": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - ], - "no_rope_layers": [ - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0, - 1, - 1, - 1, - 0 - ], - "num_attention_heads": 6, - "num_experts_per_tok": 1, - "num_hidden_layers": 16, - "num_key_value_heads": 2, - "num_local_experts": 4, - "output_router_logits": false, - "pad_token_id": null, - "rms_norm_eps": 1e-05, - "rope_parameters": { - "rope_theta": 500000.0, - "rope_type": "default" - }, - "router_aux_loss_coef": 0.001, - "router_jitter_noise": 0.0, - "sliding_window": 512, - "tie_word_embeddings": false, - "transformers_version": "5.0.0", - "use_cache": false, - "use_qk_norm": true, - "vocab_size": 202048 -} diff --git a/checkpoint-98000/generation_config.json b/checkpoint-98000/generation_config.json deleted file mode 100644 index 3714417458f0dc4195f84086dfc6454728ebad9a..0000000000000000000000000000000000000000 --- a/checkpoint-98000/generation_config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "_from_model_config": true, - "bos_token_id": 1, - "eos_token_id": 2, - "transformers_version": "5.0.0" -} diff --git a/checkpoint-98000/model.safetensors b/checkpoint-98000/model.safetensors deleted file mode 100644 index 23e8812c9a82d38764b2d70a43b420c150d075b8..0000000000000000000000000000000000000000 --- a/checkpoint-98000/model.safetensors +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:23f1c38088cfb490662d618f684197d79b66781f85dd7a0db120bf975e6fa73f -size 954310784 diff --git a/checkpoint-98000/optimizer.bin b/checkpoint-98000/optimizer.bin deleted file mode 100644 index eb77e5fa0a8a4b8e5cac8d4fea91612ed9be8666..0000000000000000000000000000000000000000 --- a/checkpoint-98000/optimizer.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:262749824948ea91befeca3e85b26275e233e7014624f609f9a5c149d59a2e8f -size 1908743179 diff --git a/checkpoint-98000/scheduler.bin b/checkpoint-98000/scheduler.bin deleted file mode 100644 index b352a50b6e6f7269168a0b81a71f0bf3713b1528..0000000000000000000000000000000000000000 --- a/checkpoint-98000/scheduler.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:372b0f10449ffc45903cbdf0d5e43e88e500adf9cf71b72080b63e6d36152dc0 -size 1465 diff --git a/checkpoint-98000/tokenizer.json b/checkpoint-98000/tokenizer.json deleted file mode 100644 index 7f4746d48270ebbf41d7ff7fe164f26b54faa0ae..0000000000000000000000000000000000000000 --- a/checkpoint-98000/tokenizer.json +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85ca19a88fba839c5d96affee725afd31c3f037b068b8f97ea62d23754ee705 -size 27948677 diff --git a/checkpoint-98000/tokenizer_config.json b/checkpoint-98000/tokenizer_config.json deleted file mode 100644 index bdd8a167e61cafcafe55c4f6e498cd6131e9260d..0000000000000000000000000000000000000000 --- a/checkpoint-98000/tokenizer_config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "backend": "tokenizers", - "bos_token": "<|begin_of_text|>", - "clean_up_tokenization_spaces": false, - "eos_token": "<|eot|>", - "is_local": false, - "max_length": 1024, - "model_input_names": [ - "input_ids", - "attention_mask" - ], - "model_max_length": 10485760, - "model_specific_special_tokens": {}, - "pad_token": "<|finetune_right_pad|>", - "processor_class": "Llama4Processor", - "stride": 0, - "tokenizer_class": "TokenizersBackend", - "truncation_side": "right", - "truncation_strategy": "longest_first" -} diff --git a/checkpoint-98000/train.json b/checkpoint-98000/train.json deleted file mode 100644 index 9019ea64344f70bde15b4b9efe68251a0224ef24..0000000000000000000000000000000000000000 --- a/checkpoint-98000/train.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "global_step": 98000, - "model_name_or_path": "GTKING/ZFusionAI_Base", - "saved_at_time": "2026-06-18 06:45:18" -} \ No newline at end of file