GLM-5.3-Flash, IQR-V4: radiance container

zai-org/GLM-5.3-Flash, converted from Z.AI's block-FP8 release into a single .rad container for the radiance inference engine (AMD RDNA4, ROCm), at four cards with the routed experts tiered to host memory.

Engine. Radiance 2.x plus the GLM-5.3-Flash support series (the glm5next changes for an IQ8R trunk and IQR experts, and the plugin/glm kernel library). Until that series is merged upstream, serve it with the image built from it: docker.io/animusnull/radiance:glm5.3-55d870e. Builds without plugin/glm cannot serve its int8 latent cache.

File glm53-flash-iqr-v4.rad, 158.9 GiB
Routed experts 4-bit computed-trellis codes (IQR-V4) after a 128-point Walsh-Hadamard rotation, one f32 scale a row
Trunk dense and shared feed-forward and the MLA q_a, kv_a, q_b and output projections as rotated int8 (IQ8R), a scale per 256 columns
As released KDA projections and state, MLA kv_b, the DSA indexer, routers, norms, mHC connections, embedding, lm_head and the vision tower, as stored in the release
Speculator none: the MTP layer is left out (--max-spec 0)
Context 262,144 tokens, served at 262,144

The routed experts are rounded to nearest; no calibration data was used.

Quality

The reference is a build of the same model with MXFP4 routed experts and the release's FP8 trunk, not the original FP8 release. Full-vocabulary KL divergence, teacher forced over 97,000 positions of code, documentation and chat, plus one 33,000-token document:

mean KL top-1 agreement perplexity vs reference long document, 16k to 33k
this container, int8 latent cache 0.149 87.14% x0.985 0.084
this container, fp8 latent cache 0.151 87.10% x0.989 0.083

KL falls with position on the long document for both caches. Coherence 20/20; needle in a haystack 9/10 to 116k tokens.

Serve

The routed experts do not fit four 32 GB cards. The engine keeps the hottest in VRAM and streams the rest from a pinned host pool, so the host needs about 64 GiB of free RAM for the pool.

# radiance.yaml -- run with: radiance --config radiance.yaml
server:
  host: 0.0.0.0
  port: 8000
  # plugin/glm first: its int8 latent-cache attention must take the op before libr4d's bf16 rows.
  kernels: glm,libr4d,libavx,libref
memory:
  gpu-headroom-mib: 96
scheduler:
  load-timeout: 1800s
  warm-up: true
models:
  glm-5.3-flash:
    model: glm53-flash-iqr-v4.rad
    tp: 4
    placement: expert_tiered
    host-pool-mib: 65536
    max-num-seqs: 4
    max-model-len: 262144
    max-num-batched-tokens: 2048
    vision-tower-placement: ram
    kv-cache-dtype: i8
    num-speculative-tokens: 0
    prefill-interleave: 4
    prefix-cache-mib: 32768

On 4x Radeon AI PRO R9700 (gfx1201, PCIe Gen4 x16), Threadripper PRO 3955WX, 512 GB RAM, with these settings (BetterBench, tokens/s):

decode 1 / 2 / 3 / 4 streams prefill 2k / 32k / 128k TTFT p50
this container 58.4 55.3 / 85.6 / 93.7 / 100.3 1780 / 2168 / 2102 272 ms

The server speaks the OpenAI API (/v1/chat/completions, /v1/completions) with tool calls and structured output. The vision tower is in the container; image input was not benchmarked for this release.

How this file was made

rad-convert zai-org/GLM-5.3-Flash --recipe glm53-iqr-v4.recipe \
    --max-spec 0 --kv-cache-dtype bf16 -o glm53-flash-iqr-v4.rad

The recipe is glm53-iqr-v4.recipe in this repository (also data/recipes/ in the engine series). The first rule that matches a weight decides it, and every weight no rule names keeps the release's own form.

License

MIT, as the base model; see LICENSE.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for animusnull/glm-5.3-flash-iqr-v4

Finetuned
(44)
this model