Image-Text-to-Text
MLX
Safetensors
English
Chinese
glm5_next
gbx-lm
apple-silicon
expert-paging
mixture-of-experts
multimodal
conversational
4-bit precision
Instructions to use GreenBitAI/GLM-5.3-Flash-4bit-paged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("GreenBitAI/GLM-5.3-Flash-4bit-paged") config = load_config("GreenBitAI/GLM-5.3-Flash-4bit-paged") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/GLM-5.3-Flash-4bit-paged"
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": "GreenBitAI/GLM-5.3-Flash-4bit-paged" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged 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 "GreenBitAI/GLM-5.3-Flash-4bit-paged"
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 GreenBitAI/GLM-5.3-Flash-4bit-paged
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use GreenBitAI/GLM-5.3-Flash-4bit-paged with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "GreenBitAI/GLM-5.3-Flash-4bit-paged"
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 "GreenBitAI/GLM-5.3-Flash-4bit-paged" \ --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 folder using huggingface_hub
Browse files- .gitattributes +3 -34
- README.md +46 -0
- chat_template.jinja +257 -0
- config.json +1067 -0
- experts.bin +3 -0
- experts_index.json +180 -0
- generation_config.json +12 -0
- model.safetensors +3 -0
- model.safetensors.index.json +0 -0
- processor_config.json +44 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,4 @@
|
|
| 1 |
-
*.
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz 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
|
|
|
|
| 1 |
+
*.rows filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 2 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- zh
|
| 5 |
+
license: mit
|
| 6 |
+
base_model: pipenetwork/GLM-5.3-Flash-MLX-4bit
|
| 7 |
+
library_name: gbx-lm
|
| 8 |
+
pipeline_tag: image-text-to-text
|
| 9 |
+
tags:
|
| 10 |
+
- mlx
|
| 11 |
+
- apple-silicon
|
| 12 |
+
- expert-paging
|
| 13 |
+
- mixture-of-experts
|
| 14 |
+
- multimodal
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# GLM-5.3-Flash-4bit-paged
|
| 18 |
+
|
| 19 |
+
Expert-paged build of `pipenetwork/GLM-5.3-Flash-MLX-4bit`. The weights that are read a fraction at a time
|
| 20 |
+
live in their own containers, so a machine loads what it needs rather than all
|
| 21 |
+
of it.
|
| 22 |
+
|
| 23 |
+
| file | size | holds |
|
| 24 |
+
| --- | --- | --- |
|
| 25 |
+
| `model.safetensors` | 5.89 GiB | resident weights |
|
| 26 |
+
| `experts.bin` | 159.47 GiB | routed experts |
|
| 27 |
+
|
| 28 |
+
Total 165.37 GiB — the same as the source. The bytes moved, they were not copied.
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
from gbx_lm.utils import load
|
| 32 |
+
model, tokenizer = load("GreenBitAI/GLM-5.3-Flash-4bit-paged")
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
Where the weights fit they are filled from `experts.bin` and the model runs the
|
| 36 |
+
stock path at stock speed; where they do not, they stream from disk. Reading
|
| 37 |
+
the machine decides that, not a flag.
|
| 38 |
+
|
| 39 |
+
To override that: `GBX_PAGING=off` holds the experts resident.
|
| 40 |
+
|
| 41 |
+
Checked at build time, while the source checkpoint was still there to compare against:
|
| 42 |
+
|
| 43 |
+
- **SKIP** bit-identical logits — cannot hold a resident reference: 165.4 GiB checkpoint needs ~198.4 GiB resident, 181.8 GiB usable
|
| 44 |
+
- **PASS** layer-wise vs resident — 42 layers x 2 draws exact, 60.93 GiB peak for this gate
|
| 45 |
+
|
| 46 |
+
Quantization, tokenizer, chat template and licence are unchanged from `pipenetwork/GLM-5.3-Flash-MLX-4bit`.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
| 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 emit_image() -%}<|begin_of_image|><|image|><|end_of_image|>{%- endmacro -%}
|
| 52 |
+
{%- macro emit_video() -%}<|begin_of_video|><|video|><|end_of_video|>{%- endmacro -%}
|
| 53 |
+
{%- macro emit_audio() -%}<|begin_of_audio|><|end_of_audio|>{%- endmacro -%}
|
| 54 |
+
{%- macro visible_text(content) -%}
|
| 55 |
+
{%- if content is string -%}
|
| 56 |
+
{{- content -}}
|
| 57 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 58 |
+
{%- for item in content -%}
|
| 59 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 60 |
+
{{- item.text -}}
|
| 61 |
+
{%- elif item is string -%}
|
| 62 |
+
{{- item -}}
|
| 63 |
+
{%- elif item is mapping and item.type in ['image', 'image_url'] -%}
|
| 64 |
+
{{- emit_image() -}}
|
| 65 |
+
{%- elif item is mapping and item.type in ['video', 'video_url'] -%}
|
| 66 |
+
{{- emit_video() -}}
|
| 67 |
+
{%- elif item is mapping and item.type in ['audio', 'audio_url', 'input_audio'] -%}
|
| 68 |
+
{{- emit_audio() -}}
|
| 69 |
+
{%- endif -%}
|
| 70 |
+
{%- endfor -%}
|
| 71 |
+
{%- else -%}
|
| 72 |
+
{{- content }}
|
| 73 |
+
{%- endif -%}
|
| 74 |
+
{%- endmacro -%}
|
| 75 |
+
{%- macro tool_response(text) -%}
|
| 76 |
+
{{- '<tool_response>' + text + '</tool_response>' -}}
|
| 77 |
+
{%- endmacro -%}
|
| 78 |
+
{%- macro render_tool_response(m) -%}
|
| 79 |
+
{%- if m.content is string -%}
|
| 80 |
+
{{- tool_response(m.content) -}}
|
| 81 |
+
{%- elif m.content and m.content is not mapping and m.content.0.type == "tool_reference" -%}
|
| 82 |
+
{{- tool_references_to_response(m.content) -}}
|
| 83 |
+
{%- elif is_list_of_outputs(m) -%}
|
| 84 |
+
{%- for tr in m.content -%}
|
| 85 |
+
{%- 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" -%}
|
| 86 |
+
{{- tool_references_to_response(tr.output) -}}
|
| 87 |
+
{%- else -%}
|
| 88 |
+
{{- tool_response(visible_text(tr.output)) -}}
|
| 89 |
+
{%- endif -%}
|
| 90 |
+
{%- endfor -%}
|
| 91 |
+
{%- else -%}
|
| 92 |
+
{{- tool_response(visible_text(m.content)) -}}
|
| 93 |
+
{%- endif -%}
|
| 94 |
+
{%- endmacro -%}
|
| 95 |
+
{%- macro id_of(obj) -%}
|
| 96 |
+
{%- if obj.tool_call_id -%}
|
| 97 |
+
{{- obj.tool_call_id -}}
|
| 98 |
+
{%- elif obj.id -%}
|
| 99 |
+
{{- obj.id -}}
|
| 100 |
+
{%- endif -%}
|
| 101 |
+
{%- endmacro -%}
|
| 102 |
+
{%- macro is_list_of_outputs(m) -%}
|
| 103 |
+
{%- if m.content and m.content.0.output is defined -%}1{%- endif -%}
|
| 104 |
+
{%- endmacro -%}
|
| 105 |
+
{%- macro has_dup_tool_result_id(lo, hi, target) -%}
|
| 106 |
+
{%- set ns_cnt = namespace(n=0) -%}
|
| 107 |
+
{%- for k in range(lo, hi + 1) -%}
|
| 108 |
+
{%- set m = messages[k] -%}
|
| 109 |
+
{%- if is_list_of_outputs(m) -%}
|
| 110 |
+
{%- for entry in m.content -%}
|
| 111 |
+
{%- if id_of(entry) == target -%}
|
| 112 |
+
{%- set ns_cnt.n = ns_cnt.n + 1 -%}
|
| 113 |
+
{%- endif -%}
|
| 114 |
+
{%- endfor -%}
|
| 115 |
+
{%- elif id_of(m) == target -%}
|
| 116 |
+
{%- set ns_cnt.n = ns_cnt.n + 1 -%}
|
| 117 |
+
{%- endif -%}
|
| 118 |
+
{%- if ns_cnt.n > 1 -%}{%- break -%}{%- endif -%}
|
| 119 |
+
{%- endfor -%}
|
| 120 |
+
{%- if ns_cnt.n > 1 -%}1{%- endif -%}
|
| 121 |
+
{%- endmacro -%}
|
| 122 |
+
{%- macro tc_id_exists(tcs, target) -%}
|
| 123 |
+
{%- set ns_f = namespace(found=false) -%}
|
| 124 |
+
{%- for tc in tcs -%}
|
| 125 |
+
{%- if id_of(tc) == target -%}
|
| 126 |
+
{%- set ns_f.found = true -%}
|
| 127 |
+
{%- break -%}
|
| 128 |
+
{%- endif -%}
|
| 129 |
+
{%- endfor -%}
|
| 130 |
+
{%- if ns_f.found -%}1{%- endif -%}
|
| 131 |
+
{%- endmacro -%}
|
| 132 |
+
{%- set ns = namespace(last_user_index=-1) -%}
|
| 133 |
+
{%- for m in messages %}
|
| 134 |
+
{%- if m.role == 'user' %}
|
| 135 |
+
{%- set ns.last_user_index = loop.index0 -%}
|
| 136 |
+
{%- endif %}
|
| 137 |
+
{%- endfor %}
|
| 138 |
+
{%- for m in messages -%}
|
| 139 |
+
{%- if m.role == 'user' -%}<|user|>{{ visible_text(m.content) }}
|
| 140 |
+
{%- elif m.role == 'assistant' -%}
|
| 141 |
+
<|assistant|>
|
| 142 |
+
{%- set content = visible_text(m.content) %}
|
| 143 |
+
{%- if m.reasoning_content is string %}
|
| 144 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 145 |
+
{%- elif '</think>' in content %}
|
| 146 |
+
{%- set reasoning_content = content.split('</think>')[0].split('<think>')[-1] %}
|
| 147 |
+
{%- set content = content.split('</think>')[-1] %}
|
| 148 |
+
{%- endif %}
|
| 149 |
+
{%- if (not clear_thinking or loop.index0 > ns.last_user_index) and reasoning_content is defined -%}
|
| 150 |
+
{{ '<think>' + reasoning_content + '</think>'}}
|
| 151 |
+
{%- else -%}
|
| 152 |
+
{{ '<think></think>' }}
|
| 153 |
+
{%- endif -%}
|
| 154 |
+
{%- if content.strip() -%}
|
| 155 |
+
{{ content.strip() }}
|
| 156 |
+
{%- endif -%}
|
| 157 |
+
{% if m.tool_calls %}
|
| 158 |
+
{% for tc in m.tool_calls %}
|
| 159 |
+
{%- if tc.function %}
|
| 160 |
+
{%- set tc = tc.function %}
|
| 161 |
+
{%- endif %}
|
| 162 |
+
{{- '<tool_call>' + tc.name -}}
|
| 163 |
+
{% 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 %}
|
| 164 |
+
{% endif %}
|
| 165 |
+
{%- elif m.role == 'tool' -%}
|
| 166 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 167 |
+
{{- '<|observation|>' -}}
|
| 168 |
+
{%- set block_start = loop.index0 -%}
|
| 169 |
+
{%- set ns_blk = namespace(end=block_start) -%}
|
| 170 |
+
{%- for j in range(block_start, messages|length) -%}
|
| 171 |
+
{%- if messages[j].role == 'tool' -%}
|
| 172 |
+
{%- set ns_blk.end = j -%}
|
| 173 |
+
{%- else -%}
|
| 174 |
+
{%- break -%}
|
| 175 |
+
{%- endif -%}
|
| 176 |
+
{%- endfor -%}
|
| 177 |
+
{%- set ns_a = namespace(tool_calls=none) -%}
|
| 178 |
+
{%- if block_start > 0 and messages[block_start - 1].role == 'assistant' and messages[block_start - 1].tool_calls -%}
|
| 179 |
+
{%- set ns_a.tool_calls = messages[block_start - 1].tool_calls -%}
|
| 180 |
+
{%- endif -%}
|
| 181 |
+
{%- set ns_chk = namespace(can_sort=true) -%}
|
| 182 |
+
{%- if not ns_a.tool_calls -%}
|
| 183 |
+
{%- set ns_chk.can_sort = false -%}
|
| 184 |
+
{%- else -%}
|
| 185 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 186 |
+
{%- set m = messages[k] -%}
|
| 187 |
+
{%- if is_list_of_outputs(m) -%}
|
| 188 |
+
{%- for entry in m.content -%}
|
| 189 |
+
{%- set eid = id_of(entry) -%}
|
| 190 |
+
{%- if not eid -%}
|
| 191 |
+
{%- set ns_chk.can_sort = false -%}
|
| 192 |
+
{%- elif has_dup_tool_result_id(block_start, ns_blk.end, eid) -%}
|
| 193 |
+
{%- set ns_chk.can_sort = false -%}
|
| 194 |
+
{%- elif not tc_id_exists(ns_a.tool_calls, eid) -%}
|
| 195 |
+
{%- set ns_chk.can_sort = false -%}
|
| 196 |
+
{%- endif -%}
|
| 197 |
+
{%- endfor -%}
|
| 198 |
+
{%- else -%}
|
| 199 |
+
{%- set tk_id = id_of(m) -%}
|
| 200 |
+
{%- if not tk_id -%}
|
| 201 |
+
{%- set ns_chk.can_sort = false -%}
|
| 202 |
+
{%- elif has_dup_tool_result_id(block_start, ns_blk.end, tk_id) -%}
|
| 203 |
+
{%- set ns_chk.can_sort = false -%}
|
| 204 |
+
{%- elif not tc_id_exists(ns_a.tool_calls, tk_id) -%}
|
| 205 |
+
{%- set ns_chk.can_sort = false -%}
|
| 206 |
+
{%- endif -%}
|
| 207 |
+
{%- endif -%}
|
| 208 |
+
{%- endfor -%}
|
| 209 |
+
{%- for i in range(ns_a.tool_calls | length) -%}
|
| 210 |
+
{%- set tc_id = id_of(ns_a.tool_calls[i]) -%}
|
| 211 |
+
{%- if not tc_id -%}
|
| 212 |
+
{%- set ns_chk.can_sort = false -%}
|
| 213 |
+
{%- endif -%}
|
| 214 |
+
{%- for j in range(i + 1, ns_a.tool_calls | length) -%}
|
| 215 |
+
{%- if id_of(ns_a.tool_calls[j]) == tc_id -%}
|
| 216 |
+
{%- set ns_chk.can_sort = false -%}
|
| 217 |
+
{%- endif -%}
|
| 218 |
+
{%- endfor -%}
|
| 219 |
+
{%- endfor -%}
|
| 220 |
+
{%- endif -%}
|
| 221 |
+
{%- if ns_chk.can_sort -%}
|
| 222 |
+
{%- for tc in ns_a.tool_calls -%}
|
| 223 |
+
{%- set tc_id = id_of(tc) -%}
|
| 224 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 225 |
+
{%- set m = messages[k] -%}
|
| 226 |
+
{%- if is_list_of_outputs(m) -%}
|
| 227 |
+
{%- for entry in m.content -%}
|
| 228 |
+
{%- set eid = id_of(entry) -%}
|
| 229 |
+
{%- if eid == tc_id -%}
|
| 230 |
+
{%- 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" -%}
|
| 231 |
+
{{- tool_references_to_response(entry.output) -}}
|
| 232 |
+
{%- else -%}
|
| 233 |
+
{{- tool_response(visible_text(entry.output)) -}}
|
| 234 |
+
{%- endif -%}
|
| 235 |
+
{%- endif -%}
|
| 236 |
+
{%- endfor -%}
|
| 237 |
+
{%- else -%}
|
| 238 |
+
{%- set tk_id = id_of(m) -%}
|
| 239 |
+
{%- if tk_id == tc_id -%}
|
| 240 |
+
{{- render_tool_response(m) -}}
|
| 241 |
+
{%- endif -%}
|
| 242 |
+
{%- endif -%}
|
| 243 |
+
{%- endfor -%}
|
| 244 |
+
{%- endfor -%}
|
| 245 |
+
{%- else -%}
|
| 246 |
+
{%- for k in range(block_start, ns_blk.end + 1) -%}
|
| 247 |
+
{{- render_tool_response(messages[k]) -}}
|
| 248 |
+
{%- endfor -%}
|
| 249 |
+
{%- endif -%}
|
| 250 |
+
{% endif -%}
|
| 251 |
+
{%- elif m.role == 'system' -%}
|
| 252 |
+
<|system|>{{ visible_text(m.content) }}
|
| 253 |
+
{%- endif -%}
|
| 254 |
+
{%- endfor -%}
|
| 255 |
+
{%- if add_generation_prompt -%}
|
| 256 |
+
<|assistant|>{{- '<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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Glm5NextForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"text_config": {
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": [
|
| 10 |
+
154820,
|
| 11 |
+
154827,
|
| 12 |
+
154829
|
| 13 |
+
],
|
| 14 |
+
"first_k_dense_replace": 3,
|
| 15 |
+
"hc_eps": 1e-06,
|
| 16 |
+
"hc_mult": 4,
|
| 17 |
+
"hc_sinkhorn_iters": 20,
|
| 18 |
+
"head_dim": 0,
|
| 19 |
+
"hidden_act": "silu",
|
| 20 |
+
"hidden_size": 4096,
|
| 21 |
+
"index_head_dim": 128,
|
| 22 |
+
"index_kpool": 4,
|
| 23 |
+
"index_kpool_always_select_tail": true,
|
| 24 |
+
"index_kpool_compress": true,
|
| 25 |
+
"index_n_heads": 32,
|
| 26 |
+
"index_topk": 2048,
|
| 27 |
+
"index_share_for_mtp_iteration": true,
|
| 28 |
+
"indexer_rope_interleave": true,
|
| 29 |
+
"indexer_types": [
|
| 30 |
+
"full",
|
| 31 |
+
"full",
|
| 32 |
+
"full",
|
| 33 |
+
"full",
|
| 34 |
+
"full",
|
| 35 |
+
"full",
|
| 36 |
+
"full",
|
| 37 |
+
"full",
|
| 38 |
+
"full",
|
| 39 |
+
"full",
|
| 40 |
+
"full",
|
| 41 |
+
"full",
|
| 42 |
+
"full",
|
| 43 |
+
"full",
|
| 44 |
+
"full",
|
| 45 |
+
"full",
|
| 46 |
+
"full",
|
| 47 |
+
"full",
|
| 48 |
+
"full",
|
| 49 |
+
"full",
|
| 50 |
+
"full",
|
| 51 |
+
"full",
|
| 52 |
+
"full",
|
| 53 |
+
"full",
|
| 54 |
+
"full",
|
| 55 |
+
"full",
|
| 56 |
+
"full",
|
| 57 |
+
"full",
|
| 58 |
+
"full",
|
| 59 |
+
"full",
|
| 60 |
+
"full",
|
| 61 |
+
"full",
|
| 62 |
+
"full",
|
| 63 |
+
"full",
|
| 64 |
+
"full",
|
| 65 |
+
"full",
|
| 66 |
+
"full",
|
| 67 |
+
"full",
|
| 68 |
+
"full",
|
| 69 |
+
"full",
|
| 70 |
+
"full",
|
| 71 |
+
"full",
|
| 72 |
+
"full",
|
| 73 |
+
"full",
|
| 74 |
+
"full"
|
| 75 |
+
],
|
| 76 |
+
"initializer_range": 0.02,
|
| 77 |
+
"intermediate_size": 12288,
|
| 78 |
+
"kv_lora_rank": 512,
|
| 79 |
+
"layer_types": [
|
| 80 |
+
"linear_attention",
|
| 81 |
+
"linear_attention",
|
| 82 |
+
"linear_attention",
|
| 83 |
+
"deepseek_sparse_attention",
|
| 84 |
+
"linear_attention",
|
| 85 |
+
"linear_attention",
|
| 86 |
+
"linear_attention",
|
| 87 |
+
"deepseek_sparse_attention",
|
| 88 |
+
"linear_attention",
|
| 89 |
+
"linear_attention",
|
| 90 |
+
"linear_attention",
|
| 91 |
+
"deepseek_sparse_attention",
|
| 92 |
+
"linear_attention",
|
| 93 |
+
"linear_attention",
|
| 94 |
+
"linear_attention",
|
| 95 |
+
"deepseek_sparse_attention",
|
| 96 |
+
"linear_attention",
|
| 97 |
+
"linear_attention",
|
| 98 |
+
"linear_attention",
|
| 99 |
+
"deepseek_sparse_attention",
|
| 100 |
+
"linear_attention",
|
| 101 |
+
"linear_attention",
|
| 102 |
+
"linear_attention",
|
| 103 |
+
"deepseek_sparse_attention",
|
| 104 |
+
"linear_attention",
|
| 105 |
+
"linear_attention",
|
| 106 |
+
"linear_attention",
|
| 107 |
+
"deepseek_sparse_attention",
|
| 108 |
+
"linear_attention",
|
| 109 |
+
"linear_attention",
|
| 110 |
+
"linear_attention",
|
| 111 |
+
"deepseek_sparse_attention",
|
| 112 |
+
"linear_attention",
|
| 113 |
+
"linear_attention",
|
| 114 |
+
"linear_attention",
|
| 115 |
+
"deepseek_sparse_attention",
|
| 116 |
+
"linear_attention",
|
| 117 |
+
"linear_attention",
|
| 118 |
+
"linear_attention",
|
| 119 |
+
"deepseek_sparse_attention",
|
| 120 |
+
"linear_attention",
|
| 121 |
+
"linear_attention",
|
| 122 |
+
"linear_attention",
|
| 123 |
+
"deepseek_sparse_attention",
|
| 124 |
+
"linear_attention"
|
| 125 |
+
],
|
| 126 |
+
"linear_attn_config": {
|
| 127 |
+
"num_heads": 64,
|
| 128 |
+
"gate_lower_bound": -5.0,
|
| 129 |
+
"head_dim": 128,
|
| 130 |
+
"short_conv_kernel_size": 4,
|
| 131 |
+
"kda_layers": [
|
| 132 |
+
0,
|
| 133 |
+
1,
|
| 134 |
+
2,
|
| 135 |
+
4,
|
| 136 |
+
5,
|
| 137 |
+
6,
|
| 138 |
+
8,
|
| 139 |
+
9,
|
| 140 |
+
10,
|
| 141 |
+
12,
|
| 142 |
+
13,
|
| 143 |
+
14,
|
| 144 |
+
16,
|
| 145 |
+
17,
|
| 146 |
+
18,
|
| 147 |
+
20,
|
| 148 |
+
21,
|
| 149 |
+
22,
|
| 150 |
+
24,
|
| 151 |
+
25,
|
| 152 |
+
26,
|
| 153 |
+
28,
|
| 154 |
+
29,
|
| 155 |
+
30,
|
| 156 |
+
32,
|
| 157 |
+
33,
|
| 158 |
+
34,
|
| 159 |
+
36,
|
| 160 |
+
37,
|
| 161 |
+
38,
|
| 162 |
+
40,
|
| 163 |
+
41,
|
| 164 |
+
42,
|
| 165 |
+
44
|
| 166 |
+
],
|
| 167 |
+
"full_attn_layers": [
|
| 168 |
+
3,
|
| 169 |
+
7,
|
| 170 |
+
11,
|
| 171 |
+
15,
|
| 172 |
+
19,
|
| 173 |
+
23,
|
| 174 |
+
27,
|
| 175 |
+
31,
|
| 176 |
+
35,
|
| 177 |
+
39,
|
| 178 |
+
43
|
| 179 |
+
]
|
| 180 |
+
},
|
| 181 |
+
"max_position_embeddings": 1048576,
|
| 182 |
+
"mhc": true,
|
| 183 |
+
"mla_use_nope": true,
|
| 184 |
+
"mlp_layer_types": [
|
| 185 |
+
"dense",
|
| 186 |
+
"dense",
|
| 187 |
+
"dense",
|
| 188 |
+
"sparse",
|
| 189 |
+
"sparse",
|
| 190 |
+
"sparse",
|
| 191 |
+
"sparse",
|
| 192 |
+
"sparse",
|
| 193 |
+
"sparse",
|
| 194 |
+
"sparse",
|
| 195 |
+
"sparse",
|
| 196 |
+
"sparse",
|
| 197 |
+
"sparse",
|
| 198 |
+
"sparse",
|
| 199 |
+
"sparse",
|
| 200 |
+
"sparse",
|
| 201 |
+
"sparse",
|
| 202 |
+
"sparse",
|
| 203 |
+
"sparse",
|
| 204 |
+
"sparse",
|
| 205 |
+
"sparse",
|
| 206 |
+
"sparse",
|
| 207 |
+
"sparse",
|
| 208 |
+
"sparse",
|
| 209 |
+
"sparse",
|
| 210 |
+
"sparse",
|
| 211 |
+
"sparse",
|
| 212 |
+
"sparse",
|
| 213 |
+
"sparse",
|
| 214 |
+
"sparse",
|
| 215 |
+
"sparse",
|
| 216 |
+
"sparse",
|
| 217 |
+
"sparse",
|
| 218 |
+
"sparse",
|
| 219 |
+
"sparse",
|
| 220 |
+
"sparse",
|
| 221 |
+
"sparse",
|
| 222 |
+
"sparse",
|
| 223 |
+
"sparse",
|
| 224 |
+
"sparse",
|
| 225 |
+
"sparse",
|
| 226 |
+
"sparse",
|
| 227 |
+
"sparse",
|
| 228 |
+
"sparse",
|
| 229 |
+
"sparse"
|
| 230 |
+
],
|
| 231 |
+
"model_type": "glm5_next_text",
|
| 232 |
+
"moe_intermediate_size": 2048,
|
| 233 |
+
"moe_router_dtype": "float32",
|
| 234 |
+
"n_group": 1,
|
| 235 |
+
"n_routed_experts": 288,
|
| 236 |
+
"n_shared_experts": 1,
|
| 237 |
+
"norm_topk_prob": true,
|
| 238 |
+
"num_attention_heads": 64,
|
| 239 |
+
"num_experts_per_tok": 8,
|
| 240 |
+
"num_hidden_layers": 45,
|
| 241 |
+
"num_key_value_heads": 64,
|
| 242 |
+
"num_nextn_predict_layers": 1,
|
| 243 |
+
"output_router_logits": false,
|
| 244 |
+
"pad_token_id": 154820,
|
| 245 |
+
"q_lora_rank": 1536,
|
| 246 |
+
"qk_head_dim": 256,
|
| 247 |
+
"qk_nope_head_dim": 256,
|
| 248 |
+
"qk_rope_head_dim": 0,
|
| 249 |
+
"rms_norm_eps": 1e-05,
|
| 250 |
+
"routed_scaling_factor": 2.5,
|
| 251 |
+
"router_aux_loss_coef": 0.001,
|
| 252 |
+
"scoring_func": "sigmoid",
|
| 253 |
+
"swiglu_limit": 10.0,
|
| 254 |
+
"tie_word_embeddings": false,
|
| 255 |
+
"topk_group": 1,
|
| 256 |
+
"topk_method": "noaux_tc",
|
| 257 |
+
"use_cache": true,
|
| 258 |
+
"v_head_dim": 256,
|
| 259 |
+
"vocab_size": 154880
|
| 260 |
+
},
|
| 261 |
+
"vision_config": {
|
| 262 |
+
"attention_bias": true,
|
| 263 |
+
"attention_dropout": 0.0,
|
| 264 |
+
"depth": 24,
|
| 265 |
+
"hidden_act": "silu",
|
| 266 |
+
"hidden_size": 1024,
|
| 267 |
+
"image_size": 448,
|
| 268 |
+
"in_channels": 3,
|
| 269 |
+
"initializer_range": 0.02,
|
| 270 |
+
"intermediate_size": 4096,
|
| 271 |
+
"model_type": "glm5_next_vision",
|
| 272 |
+
"num_heads": 16,
|
| 273 |
+
"out_hidden_size": 4096,
|
| 274 |
+
"patch_size": 14,
|
| 275 |
+
"projection_intermediate_size": 10240,
|
| 276 |
+
"rms_norm_eps": 1e-05,
|
| 277 |
+
"spatial_merge_size": 2,
|
| 278 |
+
"swiglu_limit": 10.0,
|
| 279 |
+
"temporal_patch_size": 2
|
| 280 |
+
},
|
| 281 |
+
"image_token_id": 154854,
|
| 282 |
+
"video_token_id": 154855,
|
| 283 |
+
"image_start_token_id": 154830,
|
| 284 |
+
"image_end_token_id": 154831,
|
| 285 |
+
"video_start_token_id": 154832,
|
| 286 |
+
"video_end_token_id": 154833,
|
| 287 |
+
"tie_word_embeddings": false,
|
| 288 |
+
"model_type": "glm5_next",
|
| 289 |
+
"transformers_version": "5.16.0",
|
| 290 |
+
"quantization": {
|
| 291 |
+
"group_size": 64,
|
| 292 |
+
"bits": 4,
|
| 293 |
+
"language_model.model.layers.3.self_attn.indexer.wq_b": {
|
| 294 |
+
"group_size": 64,
|
| 295 |
+
"bits": 8
|
| 296 |
+
},
|
| 297 |
+
"language_model.model.layers.3.self_attn.indexer.wk": {
|
| 298 |
+
"group_size": 64,
|
| 299 |
+
"bits": 8
|
| 300 |
+
},
|
| 301 |
+
"language_model.model.layers.3.self_attn.indexer.weights_proj": {
|
| 302 |
+
"group_size": 64,
|
| 303 |
+
"bits": 8
|
| 304 |
+
},
|
| 305 |
+
"language_model.model.layers.7.self_attn.indexer.wq_b": {
|
| 306 |
+
"group_size": 64,
|
| 307 |
+
"bits": 8
|
| 308 |
+
},
|
| 309 |
+
"language_model.model.layers.7.self_attn.indexer.wk": {
|
| 310 |
+
"group_size": 64,
|
| 311 |
+
"bits": 8
|
| 312 |
+
},
|
| 313 |
+
"language_model.model.layers.7.self_attn.indexer.weights_proj": {
|
| 314 |
+
"group_size": 64,
|
| 315 |
+
"bits": 8
|
| 316 |
+
},
|
| 317 |
+
"language_model.model.layers.11.self_attn.indexer.wq_b": {
|
| 318 |
+
"group_size": 64,
|
| 319 |
+
"bits": 8
|
| 320 |
+
},
|
| 321 |
+
"language_model.model.layers.11.self_attn.indexer.wk": {
|
| 322 |
+
"group_size": 64,
|
| 323 |
+
"bits": 8
|
| 324 |
+
},
|
| 325 |
+
"language_model.model.layers.11.self_attn.indexer.weights_proj": {
|
| 326 |
+
"group_size": 64,
|
| 327 |
+
"bits": 8
|
| 328 |
+
},
|
| 329 |
+
"language_model.model.layers.15.self_attn.indexer.wq_b": {
|
| 330 |
+
"group_size": 64,
|
| 331 |
+
"bits": 8
|
| 332 |
+
},
|
| 333 |
+
"language_model.model.layers.15.self_attn.indexer.wk": {
|
| 334 |
+
"group_size": 64,
|
| 335 |
+
"bits": 8
|
| 336 |
+
},
|
| 337 |
+
"language_model.model.layers.15.self_attn.indexer.weights_proj": {
|
| 338 |
+
"group_size": 64,
|
| 339 |
+
"bits": 8
|
| 340 |
+
},
|
| 341 |
+
"language_model.model.layers.19.self_attn.indexer.wq_b": {
|
| 342 |
+
"group_size": 64,
|
| 343 |
+
"bits": 8
|
| 344 |
+
},
|
| 345 |
+
"language_model.model.layers.19.self_attn.indexer.wk": {
|
| 346 |
+
"group_size": 64,
|
| 347 |
+
"bits": 8
|
| 348 |
+
},
|
| 349 |
+
"language_model.model.layers.19.self_attn.indexer.weights_proj": {
|
| 350 |
+
"group_size": 64,
|
| 351 |
+
"bits": 8
|
| 352 |
+
},
|
| 353 |
+
"language_model.model.layers.23.self_attn.indexer.wq_b": {
|
| 354 |
+
"group_size": 64,
|
| 355 |
+
"bits": 8
|
| 356 |
+
},
|
| 357 |
+
"language_model.model.layers.23.self_attn.indexer.wk": {
|
| 358 |
+
"group_size": 64,
|
| 359 |
+
"bits": 8
|
| 360 |
+
},
|
| 361 |
+
"language_model.model.layers.23.self_attn.indexer.weights_proj": {
|
| 362 |
+
"group_size": 64,
|
| 363 |
+
"bits": 8
|
| 364 |
+
},
|
| 365 |
+
"language_model.model.layers.27.self_attn.indexer.wq_b": {
|
| 366 |
+
"group_size": 64,
|
| 367 |
+
"bits": 8
|
| 368 |
+
},
|
| 369 |
+
"language_model.model.layers.27.self_attn.indexer.wk": {
|
| 370 |
+
"group_size": 64,
|
| 371 |
+
"bits": 8
|
| 372 |
+
},
|
| 373 |
+
"language_model.model.layers.27.self_attn.indexer.weights_proj": {
|
| 374 |
+
"group_size": 64,
|
| 375 |
+
"bits": 8
|
| 376 |
+
},
|
| 377 |
+
"language_model.model.layers.31.self_attn.indexer.wq_b": {
|
| 378 |
+
"group_size": 64,
|
| 379 |
+
"bits": 8
|
| 380 |
+
},
|
| 381 |
+
"language_model.model.layers.31.self_attn.indexer.wk": {
|
| 382 |
+
"group_size": 64,
|
| 383 |
+
"bits": 8
|
| 384 |
+
},
|
| 385 |
+
"language_model.model.layers.31.self_attn.indexer.weights_proj": {
|
| 386 |
+
"group_size": 64,
|
| 387 |
+
"bits": 8
|
| 388 |
+
},
|
| 389 |
+
"language_model.model.layers.35.self_attn.indexer.wq_b": {
|
| 390 |
+
"group_size": 64,
|
| 391 |
+
"bits": 8
|
| 392 |
+
},
|
| 393 |
+
"language_model.model.layers.35.self_attn.indexer.wk": {
|
| 394 |
+
"group_size": 64,
|
| 395 |
+
"bits": 8
|
| 396 |
+
},
|
| 397 |
+
"language_model.model.layers.35.self_attn.indexer.weights_proj": {
|
| 398 |
+
"group_size": 64,
|
| 399 |
+
"bits": 8
|
| 400 |
+
},
|
| 401 |
+
"language_model.model.layers.39.self_attn.indexer.wq_b": {
|
| 402 |
+
"group_size": 64,
|
| 403 |
+
"bits": 8
|
| 404 |
+
},
|
| 405 |
+
"language_model.model.layers.39.self_attn.indexer.wk": {
|
| 406 |
+
"group_size": 64,
|
| 407 |
+
"bits": 8
|
| 408 |
+
},
|
| 409 |
+
"language_model.model.layers.39.self_attn.indexer.weights_proj": {
|
| 410 |
+
"group_size": 64,
|
| 411 |
+
"bits": 8
|
| 412 |
+
},
|
| 413 |
+
"language_model.model.layers.43.self_attn.indexer.wq_b": {
|
| 414 |
+
"group_size": 64,
|
| 415 |
+
"bits": 8
|
| 416 |
+
},
|
| 417 |
+
"language_model.model.layers.43.self_attn.indexer.wk": {
|
| 418 |
+
"group_size": 64,
|
| 419 |
+
"bits": 8
|
| 420 |
+
},
|
| 421 |
+
"language_model.model.layers.43.self_attn.indexer.weights_proj": {
|
| 422 |
+
"group_size": 64,
|
| 423 |
+
"bits": 8
|
| 424 |
+
},
|
| 425 |
+
"language_model.model.layers.3.mlp.switch_mlp.gate_proj": {
|
| 426 |
+
"group_size": 64,
|
| 427 |
+
"bits": 4
|
| 428 |
+
},
|
| 429 |
+
"language_model.model.layers.3.mlp.switch_mlp.up_proj": {
|
| 430 |
+
"group_size": 64,
|
| 431 |
+
"bits": 4
|
| 432 |
+
},
|
| 433 |
+
"language_model.model.layers.3.mlp.switch_mlp.down_proj": {
|
| 434 |
+
"group_size": 64,
|
| 435 |
+
"bits": 4
|
| 436 |
+
},
|
| 437 |
+
"language_model.model.layers.4.mlp.switch_mlp.gate_proj": {
|
| 438 |
+
"group_size": 64,
|
| 439 |
+
"bits": 4
|
| 440 |
+
},
|
| 441 |
+
"language_model.model.layers.4.mlp.switch_mlp.up_proj": {
|
| 442 |
+
"group_size": 64,
|
| 443 |
+
"bits": 4
|
| 444 |
+
},
|
| 445 |
+
"language_model.model.layers.4.mlp.switch_mlp.down_proj": {
|
| 446 |
+
"group_size": 64,
|
| 447 |
+
"bits": 4
|
| 448 |
+
},
|
| 449 |
+
"language_model.model.layers.5.mlp.switch_mlp.gate_proj": {
|
| 450 |
+
"group_size": 64,
|
| 451 |
+
"bits": 4
|
| 452 |
+
},
|
| 453 |
+
"language_model.model.layers.5.mlp.switch_mlp.up_proj": {
|
| 454 |
+
"group_size": 64,
|
| 455 |
+
"bits": 4
|
| 456 |
+
},
|
| 457 |
+
"language_model.model.layers.5.mlp.switch_mlp.down_proj": {
|
| 458 |
+
"group_size": 64,
|
| 459 |
+
"bits": 4
|
| 460 |
+
},
|
| 461 |
+
"language_model.model.layers.6.mlp.switch_mlp.gate_proj": {
|
| 462 |
+
"group_size": 64,
|
| 463 |
+
"bits": 4
|
| 464 |
+
},
|
| 465 |
+
"language_model.model.layers.6.mlp.switch_mlp.up_proj": {
|
| 466 |
+
"group_size": 64,
|
| 467 |
+
"bits": 4
|
| 468 |
+
},
|
| 469 |
+
"language_model.model.layers.6.mlp.switch_mlp.down_proj": {
|
| 470 |
+
"group_size": 64,
|
| 471 |
+
"bits": 4
|
| 472 |
+
},
|
| 473 |
+
"language_model.model.layers.7.mlp.switch_mlp.gate_proj": {
|
| 474 |
+
"group_size": 64,
|
| 475 |
+
"bits": 4
|
| 476 |
+
},
|
| 477 |
+
"language_model.model.layers.7.mlp.switch_mlp.up_proj": {
|
| 478 |
+
"group_size": 64,
|
| 479 |
+
"bits": 4
|
| 480 |
+
},
|
| 481 |
+
"language_model.model.layers.7.mlp.switch_mlp.down_proj": {
|
| 482 |
+
"group_size": 64,
|
| 483 |
+
"bits": 4
|
| 484 |
+
},
|
| 485 |
+
"language_model.model.layers.8.mlp.switch_mlp.gate_proj": {
|
| 486 |
+
"group_size": 64,
|
| 487 |
+
"bits": 4
|
| 488 |
+
},
|
| 489 |
+
"language_model.model.layers.8.mlp.switch_mlp.up_proj": {
|
| 490 |
+
"group_size": 64,
|
| 491 |
+
"bits": 4
|
| 492 |
+
},
|
| 493 |
+
"language_model.model.layers.8.mlp.switch_mlp.down_proj": {
|
| 494 |
+
"group_size": 64,
|
| 495 |
+
"bits": 4
|
| 496 |
+
},
|
| 497 |
+
"language_model.model.layers.9.mlp.switch_mlp.gate_proj": {
|
| 498 |
+
"group_size": 64,
|
| 499 |
+
"bits": 4
|
| 500 |
+
},
|
| 501 |
+
"language_model.model.layers.9.mlp.switch_mlp.up_proj": {
|
| 502 |
+
"group_size": 64,
|
| 503 |
+
"bits": 4
|
| 504 |
+
},
|
| 505 |
+
"language_model.model.layers.9.mlp.switch_mlp.down_proj": {
|
| 506 |
+
"group_size": 64,
|
| 507 |
+
"bits": 4
|
| 508 |
+
},
|
| 509 |
+
"language_model.model.layers.10.mlp.switch_mlp.gate_proj": {
|
| 510 |
+
"group_size": 64,
|
| 511 |
+
"bits": 4
|
| 512 |
+
},
|
| 513 |
+
"language_model.model.layers.10.mlp.switch_mlp.up_proj": {
|
| 514 |
+
"group_size": 64,
|
| 515 |
+
"bits": 4
|
| 516 |
+
},
|
| 517 |
+
"language_model.model.layers.10.mlp.switch_mlp.down_proj": {
|
| 518 |
+
"group_size": 64,
|
| 519 |
+
"bits": 4
|
| 520 |
+
},
|
| 521 |
+
"language_model.model.layers.11.mlp.switch_mlp.gate_proj": {
|
| 522 |
+
"group_size": 64,
|
| 523 |
+
"bits": 4
|
| 524 |
+
},
|
| 525 |
+
"language_model.model.layers.11.mlp.switch_mlp.up_proj": {
|
| 526 |
+
"group_size": 64,
|
| 527 |
+
"bits": 4
|
| 528 |
+
},
|
| 529 |
+
"language_model.model.layers.11.mlp.switch_mlp.down_proj": {
|
| 530 |
+
"group_size": 64,
|
| 531 |
+
"bits": 4
|
| 532 |
+
},
|
| 533 |
+
"language_model.model.layers.12.mlp.switch_mlp.gate_proj": {
|
| 534 |
+
"group_size": 64,
|
| 535 |
+
"bits": 4
|
| 536 |
+
},
|
| 537 |
+
"language_model.model.layers.12.mlp.switch_mlp.up_proj": {
|
| 538 |
+
"group_size": 64,
|
| 539 |
+
"bits": 4
|
| 540 |
+
},
|
| 541 |
+
"language_model.model.layers.12.mlp.switch_mlp.down_proj": {
|
| 542 |
+
"group_size": 64,
|
| 543 |
+
"bits": 4
|
| 544 |
+
},
|
| 545 |
+
"language_model.model.layers.13.mlp.switch_mlp.gate_proj": {
|
| 546 |
+
"group_size": 64,
|
| 547 |
+
"bits": 4
|
| 548 |
+
},
|
| 549 |
+
"language_model.model.layers.13.mlp.switch_mlp.up_proj": {
|
| 550 |
+
"group_size": 64,
|
| 551 |
+
"bits": 4
|
| 552 |
+
},
|
| 553 |
+
"language_model.model.layers.13.mlp.switch_mlp.down_proj": {
|
| 554 |
+
"group_size": 64,
|
| 555 |
+
"bits": 4
|
| 556 |
+
},
|
| 557 |
+
"language_model.model.layers.14.mlp.switch_mlp.gate_proj": {
|
| 558 |
+
"group_size": 64,
|
| 559 |
+
"bits": 4
|
| 560 |
+
},
|
| 561 |
+
"language_model.model.layers.14.mlp.switch_mlp.up_proj": {
|
| 562 |
+
"group_size": 64,
|
| 563 |
+
"bits": 4
|
| 564 |
+
},
|
| 565 |
+
"language_model.model.layers.14.mlp.switch_mlp.down_proj": {
|
| 566 |
+
"group_size": 64,
|
| 567 |
+
"bits": 4
|
| 568 |
+
},
|
| 569 |
+
"language_model.model.layers.15.mlp.switch_mlp.gate_proj": {
|
| 570 |
+
"group_size": 64,
|
| 571 |
+
"bits": 4
|
| 572 |
+
},
|
| 573 |
+
"language_model.model.layers.15.mlp.switch_mlp.up_proj": {
|
| 574 |
+
"group_size": 64,
|
| 575 |
+
"bits": 4
|
| 576 |
+
},
|
| 577 |
+
"language_model.model.layers.15.mlp.switch_mlp.down_proj": {
|
| 578 |
+
"group_size": 64,
|
| 579 |
+
"bits": 4
|
| 580 |
+
},
|
| 581 |
+
"language_model.model.layers.16.mlp.switch_mlp.gate_proj": {
|
| 582 |
+
"group_size": 64,
|
| 583 |
+
"bits": 4
|
| 584 |
+
},
|
| 585 |
+
"language_model.model.layers.16.mlp.switch_mlp.up_proj": {
|
| 586 |
+
"group_size": 64,
|
| 587 |
+
"bits": 4
|
| 588 |
+
},
|
| 589 |
+
"language_model.model.layers.16.mlp.switch_mlp.down_proj": {
|
| 590 |
+
"group_size": 64,
|
| 591 |
+
"bits": 4
|
| 592 |
+
},
|
| 593 |
+
"language_model.model.layers.17.mlp.switch_mlp.gate_proj": {
|
| 594 |
+
"group_size": 64,
|
| 595 |
+
"bits": 4
|
| 596 |
+
},
|
| 597 |
+
"language_model.model.layers.17.mlp.switch_mlp.up_proj": {
|
| 598 |
+
"group_size": 64,
|
| 599 |
+
"bits": 4
|
| 600 |
+
},
|
| 601 |
+
"language_model.model.layers.17.mlp.switch_mlp.down_proj": {
|
| 602 |
+
"group_size": 64,
|
| 603 |
+
"bits": 4
|
| 604 |
+
},
|
| 605 |
+
"language_model.model.layers.18.mlp.switch_mlp.gate_proj": {
|
| 606 |
+
"group_size": 64,
|
| 607 |
+
"bits": 4
|
| 608 |
+
},
|
| 609 |
+
"language_model.model.layers.18.mlp.switch_mlp.up_proj": {
|
| 610 |
+
"group_size": 64,
|
| 611 |
+
"bits": 4
|
| 612 |
+
},
|
| 613 |
+
"language_model.model.layers.18.mlp.switch_mlp.down_proj": {
|
| 614 |
+
"group_size": 64,
|
| 615 |
+
"bits": 4
|
| 616 |
+
},
|
| 617 |
+
"language_model.model.layers.19.mlp.switch_mlp.gate_proj": {
|
| 618 |
+
"group_size": 64,
|
| 619 |
+
"bits": 4
|
| 620 |
+
},
|
| 621 |
+
"language_model.model.layers.19.mlp.switch_mlp.up_proj": {
|
| 622 |
+
"group_size": 64,
|
| 623 |
+
"bits": 4
|
| 624 |
+
},
|
| 625 |
+
"language_model.model.layers.19.mlp.switch_mlp.down_proj": {
|
| 626 |
+
"group_size": 64,
|
| 627 |
+
"bits": 4
|
| 628 |
+
},
|
| 629 |
+
"language_model.model.layers.20.mlp.switch_mlp.gate_proj": {
|
| 630 |
+
"group_size": 64,
|
| 631 |
+
"bits": 4
|
| 632 |
+
},
|
| 633 |
+
"language_model.model.layers.20.mlp.switch_mlp.up_proj": {
|
| 634 |
+
"group_size": 64,
|
| 635 |
+
"bits": 4
|
| 636 |
+
},
|
| 637 |
+
"language_model.model.layers.20.mlp.switch_mlp.down_proj": {
|
| 638 |
+
"group_size": 64,
|
| 639 |
+
"bits": 4
|
| 640 |
+
},
|
| 641 |
+
"language_model.model.layers.21.mlp.switch_mlp.gate_proj": {
|
| 642 |
+
"group_size": 64,
|
| 643 |
+
"bits": 4
|
| 644 |
+
},
|
| 645 |
+
"language_model.model.layers.21.mlp.switch_mlp.up_proj": {
|
| 646 |
+
"group_size": 64,
|
| 647 |
+
"bits": 4
|
| 648 |
+
},
|
| 649 |
+
"language_model.model.layers.21.mlp.switch_mlp.down_proj": {
|
| 650 |
+
"group_size": 64,
|
| 651 |
+
"bits": 4
|
| 652 |
+
},
|
| 653 |
+
"language_model.model.layers.22.mlp.switch_mlp.gate_proj": {
|
| 654 |
+
"group_size": 64,
|
| 655 |
+
"bits": 4
|
| 656 |
+
},
|
| 657 |
+
"language_model.model.layers.22.mlp.switch_mlp.up_proj": {
|
| 658 |
+
"group_size": 64,
|
| 659 |
+
"bits": 4
|
| 660 |
+
},
|
| 661 |
+
"language_model.model.layers.22.mlp.switch_mlp.down_proj": {
|
| 662 |
+
"group_size": 64,
|
| 663 |
+
"bits": 4
|
| 664 |
+
},
|
| 665 |
+
"language_model.model.layers.23.mlp.switch_mlp.gate_proj": {
|
| 666 |
+
"group_size": 64,
|
| 667 |
+
"bits": 4
|
| 668 |
+
},
|
| 669 |
+
"language_model.model.layers.23.mlp.switch_mlp.up_proj": {
|
| 670 |
+
"group_size": 64,
|
| 671 |
+
"bits": 4
|
| 672 |
+
},
|
| 673 |
+
"language_model.model.layers.23.mlp.switch_mlp.down_proj": {
|
| 674 |
+
"group_size": 64,
|
| 675 |
+
"bits": 4
|
| 676 |
+
},
|
| 677 |
+
"language_model.model.layers.24.mlp.switch_mlp.gate_proj": {
|
| 678 |
+
"group_size": 64,
|
| 679 |
+
"bits": 4
|
| 680 |
+
},
|
| 681 |
+
"language_model.model.layers.24.mlp.switch_mlp.up_proj": {
|
| 682 |
+
"group_size": 64,
|
| 683 |
+
"bits": 4
|
| 684 |
+
},
|
| 685 |
+
"language_model.model.layers.24.mlp.switch_mlp.down_proj": {
|
| 686 |
+
"group_size": 64,
|
| 687 |
+
"bits": 4
|
| 688 |
+
},
|
| 689 |
+
"language_model.model.layers.25.mlp.switch_mlp.gate_proj": {
|
| 690 |
+
"group_size": 64,
|
| 691 |
+
"bits": 4
|
| 692 |
+
},
|
| 693 |
+
"language_model.model.layers.25.mlp.switch_mlp.up_proj": {
|
| 694 |
+
"group_size": 64,
|
| 695 |
+
"bits": 4
|
| 696 |
+
},
|
| 697 |
+
"language_model.model.layers.25.mlp.switch_mlp.down_proj": {
|
| 698 |
+
"group_size": 64,
|
| 699 |
+
"bits": 4
|
| 700 |
+
},
|
| 701 |
+
"language_model.model.layers.26.mlp.switch_mlp.gate_proj": {
|
| 702 |
+
"group_size": 64,
|
| 703 |
+
"bits": 4
|
| 704 |
+
},
|
| 705 |
+
"language_model.model.layers.26.mlp.switch_mlp.up_proj": {
|
| 706 |
+
"group_size": 64,
|
| 707 |
+
"bits": 4
|
| 708 |
+
},
|
| 709 |
+
"language_model.model.layers.26.mlp.switch_mlp.down_proj": {
|
| 710 |
+
"group_size": 64,
|
| 711 |
+
"bits": 4
|
| 712 |
+
},
|
| 713 |
+
"language_model.model.layers.27.mlp.switch_mlp.gate_proj": {
|
| 714 |
+
"group_size": 64,
|
| 715 |
+
"bits": 4
|
| 716 |
+
},
|
| 717 |
+
"language_model.model.layers.27.mlp.switch_mlp.up_proj": {
|
| 718 |
+
"group_size": 64,
|
| 719 |
+
"bits": 4
|
| 720 |
+
},
|
| 721 |
+
"language_model.model.layers.27.mlp.switch_mlp.down_proj": {
|
| 722 |
+
"group_size": 64,
|
| 723 |
+
"bits": 4
|
| 724 |
+
},
|
| 725 |
+
"language_model.model.layers.28.mlp.switch_mlp.gate_proj": {
|
| 726 |
+
"group_size": 64,
|
| 727 |
+
"bits": 4
|
| 728 |
+
},
|
| 729 |
+
"language_model.model.layers.28.mlp.switch_mlp.up_proj": {
|
| 730 |
+
"group_size": 64,
|
| 731 |
+
"bits": 4
|
| 732 |
+
},
|
| 733 |
+
"language_model.model.layers.28.mlp.switch_mlp.down_proj": {
|
| 734 |
+
"group_size": 64,
|
| 735 |
+
"bits": 4
|
| 736 |
+
},
|
| 737 |
+
"language_model.model.layers.29.mlp.switch_mlp.gate_proj": {
|
| 738 |
+
"group_size": 64,
|
| 739 |
+
"bits": 4
|
| 740 |
+
},
|
| 741 |
+
"language_model.model.layers.29.mlp.switch_mlp.up_proj": {
|
| 742 |
+
"group_size": 64,
|
| 743 |
+
"bits": 4
|
| 744 |
+
},
|
| 745 |
+
"language_model.model.layers.29.mlp.switch_mlp.down_proj": {
|
| 746 |
+
"group_size": 64,
|
| 747 |
+
"bits": 4
|
| 748 |
+
},
|
| 749 |
+
"language_model.model.layers.30.mlp.switch_mlp.gate_proj": {
|
| 750 |
+
"group_size": 64,
|
| 751 |
+
"bits": 4
|
| 752 |
+
},
|
| 753 |
+
"language_model.model.layers.30.mlp.switch_mlp.up_proj": {
|
| 754 |
+
"group_size": 64,
|
| 755 |
+
"bits": 4
|
| 756 |
+
},
|
| 757 |
+
"language_model.model.layers.30.mlp.switch_mlp.down_proj": {
|
| 758 |
+
"group_size": 64,
|
| 759 |
+
"bits": 4
|
| 760 |
+
},
|
| 761 |
+
"language_model.model.layers.31.mlp.switch_mlp.gate_proj": {
|
| 762 |
+
"group_size": 64,
|
| 763 |
+
"bits": 4
|
| 764 |
+
},
|
| 765 |
+
"language_model.model.layers.31.mlp.switch_mlp.up_proj": {
|
| 766 |
+
"group_size": 64,
|
| 767 |
+
"bits": 4
|
| 768 |
+
},
|
| 769 |
+
"language_model.model.layers.31.mlp.switch_mlp.down_proj": {
|
| 770 |
+
"group_size": 64,
|
| 771 |
+
"bits": 4
|
| 772 |
+
},
|
| 773 |
+
"language_model.model.layers.32.mlp.switch_mlp.gate_proj": {
|
| 774 |
+
"group_size": 64,
|
| 775 |
+
"bits": 4
|
| 776 |
+
},
|
| 777 |
+
"language_model.model.layers.32.mlp.switch_mlp.up_proj": {
|
| 778 |
+
"group_size": 64,
|
| 779 |
+
"bits": 4
|
| 780 |
+
},
|
| 781 |
+
"language_model.model.layers.32.mlp.switch_mlp.down_proj": {
|
| 782 |
+
"group_size": 64,
|
| 783 |
+
"bits": 4
|
| 784 |
+
},
|
| 785 |
+
"language_model.model.layers.33.mlp.switch_mlp.gate_proj": {
|
| 786 |
+
"group_size": 64,
|
| 787 |
+
"bits": 4
|
| 788 |
+
},
|
| 789 |
+
"language_model.model.layers.33.mlp.switch_mlp.up_proj": {
|
| 790 |
+
"group_size": 64,
|
| 791 |
+
"bits": 4
|
| 792 |
+
},
|
| 793 |
+
"language_model.model.layers.33.mlp.switch_mlp.down_proj": {
|
| 794 |
+
"group_size": 64,
|
| 795 |
+
"bits": 4
|
| 796 |
+
},
|
| 797 |
+
"language_model.model.layers.34.mlp.switch_mlp.gate_proj": {
|
| 798 |
+
"group_size": 64,
|
| 799 |
+
"bits": 4
|
| 800 |
+
},
|
| 801 |
+
"language_model.model.layers.34.mlp.switch_mlp.up_proj": {
|
| 802 |
+
"group_size": 64,
|
| 803 |
+
"bits": 4
|
| 804 |
+
},
|
| 805 |
+
"language_model.model.layers.34.mlp.switch_mlp.down_proj": {
|
| 806 |
+
"group_size": 64,
|
| 807 |
+
"bits": 4
|
| 808 |
+
},
|
| 809 |
+
"language_model.model.layers.35.mlp.switch_mlp.gate_proj": {
|
| 810 |
+
"group_size": 64,
|
| 811 |
+
"bits": 4
|
| 812 |
+
},
|
| 813 |
+
"language_model.model.layers.35.mlp.switch_mlp.up_proj": {
|
| 814 |
+
"group_size": 64,
|
| 815 |
+
"bits": 4
|
| 816 |
+
},
|
| 817 |
+
"language_model.model.layers.35.mlp.switch_mlp.down_proj": {
|
| 818 |
+
"group_size": 64,
|
| 819 |
+
"bits": 4
|
| 820 |
+
},
|
| 821 |
+
"language_model.model.layers.36.mlp.switch_mlp.gate_proj": {
|
| 822 |
+
"group_size": 64,
|
| 823 |
+
"bits": 4
|
| 824 |
+
},
|
| 825 |
+
"language_model.model.layers.36.mlp.switch_mlp.up_proj": {
|
| 826 |
+
"group_size": 64,
|
| 827 |
+
"bits": 4
|
| 828 |
+
},
|
| 829 |
+
"language_model.model.layers.36.mlp.switch_mlp.down_proj": {
|
| 830 |
+
"group_size": 64,
|
| 831 |
+
"bits": 4
|
| 832 |
+
},
|
| 833 |
+
"language_model.model.layers.37.mlp.switch_mlp.gate_proj": {
|
| 834 |
+
"group_size": 64,
|
| 835 |
+
"bits": 4
|
| 836 |
+
},
|
| 837 |
+
"language_model.model.layers.37.mlp.switch_mlp.up_proj": {
|
| 838 |
+
"group_size": 64,
|
| 839 |
+
"bits": 4
|
| 840 |
+
},
|
| 841 |
+
"language_model.model.layers.37.mlp.switch_mlp.down_proj": {
|
| 842 |
+
"group_size": 64,
|
| 843 |
+
"bits": 4
|
| 844 |
+
},
|
| 845 |
+
"language_model.model.layers.38.mlp.switch_mlp.gate_proj": {
|
| 846 |
+
"group_size": 64,
|
| 847 |
+
"bits": 4
|
| 848 |
+
},
|
| 849 |
+
"language_model.model.layers.38.mlp.switch_mlp.up_proj": {
|
| 850 |
+
"group_size": 64,
|
| 851 |
+
"bits": 4
|
| 852 |
+
},
|
| 853 |
+
"language_model.model.layers.38.mlp.switch_mlp.down_proj": {
|
| 854 |
+
"group_size": 64,
|
| 855 |
+
"bits": 4
|
| 856 |
+
},
|
| 857 |
+
"language_model.model.layers.39.mlp.switch_mlp.gate_proj": {
|
| 858 |
+
"group_size": 64,
|
| 859 |
+
"bits": 4
|
| 860 |
+
},
|
| 861 |
+
"language_model.model.layers.39.mlp.switch_mlp.up_proj": {
|
| 862 |
+
"group_size": 64,
|
| 863 |
+
"bits": 4
|
| 864 |
+
},
|
| 865 |
+
"language_model.model.layers.39.mlp.switch_mlp.down_proj": {
|
| 866 |
+
"group_size": 64,
|
| 867 |
+
"bits": 4
|
| 868 |
+
},
|
| 869 |
+
"language_model.model.layers.40.mlp.switch_mlp.gate_proj": {
|
| 870 |
+
"group_size": 64,
|
| 871 |
+
"bits": 4
|
| 872 |
+
},
|
| 873 |
+
"language_model.model.layers.40.mlp.switch_mlp.up_proj": {
|
| 874 |
+
"group_size": 64,
|
| 875 |
+
"bits": 4
|
| 876 |
+
},
|
| 877 |
+
"language_model.model.layers.40.mlp.switch_mlp.down_proj": {
|
| 878 |
+
"group_size": 64,
|
| 879 |
+
"bits": 4
|
| 880 |
+
},
|
| 881 |
+
"language_model.model.layers.41.mlp.switch_mlp.gate_proj": {
|
| 882 |
+
"group_size": 64,
|
| 883 |
+
"bits": 4
|
| 884 |
+
},
|
| 885 |
+
"language_model.model.layers.41.mlp.switch_mlp.up_proj": {
|
| 886 |
+
"group_size": 64,
|
| 887 |
+
"bits": 4
|
| 888 |
+
},
|
| 889 |
+
"language_model.model.layers.41.mlp.switch_mlp.down_proj": {
|
| 890 |
+
"group_size": 64,
|
| 891 |
+
"bits": 4
|
| 892 |
+
},
|
| 893 |
+
"language_model.model.layers.42.mlp.switch_mlp.gate_proj": {
|
| 894 |
+
"group_size": 64,
|
| 895 |
+
"bits": 4
|
| 896 |
+
},
|
| 897 |
+
"language_model.model.layers.42.mlp.switch_mlp.up_proj": {
|
| 898 |
+
"group_size": 64,
|
| 899 |
+
"bits": 4
|
| 900 |
+
},
|
| 901 |
+
"language_model.model.layers.42.mlp.switch_mlp.down_proj": {
|
| 902 |
+
"group_size": 64,
|
| 903 |
+
"bits": 4
|
| 904 |
+
},
|
| 905 |
+
"language_model.model.layers.43.mlp.switch_mlp.gate_proj": {
|
| 906 |
+
"group_size": 64,
|
| 907 |
+
"bits": 4
|
| 908 |
+
},
|
| 909 |
+
"language_model.model.layers.43.mlp.switch_mlp.up_proj": {
|
| 910 |
+
"group_size": 64,
|
| 911 |
+
"bits": 4
|
| 912 |
+
},
|
| 913 |
+
"language_model.model.layers.43.mlp.switch_mlp.down_proj": {
|
| 914 |
+
"group_size": 64,
|
| 915 |
+
"bits": 4
|
| 916 |
+
},
|
| 917 |
+
"language_model.model.layers.44.mlp.switch_mlp.gate_proj": {
|
| 918 |
+
"group_size": 64,
|
| 919 |
+
"bits": 4
|
| 920 |
+
},
|
| 921 |
+
"language_model.model.layers.44.mlp.switch_mlp.up_proj": {
|
| 922 |
+
"group_size": 64,
|
| 923 |
+
"bits": 4
|
| 924 |
+
},
|
| 925 |
+
"language_model.model.layers.44.mlp.switch_mlp.down_proj": {
|
| 926 |
+
"group_size": 64,
|
| 927 |
+
"bits": 4
|
| 928 |
+
}
|
| 929 |
+
},
|
| 930 |
+
"quantization_config": {
|
| 931 |
+
"group_size": 64,
|
| 932 |
+
"bits": 4,
|
| 933 |
+
"language_model.model.layers.3.self_attn.indexer.wq_b": {
|
| 934 |
+
"group_size": 64,
|
| 935 |
+
"bits": 8
|
| 936 |
+
},
|
| 937 |
+
"language_model.model.layers.3.self_attn.indexer.wk": {
|
| 938 |
+
"group_size": 64,
|
| 939 |
+
"bits": 8
|
| 940 |
+
},
|
| 941 |
+
"language_model.model.layers.3.self_attn.indexer.weights_proj": {
|
| 942 |
+
"group_size": 64,
|
| 943 |
+
"bits": 8
|
| 944 |
+
},
|
| 945 |
+
"language_model.model.layers.7.self_attn.indexer.wq_b": {
|
| 946 |
+
"group_size": 64,
|
| 947 |
+
"bits": 8
|
| 948 |
+
},
|
| 949 |
+
"language_model.model.layers.7.self_attn.indexer.wk": {
|
| 950 |
+
"group_size": 64,
|
| 951 |
+
"bits": 8
|
| 952 |
+
},
|
| 953 |
+
"language_model.model.layers.7.self_attn.indexer.weights_proj": {
|
| 954 |
+
"group_size": 64,
|
| 955 |
+
"bits": 8
|
| 956 |
+
},
|
| 957 |
+
"language_model.model.layers.11.self_attn.indexer.wq_b": {
|
| 958 |
+
"group_size": 64,
|
| 959 |
+
"bits": 8
|
| 960 |
+
},
|
| 961 |
+
"language_model.model.layers.11.self_attn.indexer.wk": {
|
| 962 |
+
"group_size": 64,
|
| 963 |
+
"bits": 8
|
| 964 |
+
},
|
| 965 |
+
"language_model.model.layers.11.self_attn.indexer.weights_proj": {
|
| 966 |
+
"group_size": 64,
|
| 967 |
+
"bits": 8
|
| 968 |
+
},
|
| 969 |
+
"language_model.model.layers.15.self_attn.indexer.wq_b": {
|
| 970 |
+
"group_size": 64,
|
| 971 |
+
"bits": 8
|
| 972 |
+
},
|
| 973 |
+
"language_model.model.layers.15.self_attn.indexer.wk": {
|
| 974 |
+
"group_size": 64,
|
| 975 |
+
"bits": 8
|
| 976 |
+
},
|
| 977 |
+
"language_model.model.layers.15.self_attn.indexer.weights_proj": {
|
| 978 |
+
"group_size": 64,
|
| 979 |
+
"bits": 8
|
| 980 |
+
},
|
| 981 |
+
"language_model.model.layers.19.self_attn.indexer.wq_b": {
|
| 982 |
+
"group_size": 64,
|
| 983 |
+
"bits": 8
|
| 984 |
+
},
|
| 985 |
+
"language_model.model.layers.19.self_attn.indexer.wk": {
|
| 986 |
+
"group_size": 64,
|
| 987 |
+
"bits": 8
|
| 988 |
+
},
|
| 989 |
+
"language_model.model.layers.19.self_attn.indexer.weights_proj": {
|
| 990 |
+
"group_size": 64,
|
| 991 |
+
"bits": 8
|
| 992 |
+
},
|
| 993 |
+
"language_model.model.layers.23.self_attn.indexer.wq_b": {
|
| 994 |
+
"group_size": 64,
|
| 995 |
+
"bits": 8
|
| 996 |
+
},
|
| 997 |
+
"language_model.model.layers.23.self_attn.indexer.wk": {
|
| 998 |
+
"group_size": 64,
|
| 999 |
+
"bits": 8
|
| 1000 |
+
},
|
| 1001 |
+
"language_model.model.layers.23.self_attn.indexer.weights_proj": {
|
| 1002 |
+
"group_size": 64,
|
| 1003 |
+
"bits": 8
|
| 1004 |
+
},
|
| 1005 |
+
"language_model.model.layers.27.self_attn.indexer.wq_b": {
|
| 1006 |
+
"group_size": 64,
|
| 1007 |
+
"bits": 8
|
| 1008 |
+
},
|
| 1009 |
+
"language_model.model.layers.27.self_attn.indexer.wk": {
|
| 1010 |
+
"group_size": 64,
|
| 1011 |
+
"bits": 8
|
| 1012 |
+
},
|
| 1013 |
+
"language_model.model.layers.27.self_attn.indexer.weights_proj": {
|
| 1014 |
+
"group_size": 64,
|
| 1015 |
+
"bits": 8
|
| 1016 |
+
},
|
| 1017 |
+
"language_model.model.layers.31.self_attn.indexer.wq_b": {
|
| 1018 |
+
"group_size": 64,
|
| 1019 |
+
"bits": 8
|
| 1020 |
+
},
|
| 1021 |
+
"language_model.model.layers.31.self_attn.indexer.wk": {
|
| 1022 |
+
"group_size": 64,
|
| 1023 |
+
"bits": 8
|
| 1024 |
+
},
|
| 1025 |
+
"language_model.model.layers.31.self_attn.indexer.weights_proj": {
|
| 1026 |
+
"group_size": 64,
|
| 1027 |
+
"bits": 8
|
| 1028 |
+
},
|
| 1029 |
+
"language_model.model.layers.35.self_attn.indexer.wq_b": {
|
| 1030 |
+
"group_size": 64,
|
| 1031 |
+
"bits": 8
|
| 1032 |
+
},
|
| 1033 |
+
"language_model.model.layers.35.self_attn.indexer.wk": {
|
| 1034 |
+
"group_size": 64,
|
| 1035 |
+
"bits": 8
|
| 1036 |
+
},
|
| 1037 |
+
"language_model.model.layers.35.self_attn.indexer.weights_proj": {
|
| 1038 |
+
"group_size": 64,
|
| 1039 |
+
"bits": 8
|
| 1040 |
+
},
|
| 1041 |
+
"language_model.model.layers.39.self_attn.indexer.wq_b": {
|
| 1042 |
+
"group_size": 64,
|
| 1043 |
+
"bits": 8
|
| 1044 |
+
},
|
| 1045 |
+
"language_model.model.layers.39.self_attn.indexer.wk": {
|
| 1046 |
+
"group_size": 64,
|
| 1047 |
+
"bits": 8
|
| 1048 |
+
},
|
| 1049 |
+
"language_model.model.layers.39.self_attn.indexer.weights_proj": {
|
| 1050 |
+
"group_size": 64,
|
| 1051 |
+
"bits": 8
|
| 1052 |
+
},
|
| 1053 |
+
"language_model.model.layers.43.self_attn.indexer.wq_b": {
|
| 1054 |
+
"group_size": 64,
|
| 1055 |
+
"bits": 8
|
| 1056 |
+
},
|
| 1057 |
+
"language_model.model.layers.43.self_attn.indexer.wk": {
|
| 1058 |
+
"group_size": 64,
|
| 1059 |
+
"bits": 8
|
| 1060 |
+
},
|
| 1061 |
+
"language_model.model.layers.43.self_attn.indexer.weights_proj": {
|
| 1062 |
+
"group_size": 64,
|
| 1063 |
+
"bits": 8
|
| 1064 |
+
}
|
| 1065 |
+
},
|
| 1066 |
+
"gbx_weight_format": "mlx"
|
| 1067 |
+
}
|
experts.bin
ADDED
|
@@ -0,0 +1,3 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "gbx-paged-experts-v1",
|
| 3 |
+
"source": "",
|
| 4 |
+
"num_layers": 42,
|
| 5 |
+
"num_experts": 288,
|
| 6 |
+
"layers": [
|
| 7 |
+
3,
|
| 8 |
+
4,
|
| 9 |
+
5,
|
| 10 |
+
6,
|
| 11 |
+
7,
|
| 12 |
+
8,
|
| 13 |
+
9,
|
| 14 |
+
10,
|
| 15 |
+
11,
|
| 16 |
+
12,
|
| 17 |
+
13,
|
| 18 |
+
14,
|
| 19 |
+
15,
|
| 20 |
+
16,
|
| 21 |
+
17,
|
| 22 |
+
18,
|
| 23 |
+
19,
|
| 24 |
+
20,
|
| 25 |
+
21,
|
| 26 |
+
22,
|
| 27 |
+
23,
|
| 28 |
+
24,
|
| 29 |
+
25,
|
| 30 |
+
26,
|
| 31 |
+
27,
|
| 32 |
+
28,
|
| 33 |
+
29,
|
| 34 |
+
30,
|
| 35 |
+
31,
|
| 36 |
+
32,
|
| 37 |
+
33,
|
| 38 |
+
34,
|
| 39 |
+
35,
|
| 40 |
+
36,
|
| 41 |
+
37,
|
| 42 |
+
38,
|
| 43 |
+
39,
|
| 44 |
+
40,
|
| 45 |
+
41,
|
| 46 |
+
42,
|
| 47 |
+
43,
|
| 48 |
+
44
|
| 49 |
+
],
|
| 50 |
+
"fields": [
|
| 51 |
+
{
|
| 52 |
+
"proj": "gate_proj",
|
| 53 |
+
"field": "weight",
|
| 54 |
+
"dtype": "uint32",
|
| 55 |
+
"shape": [
|
| 56 |
+
2048,
|
| 57 |
+
512
|
| 58 |
+
],
|
| 59 |
+
"offset": 0,
|
| 60 |
+
"nbytes": 4194304
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"proj": "gate_proj",
|
| 64 |
+
"field": "scales",
|
| 65 |
+
"dtype": "bfloat16",
|
| 66 |
+
"shape": [
|
| 67 |
+
2048,
|
| 68 |
+
64
|
| 69 |
+
],
|
| 70 |
+
"offset": 4194304,
|
| 71 |
+
"nbytes": 262144
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"proj": "gate_proj",
|
| 75 |
+
"field": "biases",
|
| 76 |
+
"dtype": "bfloat16",
|
| 77 |
+
"shape": [
|
| 78 |
+
2048,
|
| 79 |
+
64
|
| 80 |
+
],
|
| 81 |
+
"offset": 4456448,
|
| 82 |
+
"nbytes": 262144
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"proj": "up_proj",
|
| 86 |
+
"field": "weight",
|
| 87 |
+
"dtype": "uint32",
|
| 88 |
+
"shape": [
|
| 89 |
+
2048,
|
| 90 |
+
512
|
| 91 |
+
],
|
| 92 |
+
"offset": 4718592,
|
| 93 |
+
"nbytes": 4194304
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"proj": "up_proj",
|
| 97 |
+
"field": "scales",
|
| 98 |
+
"dtype": "bfloat16",
|
| 99 |
+
"shape": [
|
| 100 |
+
2048,
|
| 101 |
+
64
|
| 102 |
+
],
|
| 103 |
+
"offset": 8912896,
|
| 104 |
+
"nbytes": 262144
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"proj": "up_proj",
|
| 108 |
+
"field": "biases",
|
| 109 |
+
"dtype": "bfloat16",
|
| 110 |
+
"shape": [
|
| 111 |
+
2048,
|
| 112 |
+
64
|
| 113 |
+
],
|
| 114 |
+
"offset": 9175040,
|
| 115 |
+
"nbytes": 262144
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"proj": "down_proj",
|
| 119 |
+
"field": "weight",
|
| 120 |
+
"dtype": "uint32",
|
| 121 |
+
"shape": [
|
| 122 |
+
4096,
|
| 123 |
+
256
|
| 124 |
+
],
|
| 125 |
+
"offset": 9437184,
|
| 126 |
+
"nbytes": 4194304
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"proj": "down_proj",
|
| 130 |
+
"field": "scales",
|
| 131 |
+
"dtype": "bfloat16",
|
| 132 |
+
"shape": [
|
| 133 |
+
4096,
|
| 134 |
+
32
|
| 135 |
+
],
|
| 136 |
+
"offset": 13631488,
|
| 137 |
+
"nbytes": 262144
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"proj": "down_proj",
|
| 141 |
+
"field": "biases",
|
| 142 |
+
"dtype": "bfloat16",
|
| 143 |
+
"shape": [
|
| 144 |
+
4096,
|
| 145 |
+
32
|
| 146 |
+
],
|
| 147 |
+
"offset": 13893632,
|
| 148 |
+
"nbytes": 262144
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"payload_bytes": 14155776,
|
| 152 |
+
"record_bytes": 14155776,
|
| 153 |
+
"align": 4096,
|
| 154 |
+
"region": "experts.bin",
|
| 155 |
+
"created": "2026-09-01T22:41:07",
|
| 156 |
+
"trunk": "model.safetensors",
|
| 157 |
+
"self_contained": true,
|
| 158 |
+
"source_prefix": "language_model.model",
|
| 159 |
+
"source_id": "pipenetwork/GLM-5.3-Flash-MLX-4bit",
|
| 160 |
+
"ple_store": null,
|
| 161 |
+
"verified": {
|
| 162 |
+
"against": "pipenetwork/GLM-5.3-Flash-MLX-4bit",
|
| 163 |
+
"at": "2026-09-01T20:45:56+00:00",
|
| 164 |
+
"slots_per_layer": 103,
|
| 165 |
+
"gates": [
|
| 166 |
+
{
|
| 167 |
+
"gate": "gate 3",
|
| 168 |
+
"name": "bit-identical logits",
|
| 169 |
+
"status": "SKIP",
|
| 170 |
+
"detail": "cannot hold a resident reference: 165.4 GiB checkpoint needs ~198.4 GiB resident, 181.8 GiB usable"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"gate": "gate 32",
|
| 174 |
+
"name": "layer-wise vs resident",
|
| 175 |
+
"status": "PASS",
|
| 176 |
+
"detail": "42 layers x 2 draws exact, 60.93 GiB peak for this gate"
|
| 177 |
+
}
|
| 178 |
+
]
|
| 179 |
+
}
|
| 180 |
+
}
|
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.16.0"
|
| 12 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7e06bb445115e322e98695890892f91d1eb0b5fe548076e7521dcdcd9e82405
|
| 3 |
+
size 6320657246
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
processor_config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"patch_expand_factor": 1,
|
| 5 |
+
"merge_size": 2,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.48145466,
|
| 8 |
+
0.4578275,
|
| 9 |
+
0.40821073
|
| 10 |
+
],
|
| 11 |
+
"image_std": [
|
| 12 |
+
0.26862954,
|
| 13 |
+
0.26130258,
|
| 14 |
+
0.27577711
|
| 15 |
+
],
|
| 16 |
+
"temporal_patch_size": 2,
|
| 17 |
+
"patch_size": 14,
|
| 18 |
+
"min_image_tokens": 16,
|
| 19 |
+
"max_image_tokens": 8000,
|
| 20 |
+
"image_processor_type": "Glm5NextImageProcessor"
|
| 21 |
+
},
|
| 22 |
+
"video_processor": {
|
| 23 |
+
"do_rescale": true,
|
| 24 |
+
"video_processor_type": "Glm5NextVideoProcessor",
|
| 25 |
+
"patch_expand_factor": 1,
|
| 26 |
+
"merge_size": 2,
|
| 27 |
+
"image_mean": [
|
| 28 |
+
0.48145466,
|
| 29 |
+
0.4578275,
|
| 30 |
+
0.40821073
|
| 31 |
+
],
|
| 32 |
+
"image_std": [
|
| 33 |
+
0.26862954,
|
| 34 |
+
0.26130258,
|
| 35 |
+
0.27577711
|
| 36 |
+
],
|
| 37 |
+
"temporal_patch_size": 2,
|
| 38 |
+
"patch_size": 14,
|
| 39 |
+
"min_image_tokens": 16,
|
| 40 |
+
"max_image_tokens": 240000,
|
| 41 |
+
"fps": 2
|
| 42 |
+
},
|
| 43 |
+
"processor_class": "Glm5NextProcessor"
|
| 44 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e773648cb4e65de8660ea6365e10acca112d42a854923df93db4a6f333a82d
|
| 3 |
+
size 20217442
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"clean_up_tokenization_spaces": false,
|
| 4 |
+
"do_lower_case": false,
|
| 5 |
+
"eos_token": "<|endoftext|>",
|
| 6 |
+
"extra_special_tokens": [
|
| 7 |
+
"<|endoftext|>",
|
| 8 |
+
"[MASK]",
|
| 9 |
+
"[gMASK]",
|
| 10 |
+
"[sMASK]",
|
| 11 |
+
"<sop>",
|
| 12 |
+
"<eop>",
|
| 13 |
+
"<|system|>",
|
| 14 |
+
"<|user|>",
|
| 15 |
+
"<|assistant|>",
|
| 16 |
+
"<|observation|>",
|
| 17 |
+
"<|begin_of_image|>",
|
| 18 |
+
"<|end_of_image|>",
|
| 19 |
+
"<|begin_of_video|>",
|
| 20 |
+
"<|end_of_video|>",
|
| 21 |
+
"<|begin_of_audio|>",
|
| 22 |
+
"<|end_of_audio|>",
|
| 23 |
+
"<|begin_of_transcription|>",
|
| 24 |
+
"<|end_of_transcription|>"
|
| 25 |
+
],
|
| 26 |
+
"is_local": true,
|
| 27 |
+
"model_max_length": 1048576,
|
| 28 |
+
"model_specific_special_tokens": {},
|
| 29 |
+
"pad_token": "<|endoftext|>",
|
| 30 |
+
"padding_side": "left",
|
| 31 |
+
"remove_space": false,
|
| 32 |
+
"tokenizer_class": "TokenizersBackend"
|
| 33 |
+
}
|