Upload folder using huggingface_hub
Browse filesFiles changed (14)
- config.json+14-10
- generation_config.json-1
- onnx/model.onnx+2-2
- onnx/model.onnx_data+2-2
- onnx/model_bnb4.onnx+2-2
- onnx/model_fp16.onnx+2-2
- onnx/model_fp16.onnx_data+2-2
- onnx/model_int8.onnx+2-2
- onnx/model_q4.onnx+2-2
- onnx/model_q4f16.onnx+2-2
- onnx/model_quantized.onnx+2-2
- onnx/model_uint8.onnx+2-2
- special_tokens_map.json+1-1
- tokenizer_config.json+3-15
1233456789101110111213141516131718151920212223202425262728292630313233343536333738353639404142{ "_attn_implementation_autoset": true, "_name_or_path": "NousResearch/DeepHermes-3-Llama-3-8B-Preview", "_name_or_path": "nguyenthanhthuan/Llama_3.2_1B_Intruct_Tool_Calling", "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128009, "head_dim": 128, "eos_token_id": [ 128001, 128008, 128009 ], "head_dim": 64, "hidden_act": "silu", "hidden_size": 4096, "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 14336, "intermediate_size": 8192, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_hidden_layers": 16, "num_key_value_heads": 8, "pad_token_id": 128004, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 8.0, "factor": 32.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3" }, "rope_theta": 500000.0, "tie_word_embeddings": false, "tie_word_embeddings": true, "transformers_version": "4.46.3", "unsloth_fixed": true, "use_cache": false, "unsloth_version": "2024.10.7", "use_cache": true, "vocab_size": 128256}12234{ "_from_model_config": true, "bos_token_id": 128000, "do_sample": true, "eos_token_id": [12323version https://git-lfs.github.com/spec/v1oid sha256:bdd315c3543dc1c2c7fea02fee19dcc5988b3bf455365892132e0f1ed01f5b3fsize 858913oid sha256:4be0a1c8367f0f08fa30f806a6703e403d88a8f864dbbb24adf920799a132dcfsize 44876512323version https://git-lfs.github.com/spec/v1oid sha256:2fe497e51b001cf53241abf12fd69a9561cb75e6290a7ef41b94d5519499e832size 32121044992oid sha256:923b8df813e2e261b5c44aa0c883111628657a2f58816174ebb37cdc5dab8878size 494325760012323version https://git-lfs.github.com/spec/v1oid sha256:c078b3be1198c2ef021344f5ce42438cf55beaa2315d635b20c457a4b90c6684size 911812oid sha256:0e74a33f628f7886d87f33bacc667a02922a5340db3c3503278613441d622295size 159875727712323version https://git-lfs.github.com/spec/v1oid sha256:76fcb21a89369fc32d3795df146930abb06c163443824f4f1ec2d90bb69b03d7size 860108oid sha256:7a2f337289d0805d9807d78c4194f2dbc1d3dfb4d38e1447f8134d76284b3711size 45764512323version https://git-lfs.github.com/spec/v1oid sha256:02911f28a0354c44876f3329ecf587d5ca16e65698bb2869937d8544d652aeaasize 16060522496oid sha256:12e821aed6f42eb885f843fa276f9aa54453370cea31e8366b9ef840dd1ca4e2size 247162880012323version https://git-lfs.github.com/spec/v1oid sha256:5b1bb76d6a54817b3f2520fcd98dc4e95dcbc9bfc0ce7c57dca96c16e4c2b2ddsize 1105763oid sha256:911dc42c290965c61745305fba70d2091dfb41ecc1365e4a639b4f30981b638fsize 123657892512323version https://git-lfs.github.com/spec/v1oid sha256:3827b6b586a90af38f1f11a34192dbc80f08b3e8e30deeb68253b7dd1c4153fbsize 908949oid sha256:1cbc3f640d69637a90b3a023dd6d2d0fdf8a4ee21474a8d0a3481eb821b353e6size 165957382112323version https://git-lfs.github.com/spec/v1oid sha256:6c7183ef2e2436a57314ca1603bbd407219c03ac137b8eef75ff92c4163f9631size 910416oid sha256:4237ca94ea004ab56a0e3070ff5872c70c68c32b6ab1b6b6c490955fd0e9d56dsize 107329278612323version https://git-lfs.github.com/spec/v1oid sha256:92209e407f1d3bf3bebc152743293fb7a3a4ec00fe2e514bbb378cc94796dac9size 1107250oid sha256:911dc42c290965c61745305fba70d2091dfb41ecc1365e4a639b4f30981b638fsize 123657892512323version https://git-lfs.github.com/spec/v1oid sha256:0c9ed7e84bdb801d0e4a6606067eac6ae14dd76948b408ca9f49bc7475599665size 1106175oid sha256:af6c1c851616f4627ad47f54643e57c1edd26ecabd48e71b2bbb635e78de3529size 123657898713 unmodified lines141516171718192013 unmodified lines "single_word": false }, "pad_token": { "content": "<|end_of_text|>", "content": "<|finetune_right_pad_id|>", "lstrip": false, "normalized": false, "rstrip": false,122342045 unmodified lines20502051205220542055205620572058205920602061206220632053205420552066205620572058205920602072206120622074207520632064{ "add_bos_token": true, "added_tokens_decoder": { "128000": { "content": "<|begin_of_text|>",2045 unmodified lines } }, "bos_token": "<|begin_of_text|>", "chat_template": [ { "name": "default", "template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}" }, { "name": "tool_use", "template": "{%- macro json_to_python_type(json_spec) %}\n{%- set basic_type_map = {\n \"string\": \"str\",\n \"number\": \"float\",\n \"integer\": \"int\",\n \"boolean\": \"bool\"\n} %}\n\n{%- if basic_type_map[json_spec.type] is defined %}\n {{- basic_type_map[json_spec.type] }}\n{%- elif json_spec.type == \"array\" %}\n {{- \"list[\" + json_to_python_type(json_spec|items) + \"]\"}}\n{%- elif json_spec.type == \"object\" %}\n {%- if json_spec.additionalProperties is defined %}\n {{- \"dict[str, \" + json_to_python_type(json_spec.additionalProperties) + ']'}}\n {%- else %}\n {{- \"dict\" }}\n {%- endif %}\n{%- elif json_spec.type is iterable %}\n {{- \"Union[\" }}\n {%- for t in json_spec.type %}\n {{- json_to_python_type({\"type\": t}) }}\n {%- if not loop.last %}\n {{- \",\" }} \n {%- endif %}\n {%- endfor %}\n {{- \"]\" }}\n{%- else %}\n {{- \"Any\" }}\n{%- endif %}\n{%- endmacro %}\n\n\n{{- bos_token }}\n{{- '<|im_start|>system\n' }}\n{{- \"You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. Here are the available tools: <tools> \" }}\n{%- for tool in tools %}\n {%- if tool.function is defined %}\n {%- set tool = tool.function %}\n {%- endif %}\n {{- '{\"type\": \"function\", \"function\": ' }}\n {{- '{\"name\": \"' + tool.name + '\", ' }}\n {{- '\"description\": \"' + tool.name + '(' }}\n {%- for param_name, param_fields in tool.parameters.properties|items %}\n {{- param_name + \": \" + json_to_python_type(param_fields) }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \")\" }}\n {%- if tool.return is defined %}\n {{- \" -> \" + json_to_python_type(tool.return) }}\n {%- endif %}\n {{- \" - \" + tool.description + \"\n\n\" }}\n {%- for param_name, param_fields in tool.parameters.properties|items %}\n {%- if loop.first %}\n {{- \" Args:\n\" }}\n {%- endif %}\n {{- \" \" + param_name + \"(\" + json_to_python_type(param_fields) + \"): \" + param_fields.description|trim }}\n {%- endfor %}\n {%- if tool.return is defined and tool.return.description is defined %}\n {{- \"\n Returns:\n \" + tool.return.description }}\n {%- endif %}\n {{- '\"' }}\n {{- ', \"parameters\": ' }}\n {%- if tool.parameters.properties | length == 0 %}\n {{- \"{}\" }}\n {%- else %}\n {{- tool.parameters|tojson }}\n {%- endif %}\n {{- \"}\" }}\n {%- if not loop.last %}\n {{- \"\n\" }}\n {%- endif %}\n{%- endfor %}\n{{- \" </tools>\" }}\n{{- 'Use the following pydantic model json schema for each tool call you will make: {\"properties\": {\"name\": {\"title\": \"Name\", \"type\": \"string\"}, \"arguments\": {\"title\": \"Arguments\", \"type\": \"object\"}}, \"required\": [\"name\", \"arguments\"], \"title\": \"FunctionCall\", \"type\": \"object\"}}\n' }}\n{{- \"For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:\n\" }}\n{{- \"<tool_call>\n\" }}\n{{- '{\"name\": <function-name>, \"arguments\": <args-dict>}\n' }}\n{{- '</tool_call><|im_end|>\n' }}\n{%- for message in messages %}\n {%- if message.role == \"user\" or message.role == \"system\" or (message.role == \"assistant\" and message.tool_calls is not defined) %}\n {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- for tool_call in message.tool_calls %}\n {{- '\n<tool_call>\n' }} {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '{' }}\n {{- '\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\"' }}\n {{- ', '}}\n {%- if tool_call.arguments is defined %}\n {{- '\"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments|tojson }}\n {%- endif %}\n {%- endif %}\n {{- '}' }}\n {{- '\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>tool\n' }}\n {%- endif %}\n {{- '<tool_response>\n' }}\n {{- message.content }}\n {%- if not loop.last %}\n {{- '\n</tool_response>\n' }}\n {%- else %}\n {{- '\n</tool_response>' }}\n {%- endif %}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>' }}\n {%- elif loop.last %}\n {{- '<|im_end|>' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\n' }}\n{%- endif %}\n" } ], "chat_template": "\n{%- if messages[0]['role'] == 'system' -%}\n<|start_header_id|>system<|end_header_id|>\n\n{{ messages[0]['content'] }}\n{%- endif -%}\n{%- for message in messages -%}\n {%- if message['role'] == 'user' -%}\n <|start_header_id|>user<|end_header_id|>\n {{ message['content'] }}\n {%- elif message['role'] in ['tool', 'assistant'] -%}\n <|start_header_id|>assistant<|end_header_id|>\n {{ message['content'] }}<|eot_id|>\n {%- elif message['role'] == 'tool_response' -%}\n <|start_header_id|>assistant<|end_header_id|>\n {{ message['content'] }}\n {%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%} <|start_header_id|>assistant<|end_header_id|>\n{%- endif -%}\n", "clean_up_tokenization_spaces": true, "eos_token": "<|eot_id|>", "extra_special_tokens": {}, "model_input_names": [ "input_ids", "attention_mask" ], "model_max_length": 131072, "pad_token": "<|end_of_text|>", "pad_token": "<|finetune_right_pad_id|>", "padding_side": "left", "tokenizer_class": "PreTrainedTokenizerFast", "unk_token": null "tokenizer_class": "PreTrainedTokenizerFast"}config.json+14-10
generation_config.json-1
onnx/model.onnx+2-2
onnx/model.onnx_data+2-2
onnx/model_bnb4.onnx+2-2
onnx/model_fp16.onnx+2-2
onnx/model_fp16.onnx_data+2-2
onnx/model_int8.onnx+2-2
onnx/model_q4.onnx+2-2
onnx/model_q4f16.onnx+2-2
onnx/model_quantized.onnx+2-2
onnx/model_uint8.onnx+2-2
special_tokens_map.json+1-1
tokenizer_config.json+3-15