$5
","chat_template":"{{- bos_token }} {#- This block extracts the system message
","chat_template":"{ { - bos_token }}
{ #- This block extracts the system message, so we can slot it into the right place. #}
{ #- System message + builtin tools #}
{ { - "system\n\n" }}
{ { - "Environment: ipython\n" }}
{ { - "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
{ { - "Cutting Knowledge Date: December 2023\n" }}
{ { - "Today Date: " + date_string + "\n\n" }}
{ { - "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
{ { - 'Respond in the format { "name": function name, "parameters": dictionary of argument name and its value}.' }}
{ { - "Do not use variables.\n\n" }}
{ %- for t in tools %}
{ { - t | tojson(indent=4) }}
{ { - "\n\n" }}
{ %- endfor %}
{ { - system_message }}
{ { - "" }}
{ #- Custom tools are passed in a user message with some extra guidance #}
{ #- Extract the first user message so we can plug it in here #}
{ { - raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
{ { - 'user\n\n' -}}
{ { - "Given the following functions, please respond with a JSON for a function call " }}
{ { - "with its proper arguments that best answers the given prompt.\n\n" }}
{ { - 'Respond in the format { "name": function name, "parameters": dictionary of argument name and its value}.' }}
{ { - "Do not use variables.\n\n" }}
{ %- for t in tools %}
{ { - t | tojson(indent=4) }}
{ { - "\n\n" }}
{ %- endfor %}
{ { - first_user_message + ""}}
{ %- for message in messages %}
{ { - '' + message['role'] + '\n\n'+ message['content'] | trim + '' }}
{ { - raise_exception("This model only supports single tool-calls at once!") }}
{ { - 'assistant\n\n' -}}
{ { - "" + tool_call.name + ".call(" }}
{ %- for arg_name, arg_val in tool_call.arguments | items %}
{ { - arg_name + '="' + arg_val + '"' }}
{ { - ", " }}
{ %- endfor %}
{ { - ")" }}
{ { - 'assistant\n\n' -}}
{ { - '{ "name": "' + tool_call.name + '", ' }}
{ { - '"parameters": ' }}
{ { - tool_call.arguments | tojson }}
{ { - "}" }}
{ #- This means we're in ipython mode #}
{ { - "" }}
{ { - "" }}
{ { - "ipython\n\n" }}
{ { - message.content | tojson }}
{ { - message.content }}
{ { - "" }}
{ %- endfor %}
{ { - 'assistant\n\n' }}
","eos_token":"","pad_token":"","unk_token":null},"additional_chat_templates":{ }},"createdAt":"2024-12-23T02:23:47.000Z","discussionsDisabled":false,"downloads":2,"downloadsAllTime":799,"id":"Infermatic/Anubis-70B-v1-FP8-Dynamic","isLikedByUser":false,"availableInferenceProviders":[],"inference":"","lastModified":"2025-01-13T20:33:03.000Z","likes":0,"librariesOther":[],"trackDownloads":true,"model-index":null,"private":false,"repoType":"model","gated":false,"pwcLink":{ "error":"Unknown error, can't generate link to Papers With Code."},"tags":["safetensors","llama","license:other","compressed-tensors","region:us"],"tag_objs":[{ "id":"safetensors","label":"Safetensors","type":"library"},{ "id":"llama","label":"llama","type":"other"},{ "id":"compressed-tensors","label":"compressed-tensors","type":"other"},{ "id":"license:other","label":"other","type":"license"},{ "type":"region","label":"🇺🇸 Region: US","id":"region:us"}],"safetensors":{ "parameters":{ "BF16":2109382656,"F8_E4M3":68451041280},"total":70560423936,"sharded":true},"hasBlockedOids":false,"region":"us","isQuantized":false,"xetEnabled":false},"canWrite":false,"shouldUpdateUrl":true,"inferenceContextData":{ "billableEntities":[],"entityName2Providers":{ }}}">