cantina-security/apex-flash-1-abliterated
zetlyn/models-hf model hf cantina-security/apex-flash-1-abliterated known 2026-09-30
https://huggingface.co/cantina-security/apex-flash-1-abliterated
Properties
| author | cantina-securityreceipt
What the source handed over{
"_asked": "cantina-security/apex-flash-1-abliterated",
"_id": "6abc784477cea0ab48330406",
"author": "cantina-security",
"cardData": {
"base_model": "cantina-security/apex-flash-1",
"library_name": "transformers",
"license": "mit",
"pipeline_tag": "image-text-to-text",
"tags": [
"glm5_next",
"abliterated",
"security-research"
]
},
"config": {
"architectures": [
"Glm5NextForConditionalGeneration"
],
"chat_template_jinja": "[gMASK]<sop>\n{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}\n{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}\n{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}\n{%- if tools -%}\n{%- macro tool_to_json(tool) -%}\n {%- set ns_tool = namespace(first=true) -%}\n {{ '{' -}}\n {%- for k, v in tool.items() -%}\n {%- if k != 'defer_loading' and k != 'strict' -%}\n {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}\n {%- set ns_tool.first = false -%}\n \"{{ k }}\": {{ v | tojson(ensure_ascii=False) }}\n {%- endif -%}\n {%- endfor -%}\n {{- '}' -}}\n{%- endmacro -%}\n{%- macro tool_references_to_response(refs) -%}\n {{- '<tool_response><tools>\\n' -}}\n {%- for tr in refs -%}\n {%- for tool in tools -%}\n {%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n {%- endif -%}\n {%- if tool.name == tr.name -%}\n {{- tool_to_json(tool) + '\\n' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {{- '</tools></tool_response>' -}}\n{%- endmacro -%}\n<|system|>\n# 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>\n{% for tool in tools %}\n{%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n{%- endif -%}\n{% if tool.defer_loading is not defined or not tool.defer_loading %}\n{{ tool_to_json(tool) }}\n{% endif %}\n{% endfor %}\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}\n{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}\n{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}\n{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{- content -}}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text -}}\n {%- elif item is string -%}\n {{- item -}}\n {%- elif item is mapping and item.type in ['image', 'image_url'] -%}\n {{- emit_image() -}}\n {%- elif item is mapping and item.type in ['video', 'video_url'] -%}\n {{- emit_video() -}}\n {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}\n {{- emit_audio() -}}\n {%- endif -%}\n {%- endfor -%}\n {%- elif content is not none -%}\n {{- content -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro tool_response(text) -%}\n{{- '<tool_response>' + text + '</tool_response>' -}}\n{%- endmacro -%}\n{%- macro render_tool_response(m) -%}\n{%- if m.content is string -%}\n {{- tool_response(m.content) -}}\n{%- elif m.content and m.content is not mapping and m.content.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(m.content) -}}\n{%- elif is_list_of_outputs(m) -%}\n {%- for tr in m.content -%}\n {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(tr.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(tr.output)) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- else -%}\n {{- tool_response(visible_text(m.content)) -}}\n{%- endif -%}\n{%- endmacro -%}\n{%- macro id_of(obj) -%}\n {%- if obj.tool_call_id -%}\n {{- obj.tool_call_id -}}\n {%- elif obj.id -%}\n {{- obj.id -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro is_list_of_outputs(m) -%}\n {%- if m.content and m.content.0.output is defined -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro has_dup_tool_result_id(lo, hi, target) -%}\n {%- set ns_cnt = namespace(n=0) -%}\n {%- for k in range(lo, hi + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if id_of(entry) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n {%- elif id_of(m) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}\n {%- endfor -%}\n {%- if ns_cnt.n > 1 -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro tc_id_exists(tcs, target) -%}\n {%- set ns_f = namespace(found=false) -%}\n {%- for tc in tcs -%}\n {%- if id_of(tc) == target -%}\n {%- set ns_f.found = true -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if ns_f.found -%}1{%- endif -%}\n{%- endmacro -%}\n{%- set ns = namespace(last_user_index=-1) -%}\n{%- for m in messages %}\n {%- if m.role == 'user' %}\n {%- set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{%- for m in messages -%}\n{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}\n{%- elif m.role == 'assistant' -%}\n<|assistant|>\n{%- set content = visible_text(m.content) %}\n{%- if m.reasoning_content is string %}\n {%- set reasoning_content = m.reasoning_content %}\n{%- elif '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}\n {%- set content = content.split('</think>')[-1] %}\n{%- endif %}\n{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}\n{{ '<think>' + reasoning_content + '</think>'}}\n{%- else -%}\n{{ '<think></think>' }}\n{%- endif -%}\n{%- if content.strip() -%}\n{{ content.strip() }}\n{%- endif -%}\n{% if m.tool_calls %}\n{% for tc in m.tool_calls %}\n{%- if tc.function %}\n {%- set tc = tc.function %}\n{%- endif %}\n{{- '<tool_call>' ~ tc.name -}}\n{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}\n{% endif %}\n{%- elif m.role == 'tool' -%}\n{%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|observation|>' -}}\n {%- set block_start = loop.index0 -%}\n {%- set ns_blk = namespace(end=block_start) -%}\n {%- for j in range(block_start, messages|length) -%}\n {%- if messages[j].role == 'tool' -%}\n {%- set ns_blk.end = j -%}\n {%- else -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns_a = namespace(tool_calls=none) -%}\n {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}\n {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}\n {%- endif -%}\n {%- set ns_chk = namespace(can_sort=true) -%}\n {%- if not ns_a.tool_calls -%}\n {%- set ns_chk.can_sort = false -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set eid = id_of(entry) -%}\n {%- if not eid -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if not tk_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- for i in range(ns_a.tool_calls | length) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set tc_id = id_of(ns_a.tool_calls[i]) -%}\n {%- if not tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- for j in range(i + 1, ns_a.tool_calls | length) -%}\n {%- if id_of(ns_a.tool_calls[j]) == tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- if ns_chk.can_sort -%}\n {%- for tc in ns_a.tool_calls -%}\n {%- set tc_id = id_of(tc) -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- set eid = id_of(entry) -%}\n {%- if eid == tc_id -%}\n {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(entry.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(entry.output)) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if tk_id == tc_id -%}\n {{- render_tool_response(m) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {{- render_tool_response(messages[k]) -}}\n {%- endfor -%}\n {%- endif -%}\n{% endif -%}\n{%- elif m.role == 'system' -%}\n<|system|>{{ visible_text(m.content) }}\n{%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n <|assistant|>{{- '<think>' -}}\n{%- endif -%}\n",
"model_type": "glm5_next",
"tokenizer_config": {
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>"
}
},
"createdAt": "2026-09-30T02:47:32.000Z",
"disabled": false,
"downloads": 239,
"gated": false,
"id": "cantina-security/apex-flash-1-abliterated",
"lastModified": "2026-10-01T15:51:59.000Z",
"library_name": "transformers",
"likes": 33,
"model-index": null,
"modelId": "cantina-security/apex-flash-1-abliterated",
"pipeline_tag": "image-text-to-text",
"private": false,
"safetensors": {
"parameters": {
"BF16": 321322735872,
"F32": 295518
},
"total": 321323031390
},
"sha": "cecb5eeb9c6b32404a0dd930df81de2c239bdd84",
"siblings": [
{
"rfilename": ".gitattributes"
},
{
"rfilename": "LICENSE"
},
{
"rfilename": "README.md"
},
{
"rfilename": "chat_template.jinja"
},
{
"rfilename": "config.json"
},
{
"rfilename": "generation_config.json"
},
{
"rfilename": "model-00001-of-00062.safetensors"
},
{
"rfilename": "model-00002-of-00062.safetensors"
},
{
"rfilename": "model-00003-of-00062.safetensors"
},
{
"rfilename": "model-00004-of-00062.safetensors"
},
{
"rfilename": "model-00005-of-00062.safetensors"
},
{
"rfilename": "model-00006-of-00062.safetensors"
},
{
"rfilename": "model-00007-of-00062.safetensors"
},
{
"rfilename": "model-00008-of-00062.safetensors"
},
{
"rfilename": "model-00009-of-00062.safetensors"
},
{
"rfilename": "model-00010-of-00062.safetensors"
},
{
"rfilename": "model-00011-of-00062.safetensors"
},
{
"rfilename": "model-00012-of-00062.safetensors"
},
{
"rfilename": "model-00013-of-00062.safetensors"
},
{
"rfilename": "model-00014-of-00062.safetensors"
},
{
"rfilename": "model-00015-of-00062.safetensors"
},
{
"rfilename": "model-00016-of-00062.safetensors"
},
{
"rfilename": "model-00017-of-00062.safetensors"
},
{
"rfilename": "model-00018-of-00062.safetensors"
},
{
"rfilename": "model-00019-of-00062.safetensors"
},
{
"rfilename": "model-00020-of-00062.safetensors"
},
{
"rfilename": "model-00021-of-00062.safetensors"
},
{
"rfilename": "model-00022-of-00062.safetensors"
},
{
"rfilename": "model-00023-of-00062.safetensors"
},
{
"rfilename": "model-00024-of-00062.safetensors"
},
{
"rfilename": "model-00025-of-00062.safetensors"
},
{
"rfilename": "model-00026-of-00062.safetensors"
},
{
"rfilename": "model-00027-of-00062.safetensors"
},
{
"rfilename": "model-00028-of-00062.safetensors"
},
{
"rfilename": "model-00029-of-00062.safetensors"
},
{
"rfilename": "model-00030-of-00062.safetensors"
},
{
"rfilename": "model-00031-of-00062.safetensors"
},
{
"rfilename": "model-00032-of-00062.safetensors"
},
{
"rfilename": "model-00033-of-00062.safetensors"
},
{
"rfilename": "model-00034-of-00062.safetensors"
},
{
"rfilename": "model-00035-of-00062.safetensors"
},
{
"rfilename": "model-00036-of-00062.safetensors"
},
{
"rfilename": "model-00037-of-00062.safetensors"
},
{
"rfilename": "model-00038-of-00062.safetensors"
},
{
"rfilename": "model-00039-of-00062.safetensors"
},
{
"rfilename": "model-00040-of-00062.safetensors"
},
{
"rfilename": "model-00041-of-00062.safetensors"
},
{
"rfilename": "model-00042-of-00062.safetensors"
},
{
"rfilename": "model-00043-of-00062.safetensors"
},
{
"rfilename": "model-00044-of-00062.safetensors"
},
{
"rfilename": "model-00045-of-00062.safetensors"
},
{
"rfilename": "model-00046-of-00062.safetensors"
},
{
"rfilename": "model-00047-of-00062.safetensors"
},
{
"rfilename": "model-00048-of-00062.safetensors"
},
{
"rfilename": "model-00049-of-00062.safetensors"
},
{
"rfilename": "model-00050-of-00062.safetensors"
},
{
"rfilename": "model-00051-of-00062.safetensors"
},
{
"rfilename": "model-00052-of-00062.safetensors"
},
{
"rfilename": "model-00053-of-00062.safetensors"
},
{
"rfilename": "model-00054-of-00062.safetensors"
},
{
"rfilename": "model-00055-of-00062.safetensors"
},
{
"rfilename": "model-00056-of-00062.safetensors"
},
{
"rfilename": "model-00057-of-00062.safetensors"
},
{
"rfilename": "model-00058-of-00062.safetensors"
},
{
"rfilename": "model-00059-of-00062.safetensors"
},
{
"rfilename": "model-00060-of-00062.safetensors"
},
{
"rfilename": "model-00061-of-00062.safetensors"
},
{
"rfilename": "model-00062-of-00062.safetensors"
},
{
"rfilename": "model.safetensors.index.json"
},
{
"rfilename": "processor_config.json"
},
{
"rfilename": "tokenizer.json"
},
{
"rfilename": "tokenizer_config.json"
}
],
"spaces": [
"tardellirs/model-pulse"
],
"tags": [
"transformers",
"safetensors",
"glm5_next",
"image-text-to-text",
"abliterated",
"security-research",
"conversational",
"base_model:cantina-security/apex-flash-1",
"base_model:finetune:cantina-security/apex-flash-1",
"license:mit",
"endpoints_compatible",
"region:us"
],
"transformersInfo": {
"auto_model": "AutoModelForMultimodalLM",
"pipeline_tag": "image-text-to-text",
"processor": "AutoProcessor"
},
"usedStorage": 642672300946,
"widgetData": [
{
"text": "Hi, what can you help me with?"
},
{
"text": "What is 84 * 3 / 2?"
},
{
"text": "Tell me an interesting fact about the universe!"
},
{
"text": "Explain quantum computing in simple terms."
}
]
} | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| downloads | 239receipt
What the source handed over{
"_asked": "cantina-security/apex-flash-1-abliterated",
"_id": "6abc784477cea0ab48330406",
"author": "cantina-security",
"cardData": {
"base_model": "cantina-security/apex-flash-1",
"library_name": "transformers",
"license": "mit",
"pipeline_tag": "image-text-to-text",
"tags": [
"glm5_next",
"abliterated",
"security-research"
]
},
"config": {
"architectures": [
"Glm5NextForConditionalGeneration"
],
"chat_template_jinja": "[gMASK]<sop>\n{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}\n{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}\n{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}\n{%- if tools -%}\n{%- macro tool_to_json(tool) -%}\n {%- set ns_tool = namespace(first=true) -%}\n {{ '{' -}}\n {%- for k, v in tool.items() -%}\n {%- if k != 'defer_loading' and k != 'strict' -%}\n {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}\n {%- set ns_tool.first = false -%}\n \"{{ k }}\": {{ v | tojson(ensure_ascii=False) }}\n {%- endif -%}\n {%- endfor -%}\n {{- '}' -}}\n{%- endmacro -%}\n{%- macro tool_references_to_response(refs) -%}\n {{- '<tool_response><tools>\\n' -}}\n {%- for tr in refs -%}\n {%- for tool in tools -%}\n {%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n {%- endif -%}\n {%- if tool.name == tr.name -%}\n {{- tool_to_json(tool) + '\\n' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {{- '</tools></tool_response>' -}}\n{%- endmacro -%}\n<|system|>\n# 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>\n{% for tool in tools %}\n{%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n{%- endif -%}\n{% if tool.defer_loading is not defined or not tool.defer_loading %}\n{{ tool_to_json(tool) }}\n{% endif %}\n{% endfor %}\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}\n{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}\n{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}\n{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{- content -}}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text -}}\n {%- elif item is string -%}\n {{- item -}}\n {%- elif item is mapping and item.type in ['image', 'image_url'] -%}\n {{- emit_image() -}}\n {%- elif item is mapping and item.type in ['video', 'video_url'] -%}\n {{- emit_video() -}}\n {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}\n {{- emit_audio() -}}\n {%- endif -%}\n {%- endfor -%}\n {%- elif content is not none -%}\n {{- content -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro tool_response(text) -%}\n{{- '<tool_response>' + text + '</tool_response>' -}}\n{%- endmacro -%}\n{%- macro render_tool_response(m) -%}\n{%- if m.content is string -%}\n {{- tool_response(m.content) -}}\n{%- elif m.content and m.content is not mapping and m.content.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(m.content) -}}\n{%- elif is_list_of_outputs(m) -%}\n {%- for tr in m.content -%}\n {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(tr.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(tr.output)) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- else -%}\n {{- tool_response(visible_text(m.content)) -}}\n{%- endif -%}\n{%- endmacro -%}\n{%- macro id_of(obj) -%}\n {%- if obj.tool_call_id -%}\n {{- obj.tool_call_id -}}\n {%- elif obj.id -%}\n {{- obj.id -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro is_list_of_outputs(m) -%}\n {%- if m.content and m.content.0.output is defined -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro has_dup_tool_result_id(lo, hi, target) -%}\n {%- set ns_cnt = namespace(n=0) -%}\n {%- for k in range(lo, hi + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if id_of(entry) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n {%- elif id_of(m) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}\n {%- endfor -%}\n {%- if ns_cnt.n > 1 -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro tc_id_exists(tcs, target) -%}\n {%- set ns_f = namespace(found=false) -%}\n {%- for tc in tcs -%}\n {%- if id_of(tc) == target -%}\n {%- set ns_f.found = true -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if ns_f.found -%}1{%- endif -%}\n{%- endmacro -%}\n{%- set ns = namespace(last_user_index=-1) -%}\n{%- for m in messages %}\n {%- if m.role == 'user' %}\n {%- set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{%- for m in messages -%}\n{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}\n{%- elif m.role == 'assistant' -%}\n<|assistant|>\n{%- set content = visible_text(m.content) %}\n{%- if m.reasoning_content is string %}\n {%- set reasoning_content = m.reasoning_content %}\n{%- elif '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}\n {%- set content = content.split('</think>')[-1] %}\n{%- endif %}\n{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}\n{{ '<think>' + reasoning_content + '</think>'}}\n{%- else -%}\n{{ '<think></think>' }}\n{%- endif -%}\n{%- if content.strip() -%}\n{{ content.strip() }}\n{%- endif -%}\n{% if m.tool_calls %}\n{% for tc in m.tool_calls %}\n{%- if tc.function %}\n {%- set tc = tc.function %}\n{%- endif %}\n{{- '<tool_call>' ~ tc.name -}}\n{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}\n{% endif %}\n{%- elif m.role == 'tool' -%}\n{%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|observation|>' -}}\n {%- set block_start = loop.index0 -%}\n {%- set ns_blk = namespace(end=block_start) -%}\n {%- for j in range(block_start, messages|length) -%}\n {%- if messages[j].role == 'tool' -%}\n {%- set ns_blk.end = j -%}\n {%- else -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns_a = namespace(tool_calls=none) -%}\n {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}\n {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}\n {%- endif -%}\n {%- set ns_chk = namespace(can_sort=true) -%}\n {%- if not ns_a.tool_calls -%}\n {%- set ns_chk.can_sort = false -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set eid = id_of(entry) -%}\n {%- if not eid -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if not tk_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- for i in range(ns_a.tool_calls | length) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set tc_id = id_of(ns_a.tool_calls[i]) -%}\n {%- if not tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- for j in range(i + 1, ns_a.tool_calls | length) -%}\n {%- if id_of(ns_a.tool_calls[j]) == tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- if ns_chk.can_sort -%}\n {%- for tc in ns_a.tool_calls -%}\n {%- set tc_id = id_of(tc) -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- set eid = id_of(entry) -%}\n {%- if eid == tc_id -%}\n {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(entry.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(entry.output)) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if tk_id == tc_id -%}\n {{- render_tool_response(m) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {{- render_tool_response(messages[k]) -}}\n {%- endfor -%}\n {%- endif -%}\n{% endif -%}\n{%- elif m.role == 'system' -%}\n<|system|>{{ visible_text(m.content) }}\n{%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n <|assistant|>{{- '<think>' -}}\n{%- endif -%}\n",
"model_type": "glm5_next",
"tokenizer_config": {
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>"
}
},
"createdAt": "2026-09-30T02:47:32.000Z",
"disabled": false,
"downloads": 239,
"gated": false,
"id": "cantina-security/apex-flash-1-abliterated",
"lastModified": "2026-10-01T15:51:59.000Z",
"library_name": "transformers",
"likes": 33,
"model-index": null,
"modelId": "cantina-security/apex-flash-1-abliterated",
"pipeline_tag": "image-text-to-text",
"private": false,
"safetensors": {
"parameters": {
"BF16": 321322735872,
"F32": 295518
},
"total": 321323031390
},
"sha": "cecb5eeb9c6b32404a0dd930df81de2c239bdd84",
"siblings": [
{
"rfilename": ".gitattributes"
},
{
"rfilename": "LICENSE"
},
{
"rfilename": "README.md"
},
{
"rfilename": "chat_template.jinja"
},
{
"rfilename": "config.json"
},
{
"rfilename": "generation_config.json"
},
{
"rfilename": "model-00001-of-00062.safetensors"
},
{
"rfilename": "model-00002-of-00062.safetensors"
},
{
"rfilename": "model-00003-of-00062.safetensors"
},
{
"rfilename": "model-00004-of-00062.safetensors"
},
{
"rfilename": "model-00005-of-00062.safetensors"
},
{
"rfilename": "model-00006-of-00062.safetensors"
},
{
"rfilename": "model-00007-of-00062.safetensors"
},
{
"rfilename": "model-00008-of-00062.safetensors"
},
{
"rfilename": "model-00009-of-00062.safetensors"
},
{
"rfilename": "model-00010-of-00062.safetensors"
},
{
"rfilename": "model-00011-of-00062.safetensors"
},
{
"rfilename": "model-00012-of-00062.safetensors"
},
{
"rfilename": "model-00013-of-00062.safetensors"
},
{
"rfilename": "model-00014-of-00062.safetensors"
},
{
"rfilename": "model-00015-of-00062.safetensors"
},
{
"rfilename": "model-00016-of-00062.safetensors"
},
{
"rfilename": "model-00017-of-00062.safetensors"
},
{
"rfilename": "model-00018-of-00062.safetensors"
},
{
"rfilename": "model-00019-of-00062.safetensors"
},
{
"rfilename": "model-00020-of-00062.safetensors"
},
{
"rfilename": "model-00021-of-00062.safetensors"
},
{
"rfilename": "model-00022-of-00062.safetensors"
},
{
"rfilename": "model-00023-of-00062.safetensors"
},
{
"rfilename": "model-00024-of-00062.safetensors"
},
{
"rfilename": "model-00025-of-00062.safetensors"
},
{
"rfilename": "model-00026-of-00062.safetensors"
},
{
"rfilename": "model-00027-of-00062.safetensors"
},
{
"rfilename": "model-00028-of-00062.safetensors"
},
{
"rfilename": "model-00029-of-00062.safetensors"
},
{
"rfilename": "model-00030-of-00062.safetensors"
},
{
"rfilename": "model-00031-of-00062.safetensors"
},
{
"rfilename": "model-00032-of-00062.safetensors"
},
{
"rfilename": "model-00033-of-00062.safetensors"
},
{
"rfilename": "model-00034-of-00062.safetensors"
},
{
"rfilename": "model-00035-of-00062.safetensors"
},
{
"rfilename": "model-00036-of-00062.safetensors"
},
{
"rfilename": "model-00037-of-00062.safetensors"
},
{
"rfilename": "model-00038-of-00062.safetensors"
},
{
"rfilename": "model-00039-of-00062.safetensors"
},
{
"rfilename": "model-00040-of-00062.safetensors"
},
{
"rfilename": "model-00041-of-00062.safetensors"
},
{
"rfilename": "model-00042-of-00062.safetensors"
},
{
"rfilename": "model-00043-of-00062.safetensors"
},
{
"rfilename": "model-00044-of-00062.safetensors"
},
{
"rfilename": "model-00045-of-00062.safetensors"
},
{
"rfilename": "model-00046-of-00062.safetensors"
},
{
"rfilename": "model-00047-of-00062.safetensors"
},
{
"rfilename": "model-00048-of-00062.safetensors"
},
{
"rfilename": "model-00049-of-00062.safetensors"
},
{
"rfilename": "model-00050-of-00062.safetensors"
},
{
"rfilename": "model-00051-of-00062.safetensors"
},
{
"rfilename": "model-00052-of-00062.safetensors"
},
{
"rfilename": "model-00053-of-00062.safetensors"
},
{
"rfilename": "model-00054-of-00062.safetensors"
},
{
"rfilename": "model-00055-of-00062.safetensors"
},
{
"rfilename": "model-00056-of-00062.safetensors"
},
{
"rfilename": "model-00057-of-00062.safetensors"
},
{
"rfilename": "model-00058-of-00062.safetensors"
},
{
"rfilename": "model-00059-of-00062.safetensors"
},
{
"rfilename": "model-00060-of-00062.safetensors"
},
{
"rfilename": "model-00061-of-00062.safetensors"
},
{
"rfilename": "model-00062-of-00062.safetensors"
},
{
"rfilename": "model.safetensors.index.json"
},
{
"rfilename": "processor_config.json"
},
{
"rfilename": "tokenizer.json"
},
{
"rfilename": "tokenizer_config.json"
}
],
"spaces": [
"tardellirs/model-pulse"
],
"tags": [
"transformers",
"safetensors",
"glm5_next",
"image-text-to-text",
"abliterated",
"security-research",
"conversational",
"base_model:cantina-security/apex-flash-1",
"base_model:finetune:cantina-security/apex-flash-1",
"license:mit",
"endpoints_compatible",
"region:us"
],
"transformersInfo": {
"auto_model": "AutoModelForMultimodalLM",
"pipeline_tag": "image-text-to-text",
"processor": "AutoProcessor"
},
"usedStorage": 642672300946,
"widgetData": [
{
"text": "Hi, what can you help me with?"
},
{
"text": "What is 84 * 3 / 2?"
},
{
"text": "Tell me an interesting fact about the universe!"
},
{
"text": "Explain quantum computing in simple terms."
}
]
} | ||||||||||||||
| gated | falsereceipt
What the source handed over{
"_asked": "cantina-security/apex-flash-1-abliterated",
"_id": "6abc784477cea0ab48330406",
"author": "cantina-security",
"cardData": {
"base_model": "cantina-security/apex-flash-1",
"library_name": "transformers",
"license": "mit",
"pipeline_tag": "image-text-to-text",
"tags": [
"glm5_next",
"abliterated",
"security-research"
]
},
"config": {
"architectures": [
"Glm5NextForConditionalGeneration"
],
"chat_template_jinja": "[gMASK]<sop>\n{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}\n{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}\n{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}\n{%- if tools -%}\n{%- macro tool_to_json(tool) -%}\n {%- set ns_tool = namespace(first=true) -%}\n {{ '{' -}}\n {%- for k, v in tool.items() -%}\n {%- if k != 'defer_loading' and k != 'strict' -%}\n {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}\n {%- set ns_tool.first = false -%}\n \"{{ k }}\": {{ v | tojson(ensure_ascii=False) }}\n {%- endif -%}\n {%- endfor -%}\n {{- '}' -}}\n{%- endmacro -%}\n{%- macro tool_references_to_response(refs) -%}\n {{- '<tool_response><tools>\\n' -}}\n {%- for tr in refs -%}\n {%- for tool in tools -%}\n {%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n {%- endif -%}\n {%- if tool.name == tr.name -%}\n {{- tool_to_json(tool) + '\\n' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {{- '</tools></tool_response>' -}}\n{%- endmacro -%}\n<|system|>\n# 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>\n{% for tool in tools %}\n{%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n{%- endif -%}\n{% if tool.defer_loading is not defined or not tool.defer_loading %}\n{{ tool_to_json(tool) }}\n{% endif %}\n{% endfor %}\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}\n{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}\n{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}\n{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{- content -}}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text -}}\n {%- elif item is string -%}\n {{- item -}}\n {%- elif item is mapping and item.type in ['image', 'image_url'] -%}\n {{- emit_image() -}}\n {%- elif item is mapping and item.type in ['video', 'video_url'] -%}\n {{- emit_video() -}}\n {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}\n {{- emit_audio() -}}\n {%- endif -%}\n {%- endfor -%}\n {%- elif content is not none -%}\n {{- content -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro tool_response(text) -%}\n{{- '<tool_response>' + text + '</tool_response>' -}}\n{%- endmacro -%}\n{%- macro render_tool_response(m) -%}\n{%- if m.content is string -%}\n {{- tool_response(m.content) -}}\n{%- elif m.content and m.content is not mapping and m.content.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(m.content) -}}\n{%- elif is_list_of_outputs(m) -%}\n {%- for tr in m.content -%}\n {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(tr.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(tr.output)) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- else -%}\n {{- tool_response(visible_text(m.content)) -}}\n{%- endif -%}\n{%- endmacro -%}\n{%- macro id_of(obj) -%}\n {%- if obj.tool_call_id -%}\n {{- obj.tool_call_id -}}\n {%- elif obj.id -%}\n {{- obj.id -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro is_list_of_outputs(m) -%}\n {%- if m.content and m.content.0.output is defined -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro has_dup_tool_result_id(lo, hi, target) -%}\n {%- set ns_cnt = namespace(n=0) -%}\n {%- for k in range(lo, hi + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if id_of(entry) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n {%- elif id_of(m) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}\n {%- endfor -%}\n {%- if ns_cnt.n > 1 -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro tc_id_exists(tcs, target) -%}\n {%- set ns_f = namespace(found=false) -%}\n {%- for tc in tcs -%}\n {%- if id_of(tc) == target -%}\n {%- set ns_f.found = true -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if ns_f.found -%}1{%- endif -%}\n{%- endmacro -%}\n{%- set ns = namespace(last_user_index=-1) -%}\n{%- for m in messages %}\n {%- if m.role == 'user' %}\n {%- set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{%- for m in messages -%}\n{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}\n{%- elif m.role == 'assistant' -%}\n<|assistant|>\n{%- set content = visible_text(m.content) %}\n{%- if m.reasoning_content is string %}\n {%- set reasoning_content = m.reasoning_content %}\n{%- elif '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}\n {%- set content = content.split('</think>')[-1] %}\n{%- endif %}\n{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}\n{{ '<think>' + reasoning_content + '</think>'}}\n{%- else -%}\n{{ '<think></think>' }}\n{%- endif -%}\n{%- if content.strip() -%}\n{{ content.strip() }}\n{%- endif -%}\n{% if m.tool_calls %}\n{% for tc in m.tool_calls %}\n{%- if tc.function %}\n {%- set tc = tc.function %}\n{%- endif %}\n{{- '<tool_call>' ~ tc.name -}}\n{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}\n{% endif %}\n{%- elif m.role == 'tool' -%}\n{%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|observation|>' -}}\n {%- set block_start = loop.index0 -%}\n {%- set ns_blk = namespace(end=block_start) -%}\n {%- for j in range(block_start, messages|length) -%}\n {%- if messages[j].role == 'tool' -%}\n {%- set ns_blk.end = j -%}\n {%- else -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns_a = namespace(tool_calls=none) -%}\n {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}\n {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}\n {%- endif -%}\n {%- set ns_chk = namespace(can_sort=true) -%}\n {%- if not ns_a.tool_calls -%}\n {%- set ns_chk.can_sort = false -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set eid = id_of(entry) -%}\n {%- if not eid -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if not tk_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- for i in range(ns_a.tool_calls | length) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set tc_id = id_of(ns_a.tool_calls[i]) -%}\n {%- if not tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- for j in range(i + 1, ns_a.tool_calls | length) -%}\n {%- if id_of(ns_a.tool_calls[j]) == tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- if ns_chk.can_sort -%}\n {%- for tc in ns_a.tool_calls -%}\n {%- set tc_id = id_of(tc) -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- set eid = id_of(entry) -%}\n {%- if eid == tc_id -%}\n {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(entry.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(entry.output)) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if tk_id == tc_id -%}\n {{- render_tool_response(m) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {{- render_tool_response(messages[k]) -}}\n {%- endfor -%}\n {%- endif -%}\n{% endif -%}\n{%- elif m.role == 'system' -%}\n<|system|>{{ visible_text(m.content) }}\n{%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n <|assistant|>{{- '<think>' -}}\n{%- endif -%}\n",
"model_type": "glm5_next",
"tokenizer_config": {
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>"
}
},
"createdAt": "2026-09-30T02:47:32.000Z",
"disabled": false,
"downloads": 239,
"gated": false,
"id": "cantina-security/apex-flash-1-abliterated",
"lastModified": "2026-10-01T15:51:59.000Z",
"library_name": "transformers",
"likes": 33,
"model-index": null,
"modelId": "cantina-security/apex-flash-1-abliterated",
"pipeline_tag": "image-text-to-text",
"private": false,
"safetensors": {
"parameters": {
"BF16": 321322735872,
"F32": 295518
},
"total": 321323031390
},
"sha": "cecb5eeb9c6b32404a0dd930df81de2c239bdd84",
"siblings": [
{
"rfilename": ".gitattributes"
},
{
"rfilename": "LICENSE"
},
{
"rfilename": "README.md"
},
{
"rfilename": "chat_template.jinja"
},
{
"rfilename": "config.json"
},
{
"rfilename": "generation_config.json"
},
{
"rfilename": "model-00001-of-00062.safetensors"
},
{
"rfilename": "model-00002-of-00062.safetensors"
},
{
"rfilename": "model-00003-of-00062.safetensors"
},
{
"rfilename": "model-00004-of-00062.safetensors"
},
{
"rfilename": "model-00005-of-00062.safetensors"
},
{
"rfilename": "model-00006-of-00062.safetensors"
},
{
"rfilename": "model-00007-of-00062.safetensors"
},
{
"rfilename": "model-00008-of-00062.safetensors"
},
{
"rfilename": "model-00009-of-00062.safetensors"
},
{
"rfilename": "model-00010-of-00062.safetensors"
},
{
"rfilename": "model-00011-of-00062.safetensors"
},
{
"rfilename": "model-00012-of-00062.safetensors"
},
{
"rfilename": "model-00013-of-00062.safetensors"
},
{
"rfilename": "model-00014-of-00062.safetensors"
},
{
"rfilename": "model-00015-of-00062.safetensors"
},
{
"rfilename": "model-00016-of-00062.safetensors"
},
{
"rfilename": "model-00017-of-00062.safetensors"
},
{
"rfilename": "model-00018-of-00062.safetensors"
},
{
"rfilename": "model-00019-of-00062.safetensors"
},
{
"rfilename": "model-00020-of-00062.safetensors"
},
{
"rfilename": "model-00021-of-00062.safetensors"
},
{
"rfilename": "model-00022-of-00062.safetensors"
},
{
"rfilename": "model-00023-of-00062.safetensors"
},
{
"rfilename": "model-00024-of-00062.safetensors"
},
{
"rfilename": "model-00025-of-00062.safetensors"
},
{
"rfilename": "model-00026-of-00062.safetensors"
},
{
"rfilename": "model-00027-of-00062.safetensors"
},
{
"rfilename": "model-00028-of-00062.safetensors"
},
{
"rfilename": "model-00029-of-00062.safetensors"
},
{
"rfilename": "model-00030-of-00062.safetensors"
},
{
"rfilename": "model-00031-of-00062.safetensors"
},
{
"rfilename": "model-00032-of-00062.safetensors"
},
{
"rfilename": "model-00033-of-00062.safetensors"
},
{
"rfilename": "model-00034-of-00062.safetensors"
},
{
"rfilename": "model-00035-of-00062.safetensors"
},
{
"rfilename": "model-00036-of-00062.safetensors"
},
{
"rfilename": "model-00037-of-00062.safetensors"
},
{
"rfilename": "model-00038-of-00062.safetensors"
},
{
"rfilename": "model-00039-of-00062.safetensors"
},
{
"rfilename": "model-00040-of-00062.safetensors"
},
{
"rfilename": "model-00041-of-00062.safetensors"
},
{
"rfilename": "model-00042-of-00062.safetensors"
},
{
"rfilename": "model-00043-of-00062.safetensors"
},
{
"rfilename": "model-00044-of-00062.safetensors"
},
{
"rfilename": "model-00045-of-00062.safetensors"
},
{
"rfilename": "model-00046-of-00062.safetensors"
},
{
"rfilename": "model-00047-of-00062.safetensors"
},
{
"rfilename": "model-00048-of-00062.safetensors"
},
{
"rfilename": "model-00049-of-00062.safetensors"
},
{
"rfilename": "model-00050-of-00062.safetensors"
},
{
"rfilename": "model-00051-of-00062.safetensors"
},
{
"rfilename": "model-00052-of-00062.safetensors"
},
{
"rfilename": "model-00053-of-00062.safetensors"
},
{
"rfilename": "model-00054-of-00062.safetensors"
},
{
"rfilename": "model-00055-of-00062.safetensors"
},
{
"rfilename": "model-00056-of-00062.safetensors"
},
{
"rfilename": "model-00057-of-00062.safetensors"
},
{
"rfilename": "model-00058-of-00062.safetensors"
},
{
"rfilename": "model-00059-of-00062.safetensors"
},
{
"rfilename": "model-00060-of-00062.safetensors"
},
{
"rfilename": "model-00061-of-00062.safetensors"
},
{
"rfilename": "model-00062-of-00062.safetensors"
},
{
"rfilename": "model.safetensors.index.json"
},
{
"rfilename": "processor_config.json"
},
{
"rfilename": "tokenizer.json"
},
{
"rfilename": "tokenizer_config.json"
}
],
"spaces": [
"tardellirs/model-pulse"
],
"tags": [
"transformers",
"safetensors",
"glm5_next",
"image-text-to-text",
"abliterated",
"security-research",
"conversational",
"base_model:cantina-security/apex-flash-1",
"base_model:finetune:cantina-security/apex-flash-1",
"license:mit",
"endpoints_compatible",
"region:us"
],
"transformersInfo": {
"auto_model": "AutoModelForMultimodalLM",
"pipeline_tag": "image-text-to-text",
"processor": "AutoProcessor"
},
"usedStorage": 642672300946,
"widgetData": [
{
"text": "Hi, what can you help me with?"
},
{
"text": "What is 84 * 3 / 2?"
},
{
"text": "Tell me an interesting fact about the universe!"
},
{
"text": "Explain quantum computing in simple terms."
}
]
} | ||||||||||||||
| licence | mitreceipt
What the source handed over{
"_asked": "cantina-security/apex-flash-1-abliterated",
"_id": "6abc784477cea0ab48330406",
"author": "cantina-security",
"cardData": {
"base_model": "cantina-security/apex-flash-1",
"library_name": "transformers",
"license": "mit",
"pipeline_tag": "image-text-to-text",
"tags": [
"glm5_next",
"abliterated",
"security-research"
]
},
"config": {
"architectures": [
"Glm5NextForConditionalGeneration"
],
"chat_template_jinja": "[gMASK]<sop>\n{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}\n{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}\n{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}\n{%- if tools -%}\n{%- macro tool_to_json(tool) -%}\n {%- set ns_tool = namespace(first=true) -%}\n {{ '{' -}}\n {%- for k, v in tool.items() -%}\n {%- if k != 'defer_loading' and k != 'strict' -%}\n {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}\n {%- set ns_tool.first = false -%}\n \"{{ k }}\": {{ v | tojson(ensure_ascii=False) }}\n {%- endif -%}\n {%- endfor -%}\n {{- '}' -}}\n{%- endmacro -%}\n{%- macro tool_references_to_response(refs) -%}\n {{- '<tool_response><tools>\\n' -}}\n {%- for tr in refs -%}\n {%- for tool in tools -%}\n {%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n {%- endif -%}\n {%- if tool.name == tr.name -%}\n {{- tool_to_json(tool) + '\\n' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {{- '</tools></tool_response>' -}}\n{%- endmacro -%}\n<|system|>\n# 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>\n{% for tool in tools %}\n{%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n{%- endif -%}\n{% if tool.defer_loading is not defined or not tool.defer_loading %}\n{{ tool_to_json(tool) }}\n{% endif %}\n{% endfor %}\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}\n{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}\n{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}\n{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{- content -}}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text -}}\n {%- elif item is string -%}\n {{- item -}}\n {%- elif item is mapping and item.type in ['image', 'image_url'] -%}\n {{- emit_image() -}}\n {%- elif item is mapping and item.type in ['video', 'video_url'] -%}\n {{- emit_video() -}}\n {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}\n {{- emit_audio() -}}\n {%- endif -%}\n {%- endfor -%}\n {%- elif content is not none -%}\n {{- content -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro tool_response(text) -%}\n{{- '<tool_response>' + text + '</tool_response>' -}}\n{%- endmacro -%}\n{%- macro render_tool_response(m) -%}\n{%- if m.content is string -%}\n {{- tool_response(m.content) -}}\n{%- elif m.content and m.content is not mapping and m.content.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(m.content) -}}\n{%- elif is_list_of_outputs(m) -%}\n {%- for tr in m.content -%}\n {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(tr.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(tr.output)) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- else -%}\n {{- tool_response(visible_text(m.content)) -}}\n{%- endif -%}\n{%- endmacro -%}\n{%- macro id_of(obj) -%}\n {%- if obj.tool_call_id -%}\n {{- obj.tool_call_id -}}\n {%- elif obj.id -%}\n {{- obj.id -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro is_list_of_outputs(m) -%}\n {%- if m.content and m.content.0.output is defined -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro has_dup_tool_result_id(lo, hi, target) -%}\n {%- set ns_cnt = namespace(n=0) -%}\n {%- for k in range(lo, hi + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if id_of(entry) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n {%- elif id_of(m) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}\n {%- endfor -%}\n {%- if ns_cnt.n > 1 -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro tc_id_exists(tcs, target) -%}\n {%- set ns_f = namespace(found=false) -%}\n {%- for tc in tcs -%}\n {%- if id_of(tc) == target -%}\n {%- set ns_f.found = true -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if ns_f.found -%}1{%- endif -%}\n{%- endmacro -%}\n{%- set ns = namespace(last_user_index=-1) -%}\n{%- for m in messages %}\n {%- if m.role == 'user' %}\n {%- set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{%- for m in messages -%}\n{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}\n{%- elif m.role == 'assistant' -%}\n<|assistant|>\n{%- set content = visible_text(m.content) %}\n{%- if m.reasoning_content is string %}\n {%- set reasoning_content = m.reasoning_content %}\n{%- elif '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}\n {%- set content = content.split('</think>')[-1] %}\n{%- endif %}\n{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}\n{{ '<think>' + reasoning_content + '</think>'}}\n{%- else -%}\n{{ '<think></think>' }}\n{%- endif -%}\n{%- if content.strip() -%}\n{{ content.strip() }}\n{%- endif -%}\n{% if m.tool_calls %}\n{% for tc in m.tool_calls %}\n{%- if tc.function %}\n {%- set tc = tc.function %}\n{%- endif %}\n{{- '<tool_call>' ~ tc.name -}}\n{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}\n{% endif %}\n{%- elif m.role == 'tool' -%}\n{%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|observation|>' -}}\n {%- set block_start = loop.index0 -%}\n {%- set ns_blk = namespace(end=block_start) -%}\n {%- for j in range(block_start, messages|length) -%}\n {%- if messages[j].role == 'tool' -%}\n {%- set ns_blk.end = j -%}\n {%- else -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns_a = namespace(tool_calls=none) -%}\n {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}\n {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}\n {%- endif -%}\n {%- set ns_chk = namespace(can_sort=true) -%}\n {%- if not ns_a.tool_calls -%}\n {%- set ns_chk.can_sort = false -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set eid = id_of(entry) -%}\n {%- if not eid -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if not tk_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- for i in range(ns_a.tool_calls | length) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set tc_id = id_of(ns_a.tool_calls[i]) -%}\n {%- if not tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- for j in range(i + 1, ns_a.tool_calls | length) -%}\n {%- if id_of(ns_a.tool_calls[j]) == tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- if ns_chk.can_sort -%}\n {%- for tc in ns_a.tool_calls -%}\n {%- set tc_id = id_of(tc) -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- set eid = id_of(entry) -%}\n {%- if eid == tc_id -%}\n {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(entry.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(entry.output)) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if tk_id == tc_id -%}\n {{- render_tool_response(m) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {{- render_tool_response(messages[k]) -}}\n {%- endfor -%}\n {%- endif -%}\n{% endif -%}\n{%- elif m.role == 'system' -%}\n<|system|>{{ visible_text(m.content) }}\n{%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n <|assistant|>{{- '<think>' -}}\n{%- endif -%}\n",
"model_type": "glm5_next",
"tokenizer_config": {
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>"
}
},
"createdAt": "2026-09-30T02:47:32.000Z",
"disabled": false,
"downloads": 239,
"gated": false,
"id": "cantina-security/apex-flash-1-abliterated",
"lastModified": "2026-10-01T15:51:59.000Z",
"library_name": "transformers",
"likes": 33,
"model-index": null,
"modelId": "cantina-security/apex-flash-1-abliterated",
"pipeline_tag": "image-text-to-text",
"private": false,
"safetensors": {
"parameters": {
"BF16": 321322735872,
"F32": 295518
},
"total": 321323031390
},
"sha": "cecb5eeb9c6b32404a0dd930df81de2c239bdd84",
"siblings": [
{
"rfilename": ".gitattributes"
},
{
"rfilename": "LICENSE"
},
{
"rfilename": "README.md"
},
{
"rfilename": "chat_template.jinja"
},
{
"rfilename": "config.json"
},
{
"rfilename": "generation_config.json"
},
{
"rfilename": "model-00001-of-00062.safetensors"
},
{
"rfilename": "model-00002-of-00062.safetensors"
},
{
"rfilename": "model-00003-of-00062.safetensors"
},
{
"rfilename": "model-00004-of-00062.safetensors"
},
{
"rfilename": "model-00005-of-00062.safetensors"
},
{
"rfilename": "model-00006-of-00062.safetensors"
},
{
"rfilename": "model-00007-of-00062.safetensors"
},
{
"rfilename": "model-00008-of-00062.safetensors"
},
{
"rfilename": "model-00009-of-00062.safetensors"
},
{
"rfilename": "model-00010-of-00062.safetensors"
},
{
"rfilename": "model-00011-of-00062.safetensors"
},
{
"rfilename": "model-00012-of-00062.safetensors"
},
{
"rfilename": "model-00013-of-00062.safetensors"
},
{
"rfilename": "model-00014-of-00062.safetensors"
},
{
"rfilename": "model-00015-of-00062.safetensors"
},
{
"rfilename": "model-00016-of-00062.safetensors"
},
{
"rfilename": "model-00017-of-00062.safetensors"
},
{
"rfilename": "model-00018-of-00062.safetensors"
},
{
"rfilename": "model-00019-of-00062.safetensors"
},
{
"rfilename": "model-00020-of-00062.safetensors"
},
{
"rfilename": "model-00021-of-00062.safetensors"
},
{
"rfilename": "model-00022-of-00062.safetensors"
},
{
"rfilename": "model-00023-of-00062.safetensors"
},
{
"rfilename": "model-00024-of-00062.safetensors"
},
{
"rfilename": "model-00025-of-00062.safetensors"
},
{
"rfilename": "model-00026-of-00062.safetensors"
},
{
"rfilename": "model-00027-of-00062.safetensors"
},
{
"rfilename": "model-00028-of-00062.safetensors"
},
{
"rfilename": "model-00029-of-00062.safetensors"
},
{
"rfilename": "model-00030-of-00062.safetensors"
},
{
"rfilename": "model-00031-of-00062.safetensors"
},
{
"rfilename": "model-00032-of-00062.safetensors"
},
{
"rfilename": "model-00033-of-00062.safetensors"
},
{
"rfilename": "model-00034-of-00062.safetensors"
},
{
"rfilename": "model-00035-of-00062.safetensors"
},
{
"rfilename": "model-00036-of-00062.safetensors"
},
{
"rfilename": "model-00037-of-00062.safetensors"
},
{
"rfilename": "model-00038-of-00062.safetensors"
},
{
"rfilename": "model-00039-of-00062.safetensors"
},
{
"rfilename": "model-00040-of-00062.safetensors"
},
{
"rfilename": "model-00041-of-00062.safetensors"
},
{
"rfilename": "model-00042-of-00062.safetensors"
},
{
"rfilename": "model-00043-of-00062.safetensors"
},
{
"rfilename": "model-00044-of-00062.safetensors"
},
{
"rfilename": "model-00045-of-00062.safetensors"
},
{
"rfilename": "model-00046-of-00062.safetensors"
},
{
"rfilename": "model-00047-of-00062.safetensors"
},
{
"rfilename": "model-00048-of-00062.safetensors"
},
{
"rfilename": "model-00049-of-00062.safetensors"
},
{
"rfilename": "model-00050-of-00062.safetensors"
},
{
"rfilename": "model-00051-of-00062.safetensors"
},
{
"rfilename": "model-00052-of-00062.safetensors"
},
{
"rfilename": "model-00053-of-00062.safetensors"
},
{
"rfilename": "model-00054-of-00062.safetensors"
},
{
"rfilename": "model-00055-of-00062.safetensors"
},
{
"rfilename": "model-00056-of-00062.safetensors"
},
{
"rfilename": "model-00057-of-00062.safetensors"
},
{
"rfilename": "model-00058-of-00062.safetensors"
},
{
"rfilename": "model-00059-of-00062.safetensors"
},
{
"rfilename": "model-00060-of-00062.safetensors"
},
{
"rfilename": "model-00061-of-00062.safetensors"
},
{
"rfilename": "model-00062-of-00062.safetensors"
},
{
"rfilename": "model.safetensors.index.json"
},
{
"rfilename": "processor_config.json"
},
{
"rfilename": "tokenizer.json"
},
{
"rfilename": "tokenizer_config.json"
}
],
"spaces": [
"tardellirs/model-pulse"
],
"tags": [
"transformers",
"safetensors",
"glm5_next",
"image-text-to-text",
"abliterated",
"security-research",
"conversational",
"base_model:cantina-security/apex-flash-1",
"base_model:finetune:cantina-security/apex-flash-1",
"license:mit",
"endpoints_compatible",
"region:us"
],
"transformersInfo": {
"auto_model": "AutoModelForMultimodalLM",
"pipeline_tag": "image-text-to-text",
"processor": "AutoProcessor"
},
"usedStorage": 642672300946,
"widgetData": [
{
"text": "Hi, what can you help me with?"
},
{
"text": "What is 84 * 3 / 2?"
},
{
"text": "Tell me an interesting fact about the universe!"
},
{
"text": "Explain quantum computing in simple terms."
}
]
} | ||||||||||||||
| likes | 33receipt
What the source handed over{
"_asked": "cantina-security/apex-flash-1-abliterated",
"_id": "6abc784477cea0ab48330406",
"author": "cantina-security",
"cardData": {
"base_model": "cantina-security/apex-flash-1",
"library_name": "transformers",
"license": "mit",
"pipeline_tag": "image-text-to-text",
"tags": [
"glm5_next",
"abliterated",
"security-research"
]
},
"config": {
"architectures": [
"Glm5NextForConditionalGeneration"
],
"chat_template_jinja": "[gMASK]<sop>\n{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}\n{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}\n{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}\n{%- if tools -%}\n{%- macro tool_to_json(tool) -%}\n {%- set ns_tool = namespace(first=true) -%}\n {{ '{' -}}\n {%- for k, v in tool.items() -%}\n {%- if k != 'defer_loading' and k != 'strict' -%}\n {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}\n {%- set ns_tool.first = false -%}\n \"{{ k }}\": {{ v | tojson(ensure_ascii=False) }}\n {%- endif -%}\n {%- endfor -%}\n {{- '}' -}}\n{%- endmacro -%}\n{%- macro tool_references_to_response(refs) -%}\n {{- '<tool_response><tools>\\n' -}}\n {%- for tr in refs -%}\n {%- for tool in tools -%}\n {%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n {%- endif -%}\n {%- if tool.name == tr.name -%}\n {{- tool_to_json(tool) + '\\n' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {{- '</tools></tool_response>' -}}\n{%- endmacro -%}\n<|system|>\n# 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>\n{% for tool in tools %}\n{%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n{%- endif -%}\n{% if tool.defer_loading is not defined or not tool.defer_loading %}\n{{ tool_to_json(tool) }}\n{% endif %}\n{% endfor %}\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}\n{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}\n{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}\n{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{- content -}}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text -}}\n {%- elif item is string -%}\n {{- item -}}\n {%- elif item is mapping and item.type in ['image', 'image_url'] -%}\n {{- emit_image() -}}\n {%- elif item is mapping and item.type in ['video', 'video_url'] -%}\n {{- emit_video() -}}\n {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}\n {{- emit_audio() -}}\n {%- endif -%}\n {%- endfor -%}\n {%- elif content is not none -%}\n {{- content -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro tool_response(text) -%}\n{{- '<tool_response>' + text + '</tool_response>' -}}\n{%- endmacro -%}\n{%- macro render_tool_response(m) -%}\n{%- if m.content is string -%}\n {{- tool_response(m.content) -}}\n{%- elif m.content and m.content is not mapping and m.content.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(m.content) -}}\n{%- elif is_list_of_outputs(m) -%}\n {%- for tr in m.content -%}\n {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(tr.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(tr.output)) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- else -%}\n {{- tool_response(visible_text(m.content)) -}}\n{%- endif -%}\n{%- endmacro -%}\n{%- macro id_of(obj) -%}\n {%- if obj.tool_call_id -%}\n {{- obj.tool_call_id -}}\n {%- elif obj.id -%}\n {{- obj.id -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro is_list_of_outputs(m) -%}\n {%- if m.content and m.content.0.output is defined -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro has_dup_tool_result_id(lo, hi, target) -%}\n {%- set ns_cnt = namespace(n=0) -%}\n {%- for k in range(lo, hi + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if id_of(entry) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n {%- elif id_of(m) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}\n {%- endfor -%}\n {%- if ns_cnt.n > 1 -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro tc_id_exists(tcs, target) -%}\n {%- set ns_f = namespace(found=false) -%}\n {%- for tc in tcs -%}\n {%- if id_of(tc) == target -%}\n {%- set ns_f.found = true -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if ns_f.found -%}1{%- endif -%}\n{%- endmacro -%}\n{%- set ns = namespace(last_user_index=-1) -%}\n{%- for m in messages %}\n {%- if m.role == 'user' %}\n {%- set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{%- for m in messages -%}\n{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}\n{%- elif m.role == 'assistant' -%}\n<|assistant|>\n{%- set content = visible_text(m.content) %}\n{%- if m.reasoning_content is string %}\n {%- set reasoning_content = m.reasoning_content %}\n{%- elif '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}\n {%- set content = content.split('</think>')[-1] %}\n{%- endif %}\n{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}\n{{ '<think>' + reasoning_content + '</think>'}}\n{%- else -%}\n{{ '<think></think>' }}\n{%- endif -%}\n{%- if content.strip() -%}\n{{ content.strip() }}\n{%- endif -%}\n{% if m.tool_calls %}\n{% for tc in m.tool_calls %}\n{%- if tc.function %}\n {%- set tc = tc.function %}\n{%- endif %}\n{{- '<tool_call>' ~ tc.name -}}\n{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}\n{% endif %}\n{%- elif m.role == 'tool' -%}\n{%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|observation|>' -}}\n {%- set block_start = loop.index0 -%}\n {%- set ns_blk = namespace(end=block_start) -%}\n {%- for j in range(block_start, messages|length) -%}\n {%- if messages[j].role == 'tool' -%}\n {%- set ns_blk.end = j -%}\n {%- else -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns_a = namespace(tool_calls=none) -%}\n {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}\n {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}\n {%- endif -%}\n {%- set ns_chk = namespace(can_sort=true) -%}\n {%- if not ns_a.tool_calls -%}\n {%- set ns_chk.can_sort = false -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set eid = id_of(entry) -%}\n {%- if not eid -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if not tk_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- for i in range(ns_a.tool_calls | length) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set tc_id = id_of(ns_a.tool_calls[i]) -%}\n {%- if not tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- for j in range(i + 1, ns_a.tool_calls | length) -%}\n {%- if id_of(ns_a.tool_calls[j]) == tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- if ns_chk.can_sort -%}\n {%- for tc in ns_a.tool_calls -%}\n {%- set tc_id = id_of(tc) -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- set eid = id_of(entry) -%}\n {%- if eid == tc_id -%}\n {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(entry.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(entry.output)) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if tk_id == tc_id -%}\n {{- render_tool_response(m) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {{- render_tool_response(messages[k]) -}}\n {%- endfor -%}\n {%- endif -%}\n{% endif -%}\n{%- elif m.role == 'system' -%}\n<|system|>{{ visible_text(m.content) }}\n{%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n <|assistant|>{{- '<think>' -}}\n{%- endif -%}\n",
"model_type": "glm5_next",
"tokenizer_config": {
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>"
}
},
"createdAt": "2026-09-30T02:47:32.000Z",
"disabled": false,
"downloads": 239,
"gated": false,
"id": "cantina-security/apex-flash-1-abliterated",
"lastModified": "2026-10-01T15:51:59.000Z",
"library_name": "transformers",
"likes": 33,
"model-index": null,
"modelId": "cantina-security/apex-flash-1-abliterated",
"pipeline_tag": "image-text-to-text",
"private": false,
"safetensors": {
"parameters": {
"BF16": 321322735872,
"F32": 295518
},
"total": 321323031390
},
"sha": "cecb5eeb9c6b32404a0dd930df81de2c239bdd84",
"siblings": [
{
"rfilename": ".gitattributes"
},
{
"rfilename": "LICENSE"
},
{
"rfilename": "README.md"
},
{
"rfilename": "chat_template.jinja"
},
{
"rfilename": "config.json"
},
{
"rfilename": "generation_config.json"
},
{
"rfilename": "model-00001-of-00062.safetensors"
},
{
"rfilename": "model-00002-of-00062.safetensors"
},
{
"rfilename": "model-00003-of-00062.safetensors"
},
{
"rfilename": "model-00004-of-00062.safetensors"
},
{
"rfilename": "model-00005-of-00062.safetensors"
},
{
"rfilename": "model-00006-of-00062.safetensors"
},
{
"rfilename": "model-00007-of-00062.safetensors"
},
{
"rfilename": "model-00008-of-00062.safetensors"
},
{
"rfilename": "model-00009-of-00062.safetensors"
},
{
"rfilename": "model-00010-of-00062.safetensors"
},
{
"rfilename": "model-00011-of-00062.safetensors"
},
{
"rfilename": "model-00012-of-00062.safetensors"
},
{
"rfilename": "model-00013-of-00062.safetensors"
},
{
"rfilename": "model-00014-of-00062.safetensors"
},
{
"rfilename": "model-00015-of-00062.safetensors"
},
{
"rfilename": "model-00016-of-00062.safetensors"
},
{
"rfilename": "model-00017-of-00062.safetensors"
},
{
"rfilename": "model-00018-of-00062.safetensors"
},
{
"rfilename": "model-00019-of-00062.safetensors"
},
{
"rfilename": "model-00020-of-00062.safetensors"
},
{
"rfilename": "model-00021-of-00062.safetensors"
},
{
"rfilename": "model-00022-of-00062.safetensors"
},
{
"rfilename": "model-00023-of-00062.safetensors"
},
{
"rfilename": "model-00024-of-00062.safetensors"
},
{
"rfilename": "model-00025-of-00062.safetensors"
},
{
"rfilename": "model-00026-of-00062.safetensors"
},
{
"rfilename": "model-00027-of-00062.safetensors"
},
{
"rfilename": "model-00028-of-00062.safetensors"
},
{
"rfilename": "model-00029-of-00062.safetensors"
},
{
"rfilename": "model-00030-of-00062.safetensors"
},
{
"rfilename": "model-00031-of-00062.safetensors"
},
{
"rfilename": "model-00032-of-00062.safetensors"
},
{
"rfilename": "model-00033-of-00062.safetensors"
},
{
"rfilename": "model-00034-of-00062.safetensors"
},
{
"rfilename": "model-00035-of-00062.safetensors"
},
{
"rfilename": "model-00036-of-00062.safetensors"
},
{
"rfilename": "model-00037-of-00062.safetensors"
},
{
"rfilename": "model-00038-of-00062.safetensors"
},
{
"rfilename": "model-00039-of-00062.safetensors"
},
{
"rfilename": "model-00040-of-00062.safetensors"
},
{
"rfilename": "model-00041-of-00062.safetensors"
},
{
"rfilename": "model-00042-of-00062.safetensors"
},
{
"rfilename": "model-00043-of-00062.safetensors"
},
{
"rfilename": "model-00044-of-00062.safetensors"
},
{
"rfilename": "model-00045-of-00062.safetensors"
},
{
"rfilename": "model-00046-of-00062.safetensors"
},
{
"rfilename": "model-00047-of-00062.safetensors"
},
{
"rfilename": "model-00048-of-00062.safetensors"
},
{
"rfilename": "model-00049-of-00062.safetensors"
},
{
"rfilename": "model-00050-of-00062.safetensors"
},
{
"rfilename": "model-00051-of-00062.safetensors"
},
{
"rfilename": "model-00052-of-00062.safetensors"
},
{
"rfilename": "model-00053-of-00062.safetensors"
},
{
"rfilename": "model-00054-of-00062.safetensors"
},
{
"rfilename": "model-00055-of-00062.safetensors"
},
{
"rfilename": "model-00056-of-00062.safetensors"
},
{
"rfilename": "model-00057-of-00062.safetensors"
},
{
"rfilename": "model-00058-of-00062.safetensors"
},
{
"rfilename": "model-00059-of-00062.safetensors"
},
{
"rfilename": "model-00060-of-00062.safetensors"
},
{
"rfilename": "model-00061-of-00062.safetensors"
},
{
"rfilename": "model-00062-of-00062.safetensors"
},
{
"rfilename": "model.safetensors.index.json"
},
{
"rfilename": "processor_config.json"
},
{
"rfilename": "tokenizer.json"
},
{
"rfilename": "tokenizer_config.json"
}
],
"spaces": [
"tardellirs/model-pulse"
],
"tags": [
"transformers",
"safetensors",
"glm5_next",
"image-text-to-text",
"abliterated",
"security-research",
"conversational",
"base_model:cantina-security/apex-flash-1",
"base_model:finetune:cantina-security/apex-flash-1",
"license:mit",
"endpoints_compatible",
"region:us"
],
"transformersInfo": {
"auto_model": "AutoModelForMultimodalLM",
"pipeline_tag": "image-text-to-text",
"processor": "AutoProcessor"
},
"usedStorage": 642672300946,
"widgetData": [
{
"text": "Hi, what can you help me with?"
},
{
"text": "What is 84 * 3 / 2?"
},
{
"text": "Tell me an interesting fact about the universe!"
},
{
"text": "Explain quantum computing in simple terms."
}
]
} | ||||||||||||||
| task | image-text-to-textreceipt
What the source handed over{
"_asked": "cantina-security/apex-flash-1-abliterated",
"_id": "6abc784477cea0ab48330406",
"author": "cantina-security",
"cardData": {
"base_model": "cantina-security/apex-flash-1",
"library_name": "transformers",
"license": "mit",
"pipeline_tag": "image-text-to-text",
"tags": [
"glm5_next",
"abliterated",
"security-research"
]
},
"config": {
"architectures": [
"Glm5NextForConditionalGeneration"
],
"chat_template_jinja": "[gMASK]<sop>\n{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}\n{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}\n{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}\n{%- if tools -%}\n{%- macro tool_to_json(tool) -%}\n {%- set ns_tool = namespace(first=true) -%}\n {{ '{' -}}\n {%- for k, v in tool.items() -%}\n {%- if k != 'defer_loading' and k != 'strict' -%}\n {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}\n {%- set ns_tool.first = false -%}\n \"{{ k }}\": {{ v | tojson(ensure_ascii=False) }}\n {%- endif -%}\n {%- endfor -%}\n {{- '}' -}}\n{%- endmacro -%}\n{%- macro tool_references_to_response(refs) -%}\n {{- '<tool_response><tools>\\n' -}}\n {%- for tr in refs -%}\n {%- for tool in tools -%}\n {%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n {%- endif -%}\n {%- if tool.name == tr.name -%}\n {{- tool_to_json(tool) + '\\n' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {{- '</tools></tool_response>' -}}\n{%- endmacro -%}\n<|system|>\n# 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>\n{% for tool in tools %}\n{%- if 'function' in tool -%}\n {%- set tool = tool['function'] -%}\n{%- endif -%}\n{% if tool.defer_loading is not defined or not tool.defer_loading %}\n{{ tool_to_json(tool) }}\n{% endif %}\n{% endfor %}\n</tools>\n\nFor each function call, output the function name and arguments within the following XML format:\n<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value><arg_key>{arg-key-2}</arg_key><arg_value>{arg-value-2}</arg_value>...</tool_call>{%- endif -%}\n{%- macro emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}\n{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}\n{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{- content -}}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text -}}\n {%- elif item is string -%}\n {{- item -}}\n {%- elif item is mapping and item.type in ['image', 'image_url'] -%}\n {{- emit_image() -}}\n {%- elif item is mapping and item.type in ['video', 'video_url'] -%}\n {{- emit_video() -}}\n {%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}\n {{- emit_audio() -}}\n {%- endif -%}\n {%- endfor -%}\n {%- elif content is not none -%}\n {{- content -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro tool_response(text) -%}\n{{- '<tool_response>' + text + '</tool_response>' -}}\n{%- endmacro -%}\n{%- macro render_tool_response(m) -%}\n{%- if m.content is string -%}\n {{- tool_response(m.content) -}}\n{%- elif m.content and m.content is not mapping and m.content.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(m.content) -}}\n{%- elif is_list_of_outputs(m) -%}\n {%- for tr in m.content -%}\n {%- if tr.output is iterable and tr.output is not string and tr.output is not mapping and tr.output and tr.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(tr.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(tr.output)) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- else -%}\n {{- tool_response(visible_text(m.content)) -}}\n{%- endif -%}\n{%- endmacro -%}\n{%- macro id_of(obj) -%}\n {%- if obj.tool_call_id -%}\n {{- obj.tool_call_id -}}\n {%- elif obj.id -%}\n {{- obj.id -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro is_list_of_outputs(m) -%}\n {%- if m.content and m.content.0.output is defined -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro has_dup_tool_result_id(lo, hi, target) -%}\n {%- set ns_cnt = namespace(n=0) -%}\n {%- for k in range(lo, hi + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if id_of(entry) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n {%- elif id_of(m) == target -%}\n {%- set ns_cnt.n = ns_cnt.n + 1 -%}\n {%- endif -%}\n {%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}\n {%- endfor -%}\n {%- if ns_cnt.n > 1 -%}1{%- endif -%}\n{%- endmacro -%}\n{%- macro tc_id_exists(tcs, target) -%}\n {%- set ns_f = namespace(found=false) -%}\n {%- for tc in tcs -%}\n {%- if id_of(tc) == target -%}\n {%- set ns_f.found = true -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if ns_f.found -%}1{%- endif -%}\n{%- endmacro -%}\n{%- set ns = namespace(last_user_index=-1) -%}\n{%- for m in messages %}\n {%- if m.role == 'user' %}\n {%- set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{%- for m in messages -%}\n{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}\n{%- elif m.role == 'assistant' -%}\n<|assistant|>\n{%- set content = visible_text(m.content) %}\n{%- if m.reasoning_content is string %}\n {%- set reasoning_content = m.reasoning_content %}\n{%- elif '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}\n {%- set content = content.split('</think>')[-1] %}\n{%- endif %}\n{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}\n{{ '<think>' + reasoning_content + '</think>'}}\n{%- else -%}\n{{ '<think></think>' }}\n{%- endif -%}\n{%- if content.strip() -%}\n{{ content.strip() }}\n{%- endif -%}\n{% if m.tool_calls %}\n{% for tc in m.tool_calls %}\n{%- if tc.function %}\n {%- set tc = tc.function %}\n{%- endif %}\n{{- '<tool_call>' ~ tc.name -}}\n{% set _args = tc.arguments %}{% for k, v in _args.items() %}<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>{% endfor %}</tool_call>{% endfor %}\n{% endif %}\n{%- elif m.role == 'tool' -%}\n{%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|observation|>' -}}\n {%- set block_start = loop.index0 -%}\n {%- set ns_blk = namespace(end=block_start) -%}\n {%- for j in range(block_start, messages|length) -%}\n {%- if messages[j].role == 'tool' -%}\n {%- set ns_blk.end = j -%}\n {%- else -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns_a = namespace(tool_calls=none) -%}\n {%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}\n {%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}\n {%- endif -%}\n {%- set ns_chk = namespace(can_sort=true) -%}\n {%- if not ns_a.tool_calls -%}\n {%- set ns_chk.can_sort = false -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set eid = id_of(entry) -%}\n {%- if not eid -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if not tk_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- for i in range(ns_a.tool_calls | length) -%}\n {%- if not ns_chk.can_sort -%}{%- break -%}{%- endif -%}\n {%- set tc_id = id_of(ns_a.tool_calls[i]) -%}\n {%- if not tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- endif -%}\n {%- for j in range(i + 1, ns_a.tool_calls | length) -%}\n {%- if id_of(ns_a.tool_calls[j]) == tc_id -%}\n {%- set ns_chk.can_sort = false -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- endif -%}\n {%- if ns_chk.can_sort -%}\n {%- for tc in ns_a.tool_calls -%}\n {%- set tc_id = id_of(tc) -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {%- set m = messages[k] -%}\n {%- if is_list_of_outputs(m) -%}\n {%- for entry in m.content -%}\n {%- set eid = id_of(entry) -%}\n {%- if eid == tc_id -%}\n {%- if entry.output is iterable and entry.output is not string and entry.output is not mapping and entry.output and entry.output.0.type == \"tool_reference\" -%}\n {{- tool_references_to_response(entry.output) -}}\n {%- else -%}\n {{- tool_response(visible_text(entry.output)) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- set tk_id = id_of(m) -%}\n {%- if tk_id == tc_id -%}\n {{- render_tool_response(m) -}}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- else -%}\n {%- for k in range(block_start, ns_blk.end + 1) -%}\n {{- render_tool_response(messages[k]) -}}\n {%- endfor -%}\n {%- endif -%}\n{% endif -%}\n{%- elif m.role == 'system' -%}\n<|system|>{{ visible_text(m.content) }}\n{%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n <|assistant|>{{- '<think>' -}}\n{%- endif -%}\n",
"model_type": "glm5_next",
"tokenizer_config": {
"eos_token": "<|endoftext|>",
"pad_token": "<|endoftext|>"
}
},
"createdAt": "2026-09-30T02:47:32.000Z",
"disabled": false,
"downloads": 239,
"gated": false,
"id": "cantina-security/apex-flash-1-abliterated",
"lastModified": "2026-10-01T15:51:59.000Z",
"library_name": "transformers",
"likes": 33,
"model-index": null,
"modelId": "cantina-security/apex-flash-1-abliterated",
"pipeline_tag": "image-text-to-text",
"private": false,
"safetensors": {
"parameters": {
"BF16": 321322735872,
"F32": 295518
},
"total": 321323031390
},
"sha": "cecb5eeb9c6b32404a0dd930df81de2c239bdd84",
"siblings": [
{
"rfilename": ".gitattributes"
},
{
"rfilename": "LICENSE"
},
{
"rfilename": "README.md"
},
{
"rfilename": "chat_template.jinja"
},
{
"rfilename": "config.json"
},
{
"rfilename": "generation_config.json"
},
{
"rfilename": "model-00001-of-00062.safetensors"
},
{
"rfilename": "model-00002-of-00062.safetensors"
},
{
"rfilename": "model-00003-of-00062.safetensors"
},
{
"rfilename": "model-00004-of-00062.safetensors"
},
{
"rfilename": "model-00005-of-00062.safetensors"
},
{
"rfilename": "model-00006-of-00062.safetensors"
},
{
"rfilename": "model-00007-of-00062.safetensors"
},
{
"rfilename": "model-00008-of-00062.safetensors"
},
{
"rfilename": "model-00009-of-00062.safetensors"
},
{
"rfilename": "model-00010-of-00062.safetensors"
},
{
"rfilename": "model-00011-of-00062.safetensors"
},
{
"rfilename": "model-00012-of-00062.safetensors"
},
{
"rfilename": "model-00013-of-00062.safetensors"
},
{
"rfilename": "model-00014-of-00062.safetensors"
},
{
"rfilename": "model-00015-of-00062.safetensors"
},
{
"rfilename": "model-00016-of-00062.safetensors"
},
{
"rfilename": "model-00017-of-00062.safetensors"
},
{
"rfilename": "model-00018-of-00062.safetensors"
},
{
"rfilename": "model-00019-of-00062.safetensors"
},
{
"rfilename": "model-00020-of-00062.safetensors"
},
{
"rfilename": "model-00021-of-00062.safetensors"
},
{
"rfilename": "model-00022-of-00062.safetensors"
},
{
"rfilename": "model-00023-of-00062.safetensors"
},
{
"rfilename": "model-00024-of-00062.safetensors"
},
{
"rfilename": "model-00025-of-00062.safetensors"
},
{
"rfilename": "model-00026-of-00062.safetensors"
},
{
"rfilename": "model-00027-of-00062.safetensors"
},
{
"rfilename": "model-00028-of-00062.safetensors"
},
{
"rfilename": "model-00029-of-00062.safetensors"
},
{
"rfilename": "model-00030-of-00062.safetensors"
},
{
"rfilename": "model-00031-of-00062.safetensors"
},
{
"rfilename": "model-00032-of-00062.safetensors"
},
{
"rfilename": "model-00033-of-00062.safetensors"
},
{
"rfilename": "model-00034-of-00062.safetensors"
},
{
"rfilename": "model-00035-of-00062.safetensors"
},
{
"rfilename": "model-00036-of-00062.safetensors"
},
{
"rfilename": "model-00037-of-00062.safetensors"
},
{
"rfilename": "model-00038-of-00062.safetensors"
},
{
"rfilename": "model-00039-of-00062.safetensors"
},
{
"rfilename": "model-00040-of-00062.safetensors"
},
{
"rfilename": "model-00041-of-00062.safetensors"
},
{
"rfilename": "model-00042-of-00062.safetensors"
},
{
"rfilename": "model-00043-of-00062.safetensors"
},
{
"rfilename": "model-00044-of-00062.safetensors"
},
{
"rfilename": "model-00045-of-00062.safetensors"
},
{
"rfilename": "model-00046-of-00062.safetensors"
},
{
"rfilename": "model-00047-of-00062.safetensors"
},
{
"rfilename": "model-00048-of-00062.safetensors"
},
{
"rfilename": "model-00049-of-00062.safetensors"
},
{
"rfilename": "model-00050-of-00062.safetensors"
},
{
"rfilename": "model-00051-of-00062.safetensors"
},
{
"rfilename": "model-00052-of-00062.safetensors"
},
{
"rfilename": "model-00053-of-00062.safetensors"
},
{
"rfilename": "model-00054-of-00062.safetensors"
},
{
"rfilename": "model-00055-of-00062.safetensors"
},
{
"rfilename": "model-00056-of-00062.safetensors"
},
{
"rfilename": "model-00057-of-00062.safetensors"
},
{
"rfilename": "model-00058-of-00062.safetensors"
},
{
"rfilename": "model-00059-of-00062.safetensors"
},
{
"rfilename": "model-00060-of-00062.safetensors"
},
{
"rfilename": "model-00061-of-00062.safetensors"
},
{
"rfilename": "model-00062-of-00062.safetensors"
},
{
"rfilename": "model.safetensors.index.json"
},
{
"rfilename": "processor_config.json"
},
{
"rfilename": "tokenizer.json"
},
{
"rfilename": "tokenizer_config.json"
}
],
"spaces": [
"tardellirs/model-pulse"
],
"tags": [
"transformers",
"safetensors",
"glm5_next",
"image-text-to-text",
"abliterated",
"security-research",
"conversational",
"base_model:cantina-security/apex-flash-1",
"base_model:finetune:cantina-security/apex-flash-1",
"license:mit",
"endpoints_compatible",
"region:us"
],
"transformersInfo": {
"auto_model": "AutoModelForMultimodalLM",
"pipeline_tag": "image-text-to-text",
"processor": "AutoProcessor"
},
"usedStorage": 642672300946,
"widgetData": [
{
"text": "Hi, what can you help me with?"
},
{
"text": "What is 84 * 3 / 2?"
},
{
"text": "Tell me an interesting fact about the universe!"
},
{
"text": "Explain quantum computing in simple terms."
}
]
} |
Text
This source's terms allow its title, its values and a link here, not its text. It is at https://huggingface.co/cantina-security/apex-flash-1-abliterated.