Upload 6 files
Browse filesFiles changed (5)
- chat_template.jinjaAdded+74
- config.json+6-4
- generation_config.json+1-1
- model.safetensors+2-2
- tokenizer_config.json+5-30
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0].role == 'system' %} {{- messages[0].content + '\n\n' }} {%- endif %} {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0]['role'] == 'system' -%} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {%- else -%} {{- '<|im_start|>system\nYou are a helpful assistant<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %}{%- endfor %}{%- for message in messages %} {%- if message.content is string %} {%- set content = message.content %} {%- else %} {%- set content = '' %} {%- endif %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- if message.tool_calls %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {%- if tool_call.arguments is string %} {{- tool_call.arguments }} {%- else %} {{- tool_call.arguments | tojson }} {%- endif %} {{- '}\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- endif %}{%- endif %}4 unmodified lines56789108 unmodified lines19202122232425262728294 unmodified lines"attention_bias": false,"attention_dropout": 0.0,"bos_token_id": 1,"eos_token_id": 2,"head_dim": 64,"hidden_act": "silu",8 unmodified lines"num_key_value_heads": 2,"pretraining_tp": 1,"rms_norm_eps": 1e-05,"rope_scaling": null,"rope_theta": 1000000.0,"tie_word_embeddings": true,"torch_dtype": "bfloat16","transformers_version": "4.51.3","use_cache": true,"vocab_size": 6400}4 unmodified lines5678910118 unmodified lines2021222324252627282930314 unmodified lines"attention_bias": false,"attention_dropout": 0.0,"bos_token_id": 1,"dtype": "float16","eos_token_id": 2,"head_dim": 64,"hidden_act": "silu",8 unmodified lines"num_key_value_heads": 2,"pretraining_tp": 1,"rms_norm_eps": 1e-05,"rope_parameters": {"rope_theta": 1000000.0,"rope_type": "default"},"tie_word_embeddings": true,"transformers_version": "5.0.0rc0","use_cache": true,"vocab_size": 6400}
1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"transformers_version": "4.51.3"}1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"transformers_version": "5.0.0rc0"}
123version https://git-lfs.github.com/spec/v1oid sha256:0049fd9bddb69a8a7d751925c7a6bd885f2bc48fdfe619438123ee7d89b5f03bsize 58221600123version https://git-lfs.github.com/spec/v1oid sha256:83bfe6f127c98120a3410aab65eee3b66b8301ac352c20b7efd5e2eb688f6d85size 51667832
1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243441 unmodified line"add_bos_token": false,"add_eos_token": false,"add_prefix_space": false,"added_tokens_decoder": {"0": {"content": "<|endoftext|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"1": {"content": "<|im_start|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"2": {"content": "<|im_end|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true}},"additional_special_tokens": [],"bos_token": "<|im_start|>","chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{{ '<|im_start|>system\\n' + system_message + '<|im_end|>\\n' }}{% else %}{{ '<|im_start|>system\\nYou are a helpful assistant<|im_end|>\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\\n' + content + '<|im_end|>\\n<|im_start|>assistant\\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\\n' }}{% endif %}{% endfor %}","clean_up_tokenization_spaces": false,"eos_token": "<|im_end|>","extra_special_tokens": {},"legacy": true,"model_max_length": 32768,"pad_token": "<|endoftext|>","sp_model_kwargs": {},"spaces_between_special_tokens": false,"tokenizer_class": "PreTrainedTokenizer","unk_token": "<|endoftext|>"}1 unmodified line23456789101112131415161718191 unmodified line"add_bos_token": false,"add_eos_token": false,"add_prefix_space": false,"additional_special_tokens": null,"backend": "tokenizers","bos_token": "<|im_start|>","clean_up_tokenization_spaces": false,"eos_token": "<|im_end|>","extra_special_tokens": [],"is_local": true,"legacy": true,"model_max_length": 32768,"pad_token": "<|endoftext|>","sp_model_kwargs": {},"spaces_between_special_tokens": false,"tokenizer_class": "TokenizersBackend","unk_token": "<|endoftext|>"}
chat_template.jinjaAdded+74
config.json+6-4
generation_config.json+1-1
model.safetensors+2-2
tokenizer_config.json+5-30