{"serveDecision":{"state":"READY","authority":"live-serve-decision"},"downloadable":true,"downloadReady":true,"degraded":false,"stale":false,"readinessCheckedAt":"2026-11-06T20:55:01.294Z","readinessSource":"file-check","schemaVersion":"hugging-bay.local-kit.v2","displayOnly":true,"authorizationRequired":true,"eligibilitySnapshotAt":"2026-11-06T20:54:05.897Z","generatedAt":"2026-11-06T20:55:01.295Z","status":"runnable-bundle-recipe","commandsAvailable":true,"commands":[{"tool":"lm-studio","label":"LM Studio (no terminal)","kind":"gui-walkthrough","guiProven":false,"command":"Open LM Studio, then drag the downloaded 'gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf' into My Models to load it.","note":"A walk-through for your machine, not a checked run path — these steps are guidance, never a promise it will run. LM Studio's own UI takes it from there.","prefilledFrom":{"file":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","templateSha256":"24d32be0f96bbea1b9e1afd89e19bd4a632ab567c90555c7284be65f5e7f7609","sha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1"},"guideCheckedAt":"2026-09-22","guideCheckedBy":"hugging-bay-docs","guideVersion":5},{"tool":"ollama","label":"Ollama","note":"Builds a local Ollama model named \"gemma-4-31b-it-qat-q4_0-unquantized-uncensored-heretic.i1-q4_k_m\" from the file (Ollama imports the file's embedded chat template) and starts a chat.","prefilledFrom":{"file":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","templateSha256":"24d32be0f96bbea1b9e1afd89e19bd4a632ab567c90555c7284be65f5e7f7609","sha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1"},"guideCheckedAt":"2026-09-22","guideCheckedBy":"hugging-bay-docs","guideVersion":5},{"tool":"llama.cpp","label":"llama.cpp (terminal)","kind":"terminal","proven":true,"note":"Runs the file directly with llama.cpp's command-line tool. -st (--single-turn) runs one turn with the model's embedded chat template and exits — tested on llama.cpp b10964-b29c606e2. The old -no-cnv flag was removed and is rejected by current builds.","runner":{"name":"llama.cpp","testedBuild":"b10964-b29c606e2","singleTurnFlag":"-st"},"prefilledFrom":{"file":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","templateSha256":"24d32be0f96bbea1b9e1afd89e19bd4a632ab567c90555c7284be65f5e7f7609","sha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1"},"guideCheckedAt":"2026-09-22","guideCheckedBy":"hugging-bay-docs","guideVersion":5},{"tool":"python","label":"Python (llama-cpp-python)","command":"pip install llama-cpp-python && python -c 'from llama_cpp import Llama; llm = Llama(\"./gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf\", n_ctx=8192); print(llm.create_chat_completion(messages=[{'\\''role'\\'': '\\''user'\\'', '\\''content'\\'': '\\''Hello!'\\''}])['\\''choices'\\''][0]['\\''message'\\'']['\\''content'\\''])'","note":"For scripting the model from Python; create_chat_completion applies the embedded chat template.","prefilledFrom":{"file":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","templateSha256":"24d32be0f96bbea1b9e1afd89e19bd4a632ab567c90555c7284be65f5e7f7609","sha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1"},"guideCheckedAt":"2026-09-22","guideCheckedBy":"hugging-bay-docs","guideVersion":5}],"runTested":false,"runBlockKind":"hosted-file-recipe","chatContract":{"available":true,"source":"gguf-metadata:tokenizer.chat_template","sourceFileSha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1","templateSha256":"24d32be0f96bbea1b9e1afd89e19bd4a632ab567c90555c7284be65f5e7f7609","templateText":"{%- macro format_argument(argument, escape_keys=True) -%}\n    {%- if argument is none -%}\n        {{- 'null' -}}\n    {%- elif argument is string -%}\n        {{- '<|\"|>' + argument + '<|\"|>' -}}\n    {%- elif argument is boolean -%}\n        {{- 'true' if argument else 'false' -}}\n    {%- elif argument is mapping -%}\n        {{- '{' -}}\n        {%- set ns = namespace(found_first=false) -%}\n        {%- for key, value in argument | dictsort -%}\n            {%- if ns.found_first %},{% endif -%}\n            {%- set ns.found_first = true -%}\n            {%- if escape_keys -%}\n                {{- '<|\"|>' + key + '<|\"|>' -}}\n            {%- else -%}\n                {{- key -}}\n            {%- endif -%}\n            :{{- format_argument(value, escape_keys=escape_keys) -}}\n        {%- endfor -%}\n        {{- '}' -}}\n    {%- elif argument is iterable and argument is not string -%}\n        {{- '[' -}}\n        {%- for item in argument -%}\n            {{- format_argument(item, escape_keys=escape_keys) -}}\n            {%- if not loop.last %},{% endif -%}\n        {%- endfor -%}\n        {{- ']' -}}\n    {%- else -%}\n        {{- argument -}}\n    {%- endif -%}\n{%- endmacro -%}\n\n{%- macro format_type_argument(type_value) -%}\n    {%- if type_value is none -%}\n        <|\"|>OBJECT<|\"|>\n    {%- elif type_value is string -%}\n        <|\"|>{{ type_value | upper }}<|\"|>\n    {%- elif type_value is iterable and type_value is not string -%}\n        [\n        {%- for item in type_value -%}\n            {%- if item is string -%}\n                <|\"|>{{ item | upper }}<|\"|>\n            {%- else -%}\n                {{- format_argument(item) -}}\n            {%- endif -%}\n            {%- if not loop.last %},{% endif -%}\n        {%- endfor -%}\n        ]\n    {%- else -%}\n        {{- format_argument(type_value) -}}\n    {%- endif -%}\n{%- endmacro -%}\n\n{%- macro format_parameters(properties, required, filter_keys=false) -%}\n    {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}\n    {%- set ns = namespace(found_first=false) -%}\n    {%- for key, value in properties | dictsort -%}\n        {%- if not filter_keys or key not in standard_keys -%}\n            {%- if ns.found_first %},{% endif -%}\n            {%- set ns.found_first = true -%}\n            {{ key }}:{\n            {%- set add_comma = false -%}\n            {%- if value is mapping -%}\n                {%- set vtype = value['type'] if 'type' in value and value['type'] else none -%}\n                {%- set is_string_type = (vtype is string and vtype | upper == 'STRING') or (vtype is iterable and vtype is not string and ('string' in vtype or 'STRING' in vtype)) -%}\n                {%- set is_array_type = (vtype is string and vtype | upper == 'ARRAY') or (vtype is iterable and vtype is not string and ('array' in vtype or 'ARRAY' in vtype)) -%}\n                {%- set is_object_type = (vtype is string and vtype | upper == 'OBJECT') or (vtype is iterable and vtype is not string and ('object' in vtype or 'OBJECT' in vtype)) -%}\n                {%- if 'description' in value and value['description'] -%}\n                    description:<|\"|>{{ value['description'] }}<|\"|>\n                    {%- set add_comma = true -%}\n                {%- endif -%}\n                {%- if is_string_type -%}\n                    {%- if 'enum' in value and value['enum'] -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        enum:{{ format_argument(value['enum']) }}\n                    {%- endif -%}\n                {%- elif is_array_type -%}\n                    {%- if 'items' in value and value['items'] is mapping and value['items'] -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        items:{\n                        {%- set ns_items = namespace(found_first=false) -%}\n                        {%- for item_key, item_value in value['items'] | dictsort -%}\n                            {%- if item_value is not none -%}\n                                {%- if ns_items.found_first %},{% endif -%}\n                                {%- set ns_items.found_first = true -%}\n                                {%- if item_key == 'properties' -%}\n                                    properties:{\n                                    {%- if item_value is mapping -%}\n                                        {{- format_parameters(item_value, value['items']['required'] if 'required' in value['items'] else []) -}}\n                                    {%- endif -%}\n                                    }\n                                {%- elif item_key == 'required' -%}\n                                    required:[\n                                    {%- for req_item in item_value -%}\n                                        <|\"|>{{- req_item -}}<|\"|>\n                                        {%- if not loop.last %},{% endif -%}\n                                    {%- endfor -%}\n                                    ]\n                                {%- elif item_key == 'type' -%}\n                                    type:{{ format_type_argument(item_value) }}\n                                {%- else -%}\n                                    {{ item_key }}:{{ format_argument(item_value) }}\n                                {%- endif -%}\n                            {%- endif -%}\n                        {%- endfor -%}\n                        }\n                    {%- endif -%}\n                {%- endif -%}\n                {%- if 'nullable' in value and value['nullable'] -%}\n                    {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                    nullable:true\n                {%- endif -%}\n                {%- if is_object_type or ('properties' in value and value['properties'] is mapping) -%}\n                    {%- if 'properties' in value and value['properties'] is mapping -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        properties:{\n                        {{- format_parameters(value['properties'], value['required'] if 'required' in value else []) -}}\n                        }\n                    {%- elif value is mapping -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        properties:{\n                        {{- format_parameters(value, value['required'] if 'required' in value else [], filter_keys=true) -}}\n                        }\n                    {%- endif -%}\n                    {%- if 'required' in value and value['required'] -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        required:[\n                        {%- for item in value['required'] -%}\n                            <|\"|>{{- item -}}<|\"|>\n                            {%- if not loop.last %},{% endif -%}\n                        {%- endfor -%}\n                        ]\n                    {%- endif -%}\n                {%- endif -%}\n                {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                type:{{ format_type_argument(vtype if vtype else 'object') }}\n            {%- else -%}\n                type:{{ format_type_argument('object') }}\n            {%- endif -%}\n            }\n        {%- endif -%}\n    {%- endfor -%}\n{%- endmacro -%}\n\n{%- macro format_function_declaration(tool_data) -%}\n    {%- set fn = tool_data['function'] if tool_data is mapping and 'function' in tool_data else tool_data -%}\n    {%- set tool_name = fn['name'] if fn is mapping and 'name' in fn and fn['name'] else 'unknown' -%}\n    {%- set tool_description = fn['description'] if fn is mapping and 'description' in fn and fn['description'] else '' -%}\n    declaration:{{- tool_name -}}{description:<|\"|>{{- tool_description -}}<|\"|>\n    {%- set params = none -%}\n    {%- if fn is mapping and 'parameters' in fn and fn['parameters'] -%}\n        {%- set params = fn['parameters'] -%}\n    {%- elif fn is mapping and 'input_schema' in fn and fn['input_schema'] -%}\n        {%- set params = fn['input_schema'] -%}\n    {%- elif fn is mapping and 'inputSchema' in fn and fn['inputSchema'] -%}\n        {%- set params = fn['inputSchema'] -%}\n    {%- endif -%}\n    {%- if params and params is mapping -%}\n        ,parameters:{\n        {%- if 'properties' in params and params['properties'] -%}\n            properties:{ {{- format_parameters(params['properties'], params['required'] if 'required' in params else []) -}} },\n        {%- endif -%}\n        {%- if 'required' in params and params['required'] -%}\n            required:[\n            {%- for item in params['required'] -%}\n                <|\"|>{{- item -}}<|\"|>\n                {{- ',' if not loop.last -}}\n            {%- endfor -%}\n            ],\n        {%- endif -%}\n        {%- if 'type' in params and params['type'] -%}\n            type:{{- format_type_argument(params['type']) -}}}\n        {%- else -%}\n            type:{{- format_type_argument('object') -}}}\n        {%- endif -%}\n    {%- endif -%}\n    {%- if fn is mapping and 'response' in fn and fn['response'] is mapping -%}\n        {%- set response_declaration = fn['response'] -%}\n        ,response:{\n        {%- if 'description' in response_declaration and response_declaration['description'] -%}\n            description:<|\"|>{{- response_declaration['description'] -}}<|\"|>,\n        {%- endif -%}\n        {%- if 'type' in response_declaration and response_declaration['type'] -%}\n            type:{{- format_type_argument(response_declaration['type']) -}}}\n        {%- else -%}\n            type:{{- format_type_argument('object') -}}}\n        {%- endif -%}\n    {%- endif -%}\n    }\n{%- endmacro -%}\n\n{%- macro strip_thinking(text) -%}\n    {{- text | trim -}}\n{%- endmacro -%}\n\n{%- macro format_tool_response_block(tool_name, response) -%}\n    {{- '<|tool_response>' -}}\n    {%- if response is mapping -%}\n        {{- 'response:' + tool_name + '{' -}}\n        {%- for key, value in response | dictsort -%}\n            {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n            {%- if not loop.last %},{% endif -%}\n        {%- endfor -%}\n        {{- '}' -}}\n    {%- else -%}\n        {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}\n    {%- endif -%}\n    {{- '<tool_response|>' -}}\n{%- endmacro -%}\n\n{#- ===== SETUP ===== -#}\n{%- set ns = namespace(prev_message_type=None, prev_non_tool_role=None) -%}\n{%- set loop_messages = messages -%}\n{%- set enable_thinking = enable_thinking if enable_thinking is defined else false -%}\n{%- set preserve_thinking = preserve_thinking if preserve_thinking is defined else true -%}\n{{- bos_token -}}\n{#- Handle System/Tool Definitions Block -#}\n{%- if enable_thinking or (tools is defined and tools) or (messages and messages[0]['role'] in ['system', 'developer']) -%}\n    {{- '<|turn>system\\n' -}}\n    {#- Inject Thinking token at the very top of the FIRST system turn -#}\n    {%- if enable_thinking -%}\n        {{- '<|think|>\\n' -}}\n        {%- set ns.prev_message_type = 'think' -%}\n    {%- endif -%}\n    {%- if messages and messages[0]['role'] in ['system', 'developer'] -%}\n        {%- if messages[0]['content'] is string -%}\n            {{- messages[0]['content'] | trim -}}\n        {%- elif messages[0]['content'] is iterable and messages[0]['content'] is not string -%}\n            {%- for item in messages[0]['content'] -%}\n                {%- if item is mapping and 'text' in item -%}{{- item['text'] | trim + ' '-}}{%- endif -%}\n            {%- endfor -%}\n        {%- endif -%}\n        {%- set loop_messages = messages[1:] -%}\n    {%- endif -%}\n    {%- if tools is defined and tools -%}\n        {%- for tool in tools %}\n            {{- '<|tool>' -}}\n            {{- format_function_declaration(tool) | trim -}}\n            {{- '<tool|>' -}}\n        {%- endfor %}\n        {%- set ns.prev_message_type = 'tool' -%}\n    {%- endif -%}\n    {{- '<turn|>\\n' -}}\n{%- endif %}\n\n{#- Pre-scan: find last user message index for reasoning guard -#}\n{%- set ns_turn = namespace(last_user_idx=-1) -%}\n{%- for i in range(loop_messages | length) -%}\n    {%- if loop_messages[i]['role'] == 'user' -%}\n        {%- set ns_turn.last_user_idx = i -%}\n    {%- endif -%}\n{%- endfor -%}\n\n{#- Loop through messages -#}\n{%- for message in loop_messages -%}\n    {%- if message['role'] != 'tool' -%}\n    {%- set ns.prev_message_type = None -%}\n    {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}\n    {%- set message_has_tool_calls = ('tool_calls' in message and message['tool_calls']) -%}\n    {#- Detect continuation using tracked state — O(1) instead of O(n) backward scan -#}\n    {%- set continue_same_model_turn = (role == 'model' and ns.prev_non_tool_role == 'assistant') -%}\n    {%- if not continue_same_model_turn -%}\n        {{- '<|turn>' + role + '\\n' }}\n    {%- endif -%}\n\n    {#- Render reasoning/reasoning_content as thinking channel (tool-call turns only) -#}\n    {%- set thinking_ns = namespace(text='') -%}\n    {%- if 'reasoning' in message and message['reasoning'] -%}\n        {%- set thinking_ns.text = message['reasoning'] -%}\n    {%- elif 'reasoning_content' in message and message['reasoning_content'] -%}\n        {%- set thinking_ns.text = message['reasoning_content'] -%}\n    {%- endif -%}\n    {%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or preserve_thinking -%}\n    {%- if thinking_ns.text and thinking_gate and message_has_tool_calls -%}\n        {{- '<|channel>thought\\n' + thinking_ns.text + '\\n<channel|>' -}}\n    {%- endif -%}\n\n            {%- if message_has_tool_calls -%}\n                {%- for tool_call in message['tool_calls'] -%}\n                    {%- set function = tool_call['function'] if tool_call is mapping and 'function' in tool_call else tool_call -%}\n                    {%- set function_name = function['name'] if function is mapping and 'name' in function and function['name'] else 'unknown' -%}\n                    {{- '<|tool_call>call:' + function_name + '{' -}}\n                    {%- if function is mapping and 'arguments' in function and function['arguments'] is mapping -%}\n                        {%- set ns_args = namespace(found_first=false) -%}\n                        {%- for key, value in function['arguments'] | dictsort -%}\n                            {%- if ns_args.found_first %},{% endif -%}\n                            {%- set ns_args.found_first = true -%}\n                            {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n                        {%- endfor -%}\n                    {%- elif function is mapping and 'arguments' in function and function['arguments'] is string -%}\n                        {{- function['arguments'] -}}\n                    {%- elif function is mapping and 'arguments' in function and function['arguments'] is not none -%}\n                        {{- format_argument(function['arguments'], escape_keys=False) -}}\n                    {%- endif -%}\n                    {{- '}<tool_call|>' -}}\n                {%- endfor -%}\n                {%- set ns.prev_message_type = 'tool_call' -%}\n            {%- endif -%}\n\n            {%- set ns_tr_out = namespace(flag=false) -%}\n            {%- if 'tool_responses' in message and message['tool_responses'] -%}\n                {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}\n                {%- for tool_response in message['tool_responses'] -%}\n                    {%- set tr_name = tool_response['name'] if tool_response is mapping and 'name' in tool_response and tool_response['name'] else 'unknown' -%}\n                    {%- set tr_response = tool_response['response'] if tool_response is mapping and 'response' in tool_response else '' -%}\n                    {{- format_tool_response_block(tr_name, tr_response) -}}\n                    {%- set ns_tr_out.flag = true -%}\n                    {%- set ns.prev_message_type = 'tool_response' -%}\n                {%- endfor -%}\n            {%- elif message_has_tool_calls -%}\n                {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}\n                {%- set ns_tool_scan = namespace(stopped=false) -%}\n                {%- for k in range(loop.index0 + 1, loop_messages | length) -%}\n                    {%- if ns_tool_scan.stopped -%}\n                    {%- elif loop_messages[k]['role'] != 'tool' -%}\n                        {%- set ns_tool_scan.stopped = true -%}\n                    {%- else -%}\n                        {%- set follow = loop_messages[k] -%}\n                        {#- Resolve tool_call_id to function name -#}\n                        {%- set ns_tname = namespace(name='unknown') -%}\n                        {%- if 'name' in follow and follow['name'] -%}\n                            {%- set ns_tname.name = follow['name'] -%}\n                        {%- endif -%}\n                        {%- for tc in message['tool_calls'] -%}\n                            {%- if tc is mapping and 'id' in tc and 'tool_call_id' in follow and tc['id'] == follow['tool_call_id'] -%}\n                                {%- if 'function' in tc and 'name' in tc['function'] and tc['function']['name'] -%}\n                                    {%- set ns_tname.name = tc['function']['name'] -%}\n                                {%- elif 'name' in tc and tc['name'] -%}\n                                    {%- set ns_tname.name = tc['name'] -%}\n                                {%- endif -%}\n                            {%- endif -%}\n                        {%- endfor -%}\n                        {#- Handle content as string, object, or content-parts array -#}\n                        {%- set tool_body = follow['content'] if 'content' in follow else '' -%}\n                        {%- if tool_body is string -%}\n                            {{- format_tool_response_block(ns_tname.name, tool_body) -}}\n                        {%- elif tool_body is mapping -%}\n                            {{- format_tool_response_block(ns_tname.name, tool_body) -}}\n                        {%- elif tool_body is iterable and tool_body is not string -%}\n                            {%- set ns_txt = namespace(s='') -%}\n                            {%- for part in tool_body -%}\n                                {%- if part is mapping and 'type' in part and part['type'] == 'text' and 'text' in part -%}\n                                    {%- set ns_txt.s = ns_txt.s + part['text'] -%}\n                                {%- endif -%}\n                            {%- endfor -%}\n                            {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}\n                            {%- for part in tool_body -%}\n                                {%- if part is mapping and 'type' in part and part['type'] in ['image', 'image_url'] -%}\n                                    {{- '<|image|>' -}}\n                                {%- elif part is mapping and 'type' in part and part['type'] in ['audio', 'input_audio'] -%}\n                                    {{- '<|audio|>' -}}\n                                {%- elif part is mapping and 'type' in part and part['type'] == 'video' -%}\n                                    {{- '<|video|>' -}}\n                                {%- endif -%}\n                            {%- endfor -%}\n                        {%- else -%}\n                            {{- format_tool_response_block(ns_tname.name, tool_body) -}}\n                        {%- endif -%}\n                        {%- set ns_tr_out.flag = true -%}\n                        {%- set ns.prev_message_type = 'tool_response' -%}\n                    {%- endif -%}\n                {%- endfor -%}\n            {%- endif -%}\n\n            {%- set captured_content -%}\n            {%- if 'content' in message and message['content'] is string -%}\n                {%- if role == 'model' -%}\n                    {{- strip_thinking(message['content']) -}}\n                {%- else -%}\n                    {{- message['content'] | trim -}}\n                {%- endif -%}\n            {%- elif 'content' in message and message['content'] is iterable and message['content'] is not string -%}\n                {%- for item in message['content'] -%}\n                    {%- if item is mapping and 'type' in item and item['type'] == 'text' and 'text' in item -%}\n                        {%- if role == 'model' -%}\n                            {{- strip_thinking(item['text']) -}}\n                        {%- else -%}\n                            {{- item['text'] | trim -}}\n                        {%- endif -%}\n                    {%- elif item is mapping and 'type' in item and item['type'] in ['image', 'image_url'] -%}\n                        {{- '<|image|>' -}}\n                    {%- elif item is mapping and 'type' in item and item['type'] in ['audio', 'input_audio'] -%}\n                        {{- '<|audio|>' -}}\n                    {%- elif item is mapping and 'type' in item and item['type'] == 'video' -%}\n                        {{- '<|video|>' -}}\n                    {%- endif -%}\n                {%- endfor -%}\n            {%- endif -%}\n            {%- endset -%}\n\n            {{- captured_content -}}\n            {%- set has_content = captured_content | trim | length > 0 -%}\n\n        {#- Forward-scan: find next non-tool message role for continuation detection -#}\n        {%- set next_nt = namespace(role=None, found=false) -%}\n        {%- for j in range(loop.index0 + 1, loop_messages | length) -%}\n            {%- if not next_nt.found -%}\n                {%- if loop_messages[j]['role'] != 'tool' -%}\n                    {%- set next_nt.role = loop_messages[j]['role'] -%}\n                    {%- set next_nt.found = true -%}\n                {%- endif -%}\n            {%- endif -%}\n        {%- endfor -%}\n\n        {%- set continues_into_next = (\n            role == 'model'\n            and next_nt.role == 'assistant'\n            and not message_has_tool_calls\n            and not ns_tr_out.flag\n        ) -%}\n\n        {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}\n            {{- '<|tool_response>' -}}\n        {%- elif continues_into_next -%}\n            {{- '\\n' -}}\n        {%- elif not (ns_tr_out.flag and not has_content) -%}\n            {{- '<turn|>\\n' -}}\n        {%- endif -%}\n\n    {#- Track previous non-tool role for next iteration (avoids O(n) backward scan) -#}\n    {%- set ns.prev_non_tool_role = message['role'] -%}\n    {%- endif -%}\n{%- endfor -%}\n\n{%- if add_generation_prompt is defined and add_generation_prompt -%}\n    {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}\n        {{- '<|turn>model\\n' -}}\n    {%- endif -%}\n\n    {%- if not enable_thinking -%}\n        {#- Suppress thinking — but not when awaiting tool responses -#}\n        {%- if ns.prev_message_type != 'tool_call' -%}\n            {{- '<|channel>thought\\n<channel|>' -}}\n        {%- endif -%}\n    {%- endif -%}\n{%- endif -%}","extractedAt":"2026-10-16","extractionStage":"ingest.template-extract/v1","architecture":"gemma4","contextLength":262144,"stop":["<eos>"],"thinking":{"mode":"none"}},"artifact":{"id":"hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf","repo":"mradermacher/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic-i1-GGUF","type":"llm","summary":"Model from Hugging Face for llm: mradermacher/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic-i1-GGUF · transformers","license":"apache-2.0","hostingStatus":"hosted","hostedFileCount":7,"hostedFileCountAuthority":"live-serve-decision","displayFileCount":7,"fileCount":29,"upstreamUrl":"https://huggingface.co/mradermacher/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic-i1-GGUF"},"tool":"any","toolCompatibility":{"status":"unknown","reason":"recorded-evaluator-not-integrated"},"readiness":{"state":"ready","asOf":"2026-11-06T20:55:01.295Z","reason":"Hosted by Hugging Bay — byte-verified 2026-09-18T19:09:53.903Z, license clear (apache-2.0).","downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf"},"requiredFiles":[{"path":".gitattributes","sizeBytes":3733,"sha256":"","format":"gitattributes","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":false,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"README.md","sizeBytes":7410,"sha256":"","format":"md","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":false,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ1_M.gguf","sizeBytes":7725878912,"sha256":"de415bbd36569a3ac872c161743280abb928180d6fe28ccda67391603e9e1766","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ1_S.gguf","sizeBytes":7156496000,"sha256":"0ad7cb138bc33b8aa0537ee137734d9b2869ad46b768d6595bb76131f4409473","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ2_M.gguf","sizeBytes":10917072512,"sha256":"f520dab8ffd135cf9f2be1134ded33a1f1f315cba5f1ea6a87ee462029dbe9a5","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ2_S.gguf","sizeBytes":10157895296,"sha256":"edbdf5e09845422bab17dd8767c54e3ca45b17328afb480b87d0e1fab242b8b7","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ2_XS.gguf","sizeBytes":9530365568,"sha256":"50af06939deec2813dff3249de4f4b986c27ce1b9c2812fdf9f365225188123d","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ2_XXS.gguf","sizeBytes":8674850432,"sha256":"37a1c0617d9f09ebc8f049f8956caef42a5f6f31676035700f929f132f0443d8","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ3_M.gguf","sizeBytes":14424503936,"sha256":"6dffc5fe3a49d08589c6520db178d6e0d7cdcece2a16a928946b3b2b8acfd432","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ3_M.gguf","chatTemplate":null,"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ3_S.gguf","sizeBytes":13761363584,"sha256":"2db4b6735c6e4ee20768f04fd3d1b3f667d83f0e5a9cb73632f09ad40c9e746e","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ3_XS.gguf","sizeBytes":13072375424,"sha256":"ee39db3b17b52855921afdb1e5b40f8a078e506925ed6428caa91c23f42623e3","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ3_XXS.gguf","sizeBytes":12077514368,"sha256":"b97c3d4e19c2d296a759d761f6fe46085dd01e67e1f475def2de34abafd54a8e","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ3_XXS.gguf","chatTemplate":null,"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ4_XS.gguf","sizeBytes":16735796864,"sha256":"ed9e9cd9c9a399de173f36c8a95f3dec8275211e02b6179d9f5fbaafdae81382","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-IQ4_XS.gguf","chatTemplate":null,"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q2_K.gguf","sizeBytes":11916320384,"sha256":"b9df0da252ad27786161f916c72016fff63bf8277d7223e509386bdb2067b65c","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q2_K.gguf","chatTemplate":null,"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q2_K_S.gguf","sizeBytes":10976595584,"sha256":"cc4adda48146ab0658b036876c3612326393f45ef0b8e1bd04bd0d50374f7755","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q2_K_S.gguf","chatTemplate":null,"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q3_K_L.gguf","sizeBytes":16628276864,"sha256":"641e86f040a8981ab31e4137124efc0f41dfcdfe645aaea8e7c2121feba14463","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q3_K_M.gguf","sizeBytes":15287115392,"sha256":"011fee3b6b7fad906c68258bbb007f544529c555ea7db12a9508ff537a7e92c4","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q3_K_M.gguf","chatTemplate":null,"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q3_K_S.gguf","sizeBytes":13761363584,"sha256":"30e116b18ff7f7e7dc661a0c983fc830241e190c60fd3b2276d6d160160529f6","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_0.gguf","sizeBytes":17701584512,"sha256":"7fb64d626734cff242c5633d8c574c28e34e31aeab4b4a1e43ef9e1c9fa864da","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_1.gguf","sizeBytes":19481427584,"sha256":"4ee0f421e3a364d5823c427b687e34ffa2d0ecd730d66ae9e1dbb959d90b61e3","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","sizeBytes":18687069824,"sha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1","format":"gguf","risk":"low","sourceKind":"mirrored-upstream","hosted":true,"readiness":"ready","downloadReady":true,"reasonCodes":[],"reason":"Hosted on Hugging Bay and byte-verified — download is available now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":true,"serveDecision":{"state":"READY","reasonCodes":[]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":"https://huggingbay.xyz/api/downloads/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","chatTemplate":{"artifactId":"hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf","filePath":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_M.gguf","sha256":"8b1777fcf42efff08f23f322e8ede47dc7532c266e4be4b486c4ac5342691bc1","architecture":"gemma4","generalName":"Gemma 4 31B It Qat Q4_0 Unquantized Uncensored Heretic","tokenizerModel":"gemma4","contextLength":262144,"bos":"<bos>","eos":"<eos>","stop":["<eos>"],"thinking":{"mode":"none"},"chatTemplate":"{%- macro format_argument(argument, escape_keys=True) -%}\n    {%- if argument is none -%}\n        {{- 'null' -}}\n    {%- elif argument is string -%}\n        {{- '<|\"|>' + argument + '<|\"|>' -}}\n    {%- elif argument is boolean -%}\n        {{- 'true' if argument else 'false' -}}\n    {%- elif argument is mapping -%}\n        {{- '{' -}}\n        {%- set ns = namespace(found_first=false) -%}\n        {%- for key, value in argument | dictsort -%}\n            {%- if ns.found_first %},{% endif -%}\n            {%- set ns.found_first = true -%}\n            {%- if escape_keys -%}\n                {{- '<|\"|>' + key + '<|\"|>' -}}\n            {%- else -%}\n                {{- key -}}\n            {%- endif -%}\n            :{{- format_argument(value, escape_keys=escape_keys) -}}\n        {%- endfor -%}\n        {{- '}' -}}\n    {%- elif argument is iterable and argument is not string -%}\n        {{- '[' -}}\n        {%- for item in argument -%}\n            {{- format_argument(item, escape_keys=escape_keys) -}}\n            {%- if not loop.last %},{% endif -%}\n        {%- endfor -%}\n        {{- ']' -}}\n    {%- else -%}\n        {{- argument -}}\n    {%- endif -%}\n{%- endmacro -%}\n\n{%- macro format_type_argument(type_value) -%}\n    {%- if type_value is none -%}\n        <|\"|>OBJECT<|\"|>\n    {%- elif type_value is string -%}\n        <|\"|>{{ type_value | upper }}<|\"|>\n    {%- elif type_value is iterable and type_value is not string -%}\n        [\n        {%- for item in type_value -%}\n            {%- if item is string -%}\n                <|\"|>{{ item | upper }}<|\"|>\n            {%- else -%}\n                {{- format_argument(item) -}}\n            {%- endif -%}\n            {%- if not loop.last %},{% endif -%}\n        {%- endfor -%}\n        ]\n    {%- else -%}\n        {{- format_argument(type_value) -}}\n    {%- endif -%}\n{%- endmacro -%}\n\n{%- macro format_parameters(properties, required, filter_keys=false) -%}\n    {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}\n    {%- set ns = namespace(found_first=false) -%}\n    {%- for key, value in properties | dictsort -%}\n        {%- if not filter_keys or key not in standard_keys -%}\n            {%- if ns.found_first %},{% endif -%}\n            {%- set ns.found_first = true -%}\n            {{ key }}:{\n            {%- set add_comma = false -%}\n            {%- if value is mapping -%}\n                {%- set vtype = value['type'] if 'type' in value and value['type'] else none -%}\n                {%- set is_string_type = (vtype is string and vtype | upper == 'STRING') or (vtype is iterable and vtype is not string and ('string' in vtype or 'STRING' in vtype)) -%}\n                {%- set is_array_type = (vtype is string and vtype | upper == 'ARRAY') or (vtype is iterable and vtype is not string and ('array' in vtype or 'ARRAY' in vtype)) -%}\n                {%- set is_object_type = (vtype is string and vtype | upper == 'OBJECT') or (vtype is iterable and vtype is not string and ('object' in vtype or 'OBJECT' in vtype)) -%}\n                {%- if 'description' in value and value['description'] -%}\n                    description:<|\"|>{{ value['description'] }}<|\"|>\n                    {%- set add_comma = true -%}\n                {%- endif -%}\n                {%- if is_string_type -%}\n                    {%- if 'enum' in value and value['enum'] -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        enum:{{ format_argument(value['enum']) }}\n                    {%- endif -%}\n                {%- elif is_array_type -%}\n                    {%- if 'items' in value and value['items'] is mapping and value['items'] -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        items:{\n                        {%- set ns_items = namespace(found_first=false) -%}\n                        {%- for item_key, item_value in value['items'] | dictsort -%}\n                            {%- if item_value is not none -%}\n                                {%- if ns_items.found_first %},{% endif -%}\n                                {%- set ns_items.found_first = true -%}\n                                {%- if item_key == 'properties' -%}\n                                    properties:{\n                                    {%- if item_value is mapping -%}\n                                        {{- format_parameters(item_value, value['items']['required'] if 'required' in value['items'] else []) -}}\n                                    {%- endif -%}\n                                    }\n                                {%- elif item_key == 'required' -%}\n                                    required:[\n                                    {%- for req_item in item_value -%}\n                                        <|\"|>{{- req_item -}}<|\"|>\n                                        {%- if not loop.last %},{% endif -%}\n                                    {%- endfor -%}\n                                    ]\n                                {%- elif item_key == 'type' -%}\n                                    type:{{ format_type_argument(item_value) }}\n                                {%- else -%}\n                                    {{ item_key }}:{{ format_argument(item_value) }}\n                                {%- endif -%}\n                            {%- endif -%}\n                        {%- endfor -%}\n                        }\n                    {%- endif -%}\n                {%- endif -%}\n                {%- if 'nullable' in value and value['nullable'] -%}\n                    {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                    nullable:true\n                {%- endif -%}\n                {%- if is_object_type or ('properties' in value and value['properties'] is mapping) -%}\n                    {%- if 'properties' in value and value['properties'] is mapping -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        properties:{\n                        {{- format_parameters(value['properties'], value['required'] if 'required' in value else []) -}}\n                        }\n                    {%- elif value is mapping -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        properties:{\n                        {{- format_parameters(value, value['required'] if 'required' in value else [], filter_keys=true) -}}\n                        }\n                    {%- endif -%}\n                    {%- if 'required' in value and value['required'] -%}\n                        {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                        required:[\n                        {%- for item in value['required'] -%}\n                            <|\"|>{{- item -}}<|\"|>\n                            {%- if not loop.last %},{% endif -%}\n                        {%- endfor -%}\n                        ]\n                    {%- endif -%}\n                {%- endif -%}\n                {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n                type:{{ format_type_argument(vtype if vtype else 'object') }}\n            {%- else -%}\n                type:{{ format_type_argument('object') }}\n            {%- endif -%}\n            }\n        {%- endif -%}\n    {%- endfor -%}\n{%- endmacro -%}\n\n{%- macro format_function_declaration(tool_data) -%}\n    {%- set fn = tool_data['function'] if tool_data is mapping and 'function' in tool_data else tool_data -%}\n    {%- set tool_name = fn['name'] if fn is mapping and 'name' in fn and fn['name'] else 'unknown' -%}\n    {%- set tool_description = fn['description'] if fn is mapping and 'description' in fn and fn['description'] else '' -%}\n    declaration:{{- tool_name -}}{description:<|\"|>{{- tool_description -}}<|\"|>\n    {%- set params = none -%}\n    {%- if fn is mapping and 'parameters' in fn and fn['parameters'] -%}\n        {%- set params = fn['parameters'] -%}\n    {%- elif fn is mapping and 'input_schema' in fn and fn['input_schema'] -%}\n        {%- set params = fn['input_schema'] -%}\n    {%- elif fn is mapping and 'inputSchema' in fn and fn['inputSchema'] -%}\n        {%- set params = fn['inputSchema'] -%}\n    {%- endif -%}\n    {%- if params and params is mapping -%}\n        ,parameters:{\n        {%- if 'properties' in params and params['properties'] -%}\n            properties:{ {{- format_parameters(params['properties'], params['required'] if 'required' in params else []) -}} },\n        {%- endif -%}\n        {%- if 'required' in params and params['required'] -%}\n            required:[\n            {%- for item in params['required'] -%}\n                <|\"|>{{- item -}}<|\"|>\n                {{- ',' if not loop.last -}}\n            {%- endfor -%}\n            ],\n        {%- endif -%}\n        {%- if 'type' in params and params['type'] -%}\n            type:{{- format_type_argument(params['type']) -}}}\n        {%- else -%}\n            type:{{- format_type_argument('object') -}}}\n        {%- endif -%}\n    {%- endif -%}\n    {%- if fn is mapping and 'response' in fn and fn['response'] is mapping -%}\n        {%- set response_declaration = fn['response'] -%}\n        ,response:{\n        {%- if 'description' in response_declaration and response_declaration['description'] -%}\n            description:<|\"|>{{- response_declaration['description'] -}}<|\"|>,\n        {%- endif -%}\n        {%- if 'type' in response_declaration and response_declaration['type'] -%}\n            type:{{- format_type_argument(response_declaration['type']) -}}}\n        {%- else -%}\n            type:{{- format_type_argument('object') -}}}\n        {%- endif -%}\n    {%- endif -%}\n    }\n{%- endmacro -%}\n\n{%- macro strip_thinking(text) -%}\n    {{- text | trim -}}\n{%- endmacro -%}\n\n{%- macro format_tool_response_block(tool_name, response) -%}\n    {{- '<|tool_response>' -}}\n    {%- if response is mapping -%}\n        {{- 'response:' + tool_name + '{' -}}\n        {%- for key, value in response | dictsort -%}\n            {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n            {%- if not loop.last %},{% endif -%}\n        {%- endfor -%}\n        {{- '}' -}}\n    {%- else -%}\n        {{- 'response:' + tool_name + '{value:' + format_argument(response, escape_keys=False) + '}' -}}\n    {%- endif -%}\n    {{- '<tool_response|>' -}}\n{%- endmacro -%}\n\n{#- ===== SETUP ===== -#}\n{%- set ns = namespace(prev_message_type=None, prev_non_tool_role=None) -%}\n{%- set loop_messages = messages -%}\n{%- set enable_thinking = enable_thinking if enable_thinking is defined else false -%}\n{%- set preserve_thinking = preserve_thinking if preserve_thinking is defined else true -%}\n{{- bos_token -}}\n{#- Handle System/Tool Definitions Block -#}\n{%- if enable_thinking or (tools is defined and tools) or (messages and messages[0]['role'] in ['system', 'developer']) -%}\n    {{- '<|turn>system\\n' -}}\n    {#- Inject Thinking token at the very top of the FIRST system turn -#}\n    {%- if enable_thinking -%}\n        {{- '<|think|>\\n' -}}\n        {%- set ns.prev_message_type = 'think' -%}\n    {%- endif -%}\n    {%- if messages and messages[0]['role'] in ['system', 'developer'] -%}\n        {%- if messages[0]['content'] is string -%}\n            {{- messages[0]['content'] | trim -}}\n        {%- elif messages[0]['content'] is iterable and messages[0]['content'] is not string -%}\n            {%- for item in messages[0]['content'] -%}\n                {%- if item is mapping and 'text' in item -%}{{- item['text'] | trim + ' '-}}{%- endif -%}\n            {%- endfor -%}\n        {%- endif -%}\n        {%- set loop_messages = messages[1:] -%}\n    {%- endif -%}\n    {%- if tools is defined and tools -%}\n        {%- for tool in tools %}\n            {{- '<|tool>' -}}\n            {{- format_function_declaration(tool) | trim -}}\n            {{- '<tool|>' -}}\n        {%- endfor %}\n        {%- set ns.prev_message_type = 'tool' -%}\n    {%- endif -%}\n    {{- '<turn|>\\n' -}}\n{%- endif %}\n\n{#- Pre-scan: find last user message index for reasoning guard -#}\n{%- set ns_turn = namespace(last_user_idx=-1) -%}\n{%- for i in range(loop_messages | length) -%}\n    {%- if loop_messages[i]['role'] == 'user' -%}\n        {%- set ns_turn.last_user_idx = i -%}\n    {%- endif -%}\n{%- endfor -%}\n\n{#- Loop through messages -#}\n{%- for message in loop_messages -%}\n    {%- if message['role'] != 'tool' -%}\n    {%- set ns.prev_message_type = None -%}\n    {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}\n    {%- set message_has_tool_calls = ('tool_calls' in message and message['tool_calls']) -%}\n    {#- Detect continuation using tracked state — O(1) instead of O(n) backward scan -#}\n    {%- set continue_same_model_turn = (role == 'model' and ns.prev_non_tool_role == 'assistant') -%}\n    {%- if not continue_same_model_turn -%}\n        {{- '<|turn>' + role + '\\n' }}\n    {%- endif -%}\n\n    {#- Render reasoning/reasoning_content as thinking channel (tool-call turns only) -#}\n    {%- set thinking_ns = namespace(text='') -%}\n    {%- if 'reasoning' in message and message['reasoning'] -%}\n        {%- set thinking_ns.text = message['reasoning'] -%}\n    {%- elif 'reasoning_content' in message and message['reasoning_content'] -%}\n        {%- set thinking_ns.text = message['reasoning_content'] -%}\n    {%- endif -%}\n    {%- set thinking_gate = (loop.index0 > ns_turn.last_user_idx) or preserve_thinking -%}\n    {%- if thinking_ns.text and thinking_gate and message_has_tool_calls -%}\n        {{- '<|channel>thought\\n' + thinking_ns.text + '\\n<channel|>' -}}\n    {%- endif -%}\n\n            {%- if message_has_tool_calls -%}\n                {%- for tool_call in message['tool_calls'] -%}\n                    {%- set function = tool_call['function'] if tool_call is mapping and 'function' in tool_call else tool_call -%}\n                    {%- set function_name = function['name'] if function is mapping and 'name' in function and function['name'] else 'unknown' -%}\n                    {{- '<|tool_call>call:' + function_name + '{' -}}\n                    {%- if function is mapping and 'arguments' in function and function['arguments'] is mapping -%}\n                        {%- set ns_args = namespace(found_first=false) -%}\n                        {%- for key, value in function['arguments'] | dictsort -%}\n                            {%- if ns_args.found_first %},{% endif -%}\n                            {%- set ns_args.found_first = true -%}\n                            {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n                        {%- endfor -%}\n                    {%- elif function is mapping and 'arguments' in function and function['arguments'] is string -%}\n                        {{- function['arguments'] -}}\n                    {%- elif function is mapping and 'arguments' in function and function['arguments'] is not none -%}\n                        {{- format_argument(function['arguments'], escape_keys=False) -}}\n                    {%- endif -%}\n                    {{- '}<tool_call|>' -}}\n                {%- endfor -%}\n                {%- set ns.prev_message_type = 'tool_call' -%}\n            {%- endif -%}\n\n            {%- set ns_tr_out = namespace(flag=false) -%}\n            {%- if 'tool_responses' in message and message['tool_responses'] -%}\n                {#- Legacy: tool_responses embedded on the assistant message (Google/Gemma native) -#}\n                {%- for tool_response in message['tool_responses'] -%}\n                    {%- set tr_name = tool_response['name'] if tool_response is mapping and 'name' in tool_response and tool_response['name'] else 'unknown' -%}\n                    {%- set tr_response = tool_response['response'] if tool_response is mapping and 'response' in tool_response else '' -%}\n                    {{- format_tool_response_block(tr_name, tr_response) -}}\n                    {%- set ns_tr_out.flag = true -%}\n                    {%- set ns.prev_message_type = 'tool_response' -%}\n                {%- endfor -%}\n            {%- elif message_has_tool_calls -%}\n                {#- OpenAI Chat Completions: forward-scan consecutive role:tool messages -#}\n                {%- set ns_tool_scan = namespace(stopped=false) -%}\n                {%- for k in range(loop.index0 + 1, loop_messages | length) -%}\n                    {%- if ns_tool_scan.stopped -%}\n                    {%- elif loop_messages[k]['role'] != 'tool' -%}\n                        {%- set ns_tool_scan.stopped = true -%}\n                    {%- else -%}\n                        {%- set follow = loop_messages[k] -%}\n                        {#- Resolve tool_call_id to function name -#}\n                        {%- set ns_tname = namespace(name='unknown') -%}\n                        {%- if 'name' in follow and follow['name'] -%}\n                            {%- set ns_tname.name = follow['name'] -%}\n                        {%- endif -%}\n                        {%- for tc in message['tool_calls'] -%}\n                            {%- if tc is mapping and 'id' in tc and 'tool_call_id' in follow and tc['id'] == follow['tool_call_id'] -%}\n                                {%- if 'function' in tc and 'name' in tc['function'] and tc['function']['name'] -%}\n                                    {%- set ns_tname.name = tc['function']['name'] -%}\n                                {%- elif 'name' in tc and tc['name'] -%}\n                                    {%- set ns_tname.name = tc['name'] -%}\n                                {%- endif -%}\n                            {%- endif -%}\n                        {%- endfor -%}\n                        {#- Handle content as string, object, or content-parts array -#}\n                        {%- set tool_body = follow['content'] if 'content' in follow else '' -%}\n                        {%- if tool_body is string -%}\n                            {{- format_tool_response_block(ns_tname.name, tool_body) -}}\n                        {%- elif tool_body is mapping -%}\n                            {{- format_tool_response_block(ns_tname.name, tool_body) -}}\n                        {%- elif tool_body is iterable and tool_body is not string -%}\n                            {%- set ns_txt = namespace(s='') -%}\n                            {%- for part in tool_body -%}\n                                {%- if part is mapping and 'type' in part and part['type'] == 'text' and 'text' in part -%}\n                                    {%- set ns_txt.s = ns_txt.s + part['text'] -%}\n                                {%- endif -%}\n                            {%- endfor -%}\n                            {{- format_tool_response_block(ns_tname.name, ns_txt.s) -}}\n                            {%- for part in tool_body -%}\n                                {%- if part is mapping and 'type' in part and part['type'] in ['image', 'image_url'] -%}\n                                    {{- '<|image|>' -}}\n                                {%- elif part is mapping and 'type' in part and part['type'] in ['audio', 'input_audio'] -%}\n                                    {{- '<|audio|>' -}}\n                                {%- elif part is mapping and 'type' in part and part['type'] == 'video' -%}\n                                    {{- '<|video|>' -}}\n                                {%- endif -%}\n                            {%- endfor -%}\n                        {%- else -%}\n                            {{- format_tool_response_block(ns_tname.name, tool_body) -}}\n                        {%- endif -%}\n                        {%- set ns_tr_out.flag = true -%}\n                        {%- set ns.prev_message_type = 'tool_response' -%}\n                    {%- endif -%}\n                {%- endfor -%}\n            {%- endif -%}\n\n            {%- set captured_content -%}\n            {%- if 'content' in message and message['content'] is string -%}\n                {%- if role == 'model' -%}\n                    {{- strip_thinking(message['content']) -}}\n                {%- else -%}\n                    {{- message['content'] | trim -}}\n                {%- endif -%}\n            {%- elif 'content' in message and message['content'] is iterable and message['content'] is not string -%}\n                {%- for item in message['content'] -%}\n                    {%- if item is mapping and 'type' in item and item['type'] == 'text' and 'text' in item -%}\n                        {%- if role == 'model' -%}\n                            {{- strip_thinking(item['text']) -}}\n                        {%- else -%}\n                            {{- item['text'] | trim -}}\n                        {%- endif -%}\n                    {%- elif item is mapping and 'type' in item and item['type'] in ['image', 'image_url'] -%}\n                        {{- '<|image|>' -}}\n                    {%- elif item is mapping and 'type' in item and item['type'] in ['audio', 'input_audio'] -%}\n                        {{- '<|audio|>' -}}\n                    {%- elif item is mapping and 'type' in item and item['type'] == 'video' -%}\n                        {{- '<|video|>' -}}\n                    {%- endif -%}\n                {%- endfor -%}\n            {%- endif -%}\n            {%- endset -%}\n\n            {{- captured_content -}}\n            {%- set has_content = captured_content | trim | length > 0 -%}\n\n        {#- Forward-scan: find next non-tool message role for continuation detection -#}\n        {%- set next_nt = namespace(role=None, found=false) -%}\n        {%- for j in range(loop.index0 + 1, loop_messages | length) -%}\n            {%- if not next_nt.found -%}\n                {%- if loop_messages[j]['role'] != 'tool' -%}\n                    {%- set next_nt.role = loop_messages[j]['role'] -%}\n                    {%- set next_nt.found = true -%}\n                {%- endif -%}\n            {%- endif -%}\n        {%- endfor -%}\n\n        {%- set continues_into_next = (\n            role == 'model'\n            and next_nt.role == 'assistant'\n            and not message_has_tool_calls\n            and not ns_tr_out.flag\n        ) -%}\n\n        {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}\n            {{- '<|tool_response>' -}}\n        {%- elif continues_into_next -%}\n            {{- '\\n' -}}\n        {%- elif not (ns_tr_out.flag and not has_content) -%}\n            {{- '<turn|>\\n' -}}\n        {%- endif -%}\n\n    {#- Track previous non-tool role for next iteration (avoids O(n) backward scan) -#}\n    {%- set ns.prev_non_tool_role = message['role'] -%}\n    {%- endif -%}\n{%- endfor -%}\n\n{%- if add_generation_prompt is defined and add_generation_prompt -%}\n    {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}\n        {{- '<|turn>model\\n' -}}\n    {%- endif -%}\n\n    {%- if not enable_thinking -%}\n        {#- Suppress thinking — but not when awaiting tool responses -#}\n        {%- if ns.prev_message_type != 'tool_call' -%}\n            {{- '<|channel>thought\\n<channel|>' -}}\n        {%- endif -%}\n    {%- endif -%}\n{%- endif -%}","templateDigest":"sha256:24d32be0f96bbea1b9e1afd89e19bd4a632ab567c90555c7284be65f5e7f7609","extractionReason":"embedded-template","extractorVersion":"hugging-bay.gguf-embedded-chat-contract.v1","extractedAt":"2026-10-16T03:48:25.379Z","hasEmbeddedTemplate":true},"serve_verdict":{"can_download":true,"bytes_verified":true,"signature":"signed","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"signed"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.i1-Q4_K_S.gguf","sizeBytes":17763171968,"sha256":"5aea303055468bd0b6fe6ddc67f06844fb534494df0d0293ccb2b511b2ef05d3","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"},{"path":"gemma-4-31B-it-qat-q4_0-unquantized-uncensored-heretic.imatrix.gguf","sizeBytes":13753952,"sha256":"716b78ed2225020336ab660a80ea0165377b8912fbd17909a334dd7fa09a6a5c","format":"gguf","risk":"low","sourceKind":"external-hf","hosted":false,"readiness":"blocked","downloadReady":false,"reasonCodes":["NOT_SERVE_ELIGIBLE"],"reason":"This file is not available to download right now.","individuallyHashed":true,"fileOnly":true,"directDownloadAuthorized":false,"serveDecision":{"state":"BLOCKED","reasonCodes":["NOT_SERVE_ELIGIBLE"]},"downloadUrlResponse":{"status":302,"followRedirects":true},"downloadUrl":null,"chatTemplate":null,"serve_verdict":{"can_download":false,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"signature_state":"unsigned"}],"warnings":["This description is temporarily unavailable."],"nextActions":[{"label":"Inspect recorded bundle state","url":"https://huggingbay.xyz/api/artifacts/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/bundle","method":"GET"},{"label":"List individually hashed hosted files","url":"https://huggingbay.xyz/api/downloadable-files?artifactId=hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf&limit=100","method":"GET"},{"label":"Inspect trust bundle","url":"https://huggingbay.xyz/api/trust-bundles/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf","method":"GET"},{"label":"Open artifact","url":"https://huggingbay.xyz/artifact/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf","method":"GET"}],"docs":{"artifactUrl":"https://huggingbay.xyz/artifact/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf","downloadsUrl":"https://huggingbay.xyz/api/downloadable-files?artifactId=hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf&limit=100","bundleUrl":"https://huggingbay.xyz/api/artifacts/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf/bundle","trustBundleUrl":"https://huggingbay.xyz/api/trust-bundles/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"},"note":{"summary":"Downloadable doesn't mean tested: this record says whether the exact file can be downloaded now, not that the model is complete or that it runs.","downloadable":true},"serve_verdict":{"can_download":true,"bytes_verified":false,"signature":"unsigned","freshness":"current","checked_at":"2026-11-06T20:55:01.294Z","evidence_url":"/api/manifests/hf-model-mradermacher-gemma-4-31b-it-qat-q4-0-unquantized-uncensored-heretic-i1-gguf"}}