Instructions to use vogel61/GLM-5.3-oQ4e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vogel61/GLM-5.3-oQ4e with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("vogel61/GLM-5.3-oQ4e") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use vogel61/GLM-5.3-oQ4e with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vogel61/GLM-5.3-oQ4e"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "vogel61/GLM-5.3-oQ4e" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use vogel61/GLM-5.3-oQ4e with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "vogel61/GLM-5.3-oQ4e"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "vogel61/GLM-5.3-oQ4e" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vogel61/GLM-5.3-oQ4e", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use vogel61/GLM-5.3-oQ4e with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vogel61/GLM-5.3-oQ4e"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default vogel61/GLM-5.3-oQ4e
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use vogel61/GLM-5.3-oQ4e with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vogel61/GLM-5.3-oQ4e"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "vogel61/GLM-5.3-oQ4e" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload GLM-5.3-oQ4e via oMLX
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- README.md +18 -0
- chat_template.jinja +251 -0
- config.json +0 -0
- generation_config.json +12 -0
- model-00001-of-00079.safetensors +3 -0
- model-00002-of-00079.safetensors +3 -0
- model-00003-of-00079.safetensors +3 -0
- model-00004-of-00079.safetensors +3 -0
- model-00005-of-00079.safetensors +3 -0
- model-00006-of-00079.safetensors +3 -0
- model-00007-of-00079.safetensors +3 -0
- model-00008-of-00079.safetensors +3 -0
- model-00009-of-00079.safetensors +3 -0
- model-00010-of-00079.safetensors +3 -0
- model-00011-of-00079.safetensors +3 -0
- model-00012-of-00079.safetensors +3 -0
- model-00013-of-00079.safetensors +3 -0
- model-00014-of-00079.safetensors +3 -0
- model-00015-of-00079.safetensors +3 -0
- model-00016-of-00079.safetensors +3 -0
- model-00017-of-00079.safetensors +3 -0
- model-00018-of-00079.safetensors +3 -0
- model-00019-of-00079.safetensors +3 -0
- model-00020-of-00079.safetensors +3 -0
- model-00021-of-00079.safetensors +3 -0
- model-00022-of-00079.safetensors +3 -0
- model-00023-of-00079.safetensors +3 -0
- model-00024-of-00079.safetensors +3 -0
- model-00025-of-00079.safetensors +3 -0
- model-00026-of-00079.safetensors +3 -0
- model-00027-of-00079.safetensors +3 -0
- model-00028-of-00079.safetensors +3 -0
- model-00029-of-00079.safetensors +3 -0
- model-00030-of-00079.safetensors +3 -0
- model-00031-of-00079.safetensors +3 -0
- model-00032-of-00079.safetensors +3 -0
- model-00033-of-00079.safetensors +3 -0
- model-00034-of-00079.safetensors +3 -0
- model-00035-of-00079.safetensors +3 -0
- model-00036-of-00079.safetensors +3 -0
- model-00037-of-00079.safetensors +3 -0
- model-00038-of-00079.safetensors +3 -0
- model-00039-of-00079.safetensors +3 -0
- model-00040-of-00079.safetensors +3 -0
- model-00041-of-00079.safetensors +3 -0
- model-00042-of-00079.safetensors +3 -0
- model-00043-of-00079.safetensors +3 -0
- model-00044-of-00079.safetensors +3 -0
- model-00045-of-00079.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: mlx
|
| 3 |
+
tags:
|
| 4 |
+
- mlx
|
| 5 |
+
- oq
|
| 6 |
+
- quantized
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# GLM-5.3-oQ4e
|
| 10 |
+
|
| 11 |
+
This model was quantized using [oQ](https://github.com/jundot/omlx) (oMLX v0.6.4) mixed-precision quantization.
|
| 12 |
+
|
| 13 |
+
## Quantization details
|
| 14 |
+
|
| 15 |
+
- **Model type**: glm_moe_dsa
|
| 16 |
+
- **Bits**: 4
|
| 17 |
+
- **Group size**: 64
|
| 18 |
+
- **Format**: MLX safetensors
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[gMASK]<sop>
|
| 2 |
+
{%- set effective_reasoning_effort = reasoning_effort if reasoning_effort is defined and reasoning_effort in ['low', 'high'] else 'max' -%}
|
| 3 |
+
{%- if effective_reasoning_effort is not none -%}<|system|>Reasoning Effort: {{ effective_reasoning_effort | capitalize }}{%- endif -%}
|
| 4 |
+
{%- set clear_thinking = clear_thinking if clear_thinking is defined else false -%}
|
| 5 |
+
{%- if tools -%}
|
| 6 |
+
{%- macro tool_to_json(tool) -%}
|
| 7 |
+
{%- set ns_tool = namespace(first=true) -%}
|
| 8 |
+
{{ '{' -}}
|
| 9 |
+
{%- for k, v in tool.items() -%}
|
| 10 |
+
{%- if k != 'defer_loading' and k != 'strict' -%}
|
| 11 |
+
{%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}
|
| 12 |
+
{%- set ns_tool.first = false -%}
|
| 13 |
+
"{{ k }}": {{ v | tojson(ensure_ascii=False) }}
|
| 14 |
+
{%- endif -%}
|
| 15 |
+
{%- endfor -%}
|
| 16 |
+
{{- '}' -}}
|
| 17 |
+
{%- endmacro -%}
|
| 18 |
+
{%- macro tool_references_to_response(refs) -%}
|
| 19 |
+
{{- '<tool_response><tools>\n' -}}
|
| 20 |
+
{%- for tr in refs -%}
|
| 21 |
+
{%- for tool in tools -%}
|
| 22 |
+
{%- if 'function' in tool -%}
|
| 23 |
+
{%- set tool = tool['function'] -%}
|
| 24 |
+
{%- endif -%}
|
| 25 |
+
{%- if tool.name == tr.name -%}
|
| 26 |
+
{{- tool_to_json(tool) + '\n' -}}
|
| 27 |
+
{%- endif -%}
|
| 28 |
+
{%- endfor -%}
|
| 29 |
+
{%- endfor -%}
|
| 30 |
+
{{- '</tools></tool_response>' -}}
|
| 31 |
+
{%- endmacro -%}
|
| 32 |
+
<|system|>
|
| 33 |
+
# Tools
|
| 34 |
+
|
| 35 |
+
You may call one or more functions to assist with the user query.
|
| 36 |
+
|
| 37 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 38 |
+
<tools>
|
| 39 |
+
{% for tool in tools %}
|
| 40 |
+
{%- if 'function' in tool -%}
|
| 41 |
+
{%- set tool = tool['function'] -%}
|
| 42 |
+
{%- endif -%}
|
| 43 |
+
{% if tool.defer_loading is not defined or not tool.defer_loading %}
|
| 44 |
+
{{ tool_to_json(tool) }}
|
| 45 |
+
{% endif %}
|
| 46 |
+
{% endfor %}
|
| 47 |
+
</tools>
|
| 48 |
+
|
| 49 |
+
For each function call, output the function name and arguments within the following XML format:
|
| 50 |
+
<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 -%}
|
| 51 |
+
{%- macro visible_text(content) -%}
|
| 52 |
+
{%- if content is string -%}
|
| 53 |
+
{{- content }}
|
| 54 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 55 |
+
{%- for item in content -%}
|
| 56 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 57 |
+
{{- item.text }}
|
| 58 |
+
{%- elif item is string -%}
|
| 59 |
+
{{- item }}
|
| 60 |
+
{%- elif item is mapping and item.type in ['image', 'image_url', 'video', 'video_url', 'audio', 'audio_url', 'input_audio'] -%}
|
| 61 |
+
{%- set media_type = item.type | replace('_url', '') | replace('input_', '') -%}
|
| 62 |
+
{{- "<reminder>You are unable to process this " ~ media_type ~ " because you don't have multi-modal input ability. Try different methods.</reminder>" }}
|
| 63 |
+
{%- endif -%}
|
| 64 |
+
{%- endfor -%}
|
| 65 |
+
{%- else -%}
|
| 66 |
+
{{- content }}
|
| 67 |
+
{%- endif -%}
|
| 68 |
+
{%- endmacro -%}
|
| 69 |
+
{%- macro tool_response(text) -%}
|
| 70 |
+
{{- '<tool_response>' + text + '</tool_response>' -}}
|
| 71 |
+
{%- endmacro -%}
|
| 72 |
+
{%- macro render_tool_response(m) -%}
|
| 73 |
+
{%- if m.content is string -%}
|
| 74 |
+
{{- tool_response(m.content) -}}
|
| 75 |
+
{%- elif m.content and m.content is not mapping and m.content.0.type == "tool_reference" -%}
|
| 76 |
+
{{- tool_references_to_response(m.content) -}}
|
| 77 |
+
{%- elif is_list_of_outputs(m) -%}
|
| 78 |
+
{%- for tr in m.content -%}
|
| 79 |
+
{%- 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" -%}
|
| 80 |
+
{{- tool_references_to_response(tr.output) -}}
|
| 81 |
+
{%- else -%}
|
| 82 |
+
{{- tool_response(visible_text(tr.output)) -}}
|
| 83 |
+
{%- endif -%}
|
| 84 |
+
{%- endfor -%}
|
| 85 |
+
{%- else -%}
|
| 86 |
+
{{- tool_response(visible_text(m.content)) -}}
|
| 87 |
+
{%- endif -%}
|
| 88 |
+
{%- endmacro -%}
|
| 89 |
+
{%- macro id_of(obj) -%}
|
| 90 |
+
{%- if obj.tool_call_id -%}
|
| 91 |
+
{{- obj.tool_call_id -}}
|
| 92 |
+
{%- elif obj.id -%}
|
| 93 |
+
{{- obj.id -}}
|
| 94 |
+
{%- endif -%}
|
| 95 |
+
{%- endmacro -%}
|
| 96 |
+
{%- macro is_list_of_outputs(m) -%}
|
| 97 |
+
{%- if m.content and m.content.0.output is defined -%}1{%- endif -%}
|
| 98 |
+
{%- endmacro -%}
|
| 99 |
+
{%- macro has_dup_tool_result_id(lo, hi, target) -%}
|
| 100 |
+
{%- set ns_cnt = namespace(n=0) -%}
|
| 101 |
+
{%- for k in range(lo, hi + 1) -%}
|
| 102 |
+
{%- set m = messages[k] -%}
|
| 103 |
+
{%- if is_list_of_outputs(m) -%}
|
| 104 |
+
{%- for entry in m.content -%}
|
| 105 |
+
{%- if id_of(entry) == target -%}
|
| 106 |
+
{%- set ns_cnt.n = ns_cnt.n + 1 -%}
|
| 107 |
+
{%- endif -%}
|
| 108 |
+
{%- endfor -%}
|
| 109 |
+
{%- elif id_of(m) == target -%}
|
| 110 |
+
{%- set ns_cnt.n = ns_cnt.n + 1 -%}
|
| 111 |
+
{%- endif -%}
|
| 112 |
+
{%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}
|
| 113 |
+
{%- endfor -%}
|
| 114 |
+
{%- if ns_cnt.n > 1 -%}1{%- endif -%}
|
| 115 |
+
{%- endmacro -%}
|
| 116 |
+
{%- macro tc_id_exists(tcs, target) -%}
|
| 117 |
+
{%- set ns_f = namespace(found=false) -%}
|
| 118 |
+
{%- for tc in tcs -%}
|
| 119 |
+
{%- if id_of(tc) == target -%}
|
| 120 |
+
{%- set ns_f.found = true -%}
|
| 121 |
+
{%- break -%}
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
{%- endfor -%}
|
| 124 |
+
{%- if ns_f.found -%}1{%- endif -%}
|
| 125 |
+
{%- endmacro -%}
|
| 126 |
+
{%- set ns = namespace(last_user_index=-1) -%}
|
| 127 |
+
{%- for m in messages %}
|
| 128 |
+
{%- if m.role == 'user' %}
|
| 129 |
+
{%- set ns.last_user_index = loop.index0 -%}
|
| 130 |
+
{%- endif %}
|
| 131 |
+
{%- endfor %}
|
| 132 |
+
{%- for m in messages -%}
|
| 133 |
+
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 134 |
+
{%- elif m.role == 'assistant' -%}
|
| 135 |
+
<|assistant|>
|
| 136 |
+
{%- set content = visible_text(m.content) %}
|
| 137 |
+
{%- if m.reasoning_content is string %}
|
| 138 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 139 |
+
{%- elif '</think>' in content %}
|
| 140 |
+
{%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}
|
| 141 |
+
{%- set content = content.split('</think>')[-1] %}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}
|
| 144 |
+
{{ '<think>' + reasoning_content + '</think>'}}
|
| 145 |
+
{%- else -%}
|
| 146 |
+
{{ '<think></think>' }}
|
| 147 |
+
{%- endif -%}
|
| 148 |
+
{%- if content.strip() -%}
|
| 149 |
+
{{ content.strip() }}
|
| 150 |
+
{%- endif -%}
|
| 151 |
+
{% if m.tool_calls %}
|
| 152 |
+
{% for tc in m.tool_calls %}
|
| 153 |
+
{%- if tc.function %}
|
| 154 |
+
{%- set tc = tc.function %}
|
| 155 |
+
{%- endif %}
|
| 156 |
+
{{- '<tool_call>' + tc.name -}}
|
| 157 |
+
{% 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 %}
|
| 158 |
+
{% endif %}
|
| 159 |
+
{%- elif m.role == 'tool' -%}
|
| 160 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 161 |
+
{{- '<|observation|>' -}}
|
| 162 |
+
{%- set block_start = loop.index0 -%}
|
| 163 |
+
{%- set ns_blk = namespace(end=block_start) -%}
|
| 164 |
+
{%- for j in range(block_start, messages|length) -%}
|
| 165 |
+
{%- if messages[j].role == 'tool' -%}
|
| 166 |
+
{%- set ns_blk.end = j -%}
|
| 167 |
+
{%- else -%}
|
| 168 |
+
{%- break -%}
|
| 169 |
+
{%- endif -%}
|
| 170 |
+
{%- endfor -%}
|
| 171 |
+
{%- set ns_a = namespace(tool_calls=none) -%}
|
| 172 |
+
{%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}
|
| 173 |
+
{%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}
|
| 174 |
+
{%- endif -%}
|
| 175 |
+
{%- set ns_chk = namespace(can_sort=true) -%}
|
| 176 |
+
{%- if not ns_a.tool_calls -%}
|
| 177 |
+
{%- set ns_chk.can_sort = false -%}
|
| 178 |
+
{%- else -%}
|
| 179 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 180 |
+
{%- set m = messages[k] -%}
|
| 181 |
+
{%- if is_list_of_outputs(m) -%}
|
| 182 |
+
{%- for entry in m.content -%}
|
| 183 |
+
{%- set eid = id_of(entry) -%}
|
| 184 |
+
{%- if not eid -%}
|
| 185 |
+
{%- set ns_chk.can_sort = false -%}
|
| 186 |
+
{%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}
|
| 187 |
+
{%- set ns_chk.can_sort = false -%}
|
| 188 |
+
{%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}
|
| 189 |
+
{%- set ns_chk.can_sort = false -%}
|
| 190 |
+
{%- endif -%}
|
| 191 |
+
{%- endfor -%}
|
| 192 |
+
{%- else -%}
|
| 193 |
+
{%- set tk_id = id_of(m) -%}
|
| 194 |
+
{%- if not tk_id -%}
|
| 195 |
+
{%- set ns_chk.can_sort = false -%}
|
| 196 |
+
{%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}
|
| 197 |
+
{%- set ns_chk.can_sort = false -%}
|
| 198 |
+
{%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}
|
| 199 |
+
{%- set ns_chk.can_sort = false -%}
|
| 200 |
+
{%- endif -%}
|
| 201 |
+
{%- endif -%}
|
| 202 |
+
{%- endfor -%}
|
| 203 |
+
{%- for i in range(ns_a.tool_calls | length) -%}
|
| 204 |
+
{%- set tc_id = id_of(ns_a.tool_calls[i]) -%}
|
| 205 |
+
{%- if not tc_id -%}
|
| 206 |
+
{%- set ns_chk.can_sort = false -%}
|
| 207 |
+
{%- endif -%}
|
| 208 |
+
{%- for j in range(i + 1, ns_a.tool_calls | length) -%}
|
| 209 |
+
{%- if id_of(ns_a.tool_calls[j]) == tc_id -%}
|
| 210 |
+
{%- set ns_chk.can_sort = false -%}
|
| 211 |
+
{%- endif -%}
|
| 212 |
+
{%- endfor -%}
|
| 213 |
+
{%- endfor -%}
|
| 214 |
+
{%- endif -%}
|
| 215 |
+
{%- if ns_chk.can_sort -%}
|
| 216 |
+
{%- for tc in ns_a.tool_calls -%}
|
| 217 |
+
{%- set tc_id = id_of(tc) -%}
|
| 218 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 219 |
+
{%- set m = messages[k] -%}
|
| 220 |
+
{%- if is_list_of_outputs(m) -%}
|
| 221 |
+
{%- for entry in m.content -%}
|
| 222 |
+
{%- set eid = id_of(entry) -%}
|
| 223 |
+
{%- if eid == tc_id -%}
|
| 224 |
+
{%- 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" -%}
|
| 225 |
+
{{- tool_references_to_response(entry.output) -}}
|
| 226 |
+
{%- else -%}
|
| 227 |
+
{{- tool_response(visible_text(entry.output)) -}}
|
| 228 |
+
{%- endif -%}
|
| 229 |
+
{%- endif -%}
|
| 230 |
+
{%- endfor -%}
|
| 231 |
+
{%- else -%}
|
| 232 |
+
{%- set tk_id = id_of(m) -%}
|
| 233 |
+
{%- if tk_id == tc_id -%}
|
| 234 |
+
{{- render_tool_response(m) -}}
|
| 235 |
+
{%- endif -%}
|
| 236 |
+
{%- endif -%}
|
| 237 |
+
{%- endfor -%}
|
| 238 |
+
{%- endfor -%}
|
| 239 |
+
{%- else -%}
|
| 240 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 241 |
+
{{- render_tool_response(messages[k]) -}}
|
| 242 |
+
{%- endfor -%}
|
| 243 |
+
{%- endif -%}
|
| 244 |
+
{% endif -%}
|
| 245 |
+
{%- elif m.role == 'system' -%}
|
| 246 |
+
<|system|>{{ visible_text(m.content) }}
|
| 247 |
+
{%- endif -%}
|
| 248 |
+
{%- endfor -%}
|
| 249 |
+
{%- if add_generation_prompt -%}
|
| 250 |
+
<|assistant|>{{- '<think>' -}}
|
| 251 |
+
{%- endif -%}
|
config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
154820,
|
| 5 |
+
154827,
|
| 6 |
+
154829
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 154820,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"top_p": 0.95,
|
| 11 |
+
"transformers_version": "5.12.0"
|
| 12 |
+
}
|
model-00001-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5705a7cbf95a2bbc5c536df67aaaacff4e90137852e385f94259cf2d9796fb28
|
| 3 |
+
size 5063664250
|
model-00002-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d82d83400416a969c86462f27b1f3ba577d6799e594cd0f484a2885196cf859d
|
| 3 |
+
size 5012327303
|
model-00003-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40c6e1524204a642da07eafaae8b1eb272be92a80877044cb41f3da84e81dd35
|
| 3 |
+
size 5052995913
|
model-00004-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:504dbc5f7524bf8116d32d16b7a4a99620d98957f2bbe6e4181096495fbe50e7
|
| 3 |
+
size 5389034624
|
model-00005-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:601170584b77c6392d113f0e7c4b05bb73c4241383a1561337fa34e3dc612202
|
| 3 |
+
size 5451417068
|
model-00006-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffeeb1e167f91e4af4214387702c8fb1878272478f4cbf3931e0c8fdaf88a01e
|
| 3 |
+
size 5451417038
|
model-00007-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a02d53dd0df4b9008c00733ced63cbcd299db9d36e1777cedaee18a69aeb197b
|
| 3 |
+
size 5451417066
|
model-00008-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e792799494ba71df1c4a3b736b1c5c6e96ab94cdec3f6457ba9d6193b68bc6f4
|
| 3 |
+
size 5451417068
|
model-00009-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07a1f424f62e43a76f067b7347ba2c446c9eebd7558bf6527a890d61b99af30d
|
| 3 |
+
size 5451417070
|
model-00010-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0ab87acc6f5cf018d9c45e0da43aeb910ba9789700ac2dbbdc604b3fc9b1699
|
| 3 |
+
size 5451417066
|
model-00011-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecb7d79d7cefe39809e899a38d2407b84f63a78f672d638eccb78bf9ed099a98
|
| 3 |
+
size 5451417055
|
model-00012-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5fd2d3509b009c3ff8000296accbeea720829f2b83c3028a0e3a66842ca3935
|
| 3 |
+
size 5451417080
|
model-00013-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e78bfa1cb6266abb95d636dba0bfbec1f6abefcd5ddfd622ebd7ad90377b66a3
|
| 3 |
+
size 5451417082
|
model-00014-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23d85d764e390f257e904c72b566ceae28b01ef0a3a30462fb6cf7b7684dc372
|
| 3 |
+
size 5451417078
|
model-00015-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07f8a3a1ce6b263305bfc7516693a4fb6a74cc48d5932c3b6427c6190c773e9c
|
| 3 |
+
size 5451417078
|
model-00016-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d09b8da1ac04ac96b5d42db3ce16fa3cfd5004c3e5c10da0a08716d5b41745e
|
| 3 |
+
size 5451417078
|
model-00017-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:895df843a25bfaf4e07aa7cd34273b5239e2ce15b42cb8c6c51cb070f58bb8a2
|
| 3 |
+
size 5451417080
|
model-00018-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6359a5f11ade82b568a9af08aeeff8678171d5aca37dc319767a9c2cd9367378
|
| 3 |
+
size 5451417080
|
model-00019-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4481f881e4ae0e7bb053c6740826cbec92cacc7285b6dcacc0cd84b7979b12b
|
| 3 |
+
size 5451417082
|
model-00020-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3012e42cac8068c1a7e4948f06b686e19e488886b1579d1a2bfbc9d8a36c519
|
| 3 |
+
size 5451417068
|
model-00021-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed098adb6fcaa250d95bd3121d530f3b3590f485a5458a0483091f57dde1512d
|
| 3 |
+
size 5451417082
|
model-00022-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e81693802cc9114bb1676b5c0c7e03178bda36b6dc1f8bf4536cc427f6aa465e
|
| 3 |
+
size 5451417080
|
model-00023-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:209dcdc167211289fd87205cb3110c9078a1057ab0c50c1b1ca06aed7f837c7e
|
| 3 |
+
size 5451417066
|
model-00024-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a24542790575635775884d2b23000bcb2f90d184ef8f49bcf151af172fc74f7b
|
| 3 |
+
size 5451417078
|
model-00025-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d30d18d7ef75fd2142b5a4d489cb13dfda3e444ec9f38427c999033435fb7fe6
|
| 3 |
+
size 5451417078
|
model-00026-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fe216b9c6e4ae71c7769f8a0b7f3c56a5278f7e0085403fe434e668d106a943
|
| 3 |
+
size 5451417076
|
model-00027-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6df5340ce0849670970d2a46cfd1ddc0c7d3095b4429c7016a6e9d49bea39f6
|
| 3 |
+
size 5451417080
|
model-00028-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fae1277b134ccc9cffcdebb2e6e30d81e074e00aa955aba39e8f86a3bad6b0e3
|
| 3 |
+
size 5451417080
|
model-00029-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4502aaf35dea2c6fd72e96957d31d9697ce56b35adb30b1a093371cc1ac61057
|
| 3 |
+
size 5451417080
|
model-00030-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d381cf1d71fd528f82b0683772e087e78237f1cb91c9b4d5b8e9cfec812c0b9
|
| 3 |
+
size 5451417080
|
model-00031-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d11644c715795189c6b633c0900edfd9f44013cbca1f0cfab38b825fd3282d46
|
| 3 |
+
size 5451417082
|
model-00032-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a2101d02c9826e9a246baa8c789d5637e852a21fe9f4d5396178ec73a05fdc7
|
| 3 |
+
size 5451417080
|
model-00033-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5de4b2cd58e8411efd27f3b6ba5a1a805b3a3b6e9748fb85e4f6c850da703f8b
|
| 3 |
+
size 5451417064
|
model-00034-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a9e75627f4450a3d4ed0b3ac63e68806b3486b598a5141fa1743be11c1b4716
|
| 3 |
+
size 5451417080
|
model-00035-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7007eb2a25a071df79a65b2eaa59878507ab6d80ddd599971109321a879c59d7
|
| 3 |
+
size 5451417070
|
model-00036-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbf4e52e0f24080fa3f7a10f22e851d0d18c172ff1a076f164aa085d1ebf6a15
|
| 3 |
+
size 5451417072
|
model-00037-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da77679486bb6f7c83ed2b99948b92246d261afbf8b32184789bafd7ae884a52
|
| 3 |
+
size 5451417082
|
model-00038-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:677131274cea30170d0b390167ba0fd6bc7983229ded8ce4158711a38f853ede
|
| 3 |
+
size 5451417066
|
model-00039-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:380ff052ac984b3a14529c3c30d2dbab8e513083f57c704a7839b3ae068aaf5c
|
| 3 |
+
size 5451417068
|
model-00040-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b099b71796f744cfe2b04c842649c32e74a8a6b2547658d8be189ebfd3c9fb1
|
| 3 |
+
size 5451417072
|
model-00041-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a5f2d76e692ff571d68ded2cb36f9a026c72f6d9bce3c854bf567ce9fb08306
|
| 3 |
+
size 5451417078
|
model-00042-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ce6af0abaf81f91594aee2048f874f5e3730f605ef3bdb9d319c0c602b5f2d0
|
| 3 |
+
size 5451417048
|
model-00043-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3030b9401d20441e0467aa0c27cd5a624f80648956e7bb2ef5a7d13ee8e5f9e2
|
| 3 |
+
size 5451417080
|
model-00044-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:769ea9e828fa56278d1965b2389c954d1aaf90164cb0febbe61b60691f63cb08
|
| 3 |
+
size 5451417062
|
model-00045-of-00079.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:935411825e55743421e858634823d0edf86010bbdc73273062621dda24adcbba
|
| 3 |
+
size 5451417066
|