GLM-5.3-Flash-34B-A17B-Utility
Companion weights, patches, and tools for GLM-5.3-Flash-34B-A17B
Shared AZ · Geo3K · RCO 1.0 · Q5_K_M · MIT
Main model · Components · Usage · Merge recipe · License
The main model’s GGUF already includes the Shared AZ, Geo3K, and RCO 1.0 changes. To run the model, download that single file from the main repository. Download GLM-5.3-Flash-34B-A17B
This repository contains the Shared AZ matrices, selected Geo3K LoRA A/B pairs, the RCO patch, and a map of the retained experts. Use the scripts to reproduce the release GGUF, recover an intermediate build, or extract the numerical change to an individual tensor.
Build at a glance
| Property | Value |
|---|---|
| Build author | Egor Prokhorov (biscet) |
| Package size | About 5.00 GiB |
| Architecture | GLM-5.3-Flash text backbone, glm5-next |
| Parameters | 34.24 billion total, about 17.33 billion active with top-8 routing |
| Merge order | Pruned Q5 → Shared AZ α=1 → Geo3K c=1 → RCO c=1 → release header |
| GGUF reconstruction | Python 3.9+ standard library, CPU |
| Component formats | BF16 matrices and factors in Safetensors files, reversible XOR patches for the quantized weights |
REAP configuration
I used the published expert saliency statistics to retain 24 of the 288 routed experts in each of the 42 MoE layers. The router selects 8 experts per token in each layer. The position of each original expert ID in the map gives its slot in the pruned model. Expert map · Published statistics
Components
| Component | What the package contains | Files |
|---|---|---|
| Shared AZ | 126 full BF16 matrices covering the shared expert’s gate, up, and down projections in each of the 42 MoE layers. At α=1, the donor matrices replace the corresponding weights. |
Matrices · Names and shapes · Patch |
| Geo3K | 3,595 LoRA A/B pairs with rank 16 and alpha 32. They cover attention, dense MLPs, shared experts, retained routed experts, and routers. Each of the 42 router B matrices contains only the 24 selected rows, in slot order. | Factors · Module mapping · Patch |
| RCO 1.0 | 202 attention tensors and 126 shared-expert tensors. The build used the FP32 difference between two dequantized Q4_K_M donor revisions. The patch records the exact bytes that changed in our GGUF after requantization. | Patch · Tensor list · Donor byte ranges |
For a byte-for-byte reconstruction, the script reads the patches and their indexes. For weight-level experiments, use the AZ matrices, the selected Geo3K factors, or the source ranges for the RCO tensors. The Geo3K factors keep the original expert names. When merging them into the pruned model, use the module mapping and the expert map to match each factor to the correct slot. AZ patch index · Geo3K patch index
Download the utilities
Use the Hugging Face CLI to download the full package for all the examples below.
hf download biscet/GLM-5.3-Flash-34B-A17B-Utility --local-dir glm-utility
To download a single component with the tools and recipe, set component to shared-az, geo3k, or rco. The example below includes everything needed to recover the Geo3K build from the release GGUF.
component=rco
hf download biscet/GLM-5.3-Flash-34B-A17B-Utility --local-dir glm-utility \
--include "components/$component/*" --include "tools/*" --include "recipe/*" \
--include params.json --include SHA256SUMS --include LICENSE --include README.md
For a path that crosses several merge stages, download each component along that path into the same directory. Run cd glm-utility and compare your input GGUF's SHA-256 digest with the stage digests in params.json to choose --from-stage.
Usage
Run the commands from the root of this repository. The input can be a GGUF from any of the five stages listed below. If you have the GGUF from the main model repository, start with the second command.
Build the release from the original pruned Q5. Allow about 23.36 GiB of free space for the output file. The script checks the SHA-256 digest of the input and every stage it processes. The GGUF appears at the requested output path once all checks pass.
python3 tools/apply.py pruned-base-Q5_K_M.gguf \
--from-stage base --to-stage release \
--output GLM-5.3-Flash-34B-A17B-Q5_K_M.gguf
Recover the AZ + Geo3K build from the release. Use this intermediate build to compare responses before and after the RCO merge.
python3 tools/apply.py GLM-5.3-Flash-34B-A17B-Q5_K_M.gguf \
--from-stage release --to-stage geo3k \
--output GLM-5.3-Flash-34B-A17B-AZ-Geo3K-Q5_K_M.gguf
Verify the entire reverse path without writing a second GGUF. The --verify-only flag processes the file in memory one block at a time and prints the computed SHA-256 digests.
python3 tools/apply.py GLM-5.3-Flash-34B-A17B-Q5_K_M.gguf \
--from-stage release --to-stage base --verify-only
| CLI stage | Contents | SHA-256 prefix |
|---|---|---|
base |
Original pruned Q5_K_M | fac47987141d |
shared-az |
Q5 with the AZ shared-expert matrices | b2261f929f57 |
geo3k |
Shared AZ + Geo3K | 14560789c01a |
rco |
Shared AZ + Geo3K + RCO 1.0, the file used for evaluation | 9f2054303818 |
release |
The same 1,383 tensors with the release GGUF header | f01ca8d6ceb1 |
Z.ai’s full FP8 model and the pruned base have different tensor shapes. To recover the original pruned Q5 from the release, replace --verify-only in the command above with --output pruned-base-Q5_K_M.gguf. Write the output to a filesystem that supports hard links. Reconstruction script · Full SHA-256 digests by stage
Export a single delta
tools/export_delta.py saves a numerical weight delta as an FP32 Safetensors file. Use --coefficient to set its scale. Geo3K export requires numpy, safetensors, and a CPU build of torch. RCO export requires numpy, safetensors, and gguf. Exact GGUF reconstruction with apply.py uses only the Python standard library.
python3 tools/export_delta.py geo3k model.language_model.layers.10.mlp.gate \
--coefficient 1.0 --output geo3k-router-layer10.safetensors
python3 tools/export_delta.py rco blk.3.attn_kv_a_mqa.weight \
--coefficient 1.0 --output rco-attention-layer3.safetensors
For Geo3K, the script reads the local factors and computes c × (32 / 16) × (B @ A). For a routed expert, the output contains the matrix for one slot and records the original expert ID. For MLA, the script splits kv_b_proj into K and V and transposes K. For RCO, it downloads the specified byte range from each pinned donor revision, verifies both SHA-256 digests, and computes the difference. The binary XOR patch applies only to the exact pair of GGUF builds listed in its index. Delta export script
Validation
I used streaming verification to reconstruct the release from the original pruned Q5 and recover the original Q5 from the release. In both directions, the full SHA-256 digests matched at all five stages, including the GGUF headers. I also checked the values of all 126 AZ matrices and 7,190 Geo3K factors and verified sample numerical delta exports. Validation record · SHA256SUMS · Merge recipe and model checksums
For response-quality results, see the evaluation in the main model card. Model evaluation
Sources and license
Z.ai released the base model. The Shared AZ matrices come from azampatti’s build based on Intel AutoRound. The Geo3K factors come from HollowMan6’s adapter, and the RCO changes come from two revisions published by lapadatbogdan. The merge recipe lists the donor revisions and the order in which they were applied. This package is distributed under the MIT license and retains the original Z.ai copyright notice. Base GLM · Shared AZ · Geo3K · RCO before · RCO after · LICENSE
- Downloads last month
- -