7.9 KiB
GLM-4.7-Flash Q5 qualification — 2026-10-09
Synthetic tests only. No service logs, existing chat inputs, emails or private user files are read. Mock tool calls never perform external actions. Model-generated code is tested only in a short-lived isolated subprocess with restricted builtins, CPU/RAM limits and a timeout.
Reproducible model source
- Original: https://huggingface.co/zai-org/GLM-4.7-Flash
- Quantization: https://huggingface.co/bartowski/zai-org_GLM-4.7-Flash-GGUF
- Revision:
464d07505b441959737cd04d900f047469614c8d - File:
zai-org_GLM-4.7-Flash-Q5_K_M.gguf - Bytes:
21566252928 - SHA256:
9e0156957bd07760644aa2a3b6d6791ac8796f2c1bc9c75a2cb07cef5ccb5764 - Download: https://huggingface.co/bartowski/zai-org_GLM-4.7-Flash-GGUF/resolve/464d07505b441959737cd04d900f047469614c8d/zai-org_GLM-4.7-Flash-Q5_K_M.gguf
- Deck library ID:
a647be62196981f9925908704e3bfdc4e7de5b146f3b72d680282d7f30bf0105 - Text-only model; no vision projector.
The downloader uses Deck's existing Catalog, including file-size/checksum validation. No weights or credentials belong in Git.
Native installation / restore
These scripts accept a source checkout and state root rather than depending on Docker: python3 download.py /path/to/deck-source /var/lib/deck, then python3 benchmark.py /path/to/deck-source /var/lib/deck, then python3 install-profile.py /path/to/deck-source /var/lib/deck. Execute as the configured Deck service user with its existing dependencies, CUDA access, writable state directory and an installed active CUDA llama.cpp build. baseline.py currently uses the live /var/lib/deck location; it is optional, not part of provisioning or restore.
Installation prerequisites remain Deck's native installation requirements. The scripts do not constitute a complete fresh-Debian installer. The current live deployment is a container; native end-to-end installation/restore remains unverified.
Restore must preserve profiles.json, endpoint.json, the Catalog entry metadata, selected runtime build metadata and the full existing encrypted Deck state backup. Public weights can be redownloaded from the pinned URL above and verified independently of the retired router. Current GPU UUIDs are host-specific: remap devices and repeat memory qualification on replacement hardware. An idle service restart reloads the profile configuration; no host restart or runtime rebuild is required.
install-profile.py creates pre-change copies of profiles and endpoint configuration under <state>/benchmark-glm-q5-20261009/rollback/. To revert, stop the Deck service, restore those two files, and restart it. This restores the pre-install enabled-profile list; review later changes before replacing either file. The downloaded GLM library entry can remain or be deleted through Deck after removing all references.
Test method
One slot; model weights and KV cache on both selected GPUs; no explicit GPU reserve; no MTP for the initial baseline. Fit tries the model's context limit downwards and several layer splits, refusing CPU offload. The benchmark reports actual GPU use as well as memory predictions. Speed runs use thinking disabled and two repetitions each; short and long prompts are identical to the existing-model baseline. Quality checks enable thinking with up to 4,096 output tokens for structured operational questions and up to 2,048 for tool discovery/dispatch; the initial 1,024-token run is preserved separately because it truncated several thinking responses. The coding test uses thinking disabled. Email-address scoring accepts either the bare address or its equivalent display-name form. Both latency and llama.cpp prompt/decode timings are retained. Quality cases check dates/time differences, evidence of email delivery, VPN readiness with unreliable health flags, native skill storage and sandbox/tool routing. These are limited practical checks, not an intelligence benchmark suite or a guarantee of production reliability.
The GLM worker is stopped when testing ends. A qualified profile is persisted only by the separate install step and enabled on Deck's API without changing the existing default model or other profiles. The production API is tested separately through the existing configured connection; secrets are never printed or copied into the report.
Confirmed result
Installed and enabled profile GLM-4.7-Flash - Q5, API ID glm-4-7-flash-q5, profile ID df8442df6dd14a799be0435b1cb2dd48. Presets: Standard (temperature 1.0, top-p 0.95) and Coding (temperature 0.7, top-p 1.0). Both use top-k/min-p 0, one slot, 200,000 shared context tokens, full GPU offload, layer split 58/42, Q8 KV cache, batch 1024, microbatch 128, six CPU orchestration threads, no MTP and no artificial VRAM reserve. CPU orchestration/staging is still needed; full GPU means all transformer layers and KV execution are offloaded, not zero host RAM.
Active CUDA runtime: 2691c00a7ec545168edaa0e01984e718, llama.cpp v0.6.0, commit d81235049384534c167caea52b85a694f6103d14. No new runtime or image build. Live Deck image remained athena-deck-standalone:9bb3cfec15b9af03; the container was restarted to reload only persisted profile/API configuration. Full-GPU fit and real API generation were verified. The largest input tested was approximately 9,530 GLM tokens; a fully populated 200,000-token conversation was not stress-tested.
Production GPU use after requests: RTX 5080 15,892/16,303 MiB (97.5%); RTX 3060 11,365/12,288 MiB (92.5%). Concurrent TTS is not part of this maximum-LLM-VRAM qualification; the global audio residency policy was not changed.
| Measurement | GLM Q5 | Existing Qwen Lukes Devlab |
|---|---|---|
| Short-prompt decode | 91.3 tokens/s | 34.9 tokens/s |
| Long-prompt decode | 67.4 tokens/s | 33.4 tokens/s |
| Same long text, input processing | 8.82 s / 9,530 tokens | 9.47 s / 11,016 tokens |
| Same long text, complete 320-token response | 13.57 s | 19.03 s |
A different tokenizer means input token counts and the textual length of 320 output tokens are not identical. These are current profile comparisons, not a controlled quantization/architecture study. The existing Qwen profile uses MTP and a vision projector; GLM uses neither. Prompt cache was disabled. The first GLM run incurred an additional one-time initialization delay. The final API cold-load-plus-short-reply took 11.18 seconds; subsequent loaded-model measurements are separate.
Practical results with thinking enabled and sufficient response budget:
- Date, weekday, train duration and missing realtime data: correct.
- Email authentication versus visible sender and unsent draft: semantically correct. It returned the full display-name address rather than just the bare address. The strict initial scorer rejected that representation; exported results mark semantic acceptance separately. Example mail identifiers in the exported reports are pseudonymized.
- Sandbox restrictions and direct
search_tools: correct. - Tool discovery and subsequent dispatch using the discovered server ID/schema: both correct.
- VPN health flag: incorrect; treated the unreliable health flag as decisive, despite the premise.
- Native skill versus filesystem backup: incorrect; returned that editing the backup updates the native skill and returned a boolean instead of the requested tool name.
- Coding without thinking, general sampling: only 4/9 functional cases passed; overlapping intervals were not merged correctly. The issue reproduced in both runs.
- Same coding task with thinking and recommended coding sampling, through the production API: 9/9 cases passed. It generated 3,784 tokens including thinking and took about 41.7 seconds of decoding.
Several initial thinking responses exhausted a 1,024-token output budget; the final operational run used 4,096. Those truncations are not counted as evidence of an incorrect completed answer. The remaining failures above are completed, substantive errors. Faster decode does not establish superior reasoning or tool reliability. This is an additional profile, not a replacement for the current default.