GLM-5.3-Flash: 320B total parameters / 18B active

Same. My dank memes are for me and the sparks.

Okay I have a question:

What’s better, a 256B model running at nearly native, or a 320B (or larger) model running at the quants we have them at now?

I’m legitimately kind of curious as to how it breaks down. My current instinct based on experiences says that maybe the larger model will be smarter, but it will also be less stable and prone to looping and other weirdness. Funny tradeoffs we have here.

Also has any big breakthrough happened in serving this model with a better balance of fidelity/speed recently? I haven’t been keeping up admittedly. I haven’t updated @giles8 's repo since Oct 19th. It’s been pretty stable.

I do not anticipate any improvements to the Python-based Tensorfold (v0.6.x). Not mine, nor Mia’s.
Everyone is now following the Zig Tensorfold branch (v1+) I believe it has a quick warm context resume feature that can reduce ttft between restarts.

I found it very usable, no standout improvements.

It looks like lots went to DSV41F-1017, others are just quietly happy with GLM53F.

I’m sure a bunch of excitement and a game of mysical chairs will commence when the next open weight models drop.

I have totally switched from GLM to DS, since I learned to handle the depth of his approach to solving the problem. And sometimes, I am using Qwen 3.8 Flash Next as a fact-checking model after DS.
Here is the great test with the real tasks from non-vibecoder https://youtu.be/KrWBNIaQQD8?si=qdg_8Q3hzcuzJSc5, which shows how predictable modern open weight models are in their decisions.

Haha same here, I use qwen 3.8 fn on Mac as a critic and minority report. Works really well to keep deepseek in check! BTW I switched fully to splash engine and 3.5 bpw quant - leaner on ram, much faster (100-140 t/s) and quality keeps up with 4 bpw oQ4.

@0rand which 3.5bpw QFN are you using? Looking for something faster for my Mac too.

Oh, I hate doing this myself, just going to paste some info from the model in to the forums, I’m reallly sorry


[# GLM-5.3-Flash on two DGX Sparks — the native-engine build, tuned and measured

Everything in this card is measured, not estimated: every number quotes a logged
campaign receipt. All edits in the underlying repository are AI-generated
(OpenCode agents running GLM, by Z.ai) — the receipts discipline is the review.

The rig

  • Model: GLM-5.3-Flash (Z.ai’s open-weights model), served from an EXL3 4-bit
    expert pack (resharded for the loader’s direct-read path; tensors byte-identical
    to the public pack), DFlash2 drafting on top.
  • Hardware: a pair of NVIDIA DGX Spark (GB10) boxes as a TP=2 pair — one head
    (rank 0 + API), one worker (rank 1) — connected over RoCE.
  • Engine: TensorFold’s native engine (Zig + CUDA, no Python at serve time)
    at v1.2.4, plus a 13-patch local tuning stack (below). Context 524,288
    tokens
    , 4 concurrent streams, fp8 KV pages, fp8 dense weights, images and video
    in.

The tuning stack (13 patches, each A/B-qualified bit-identical)

Every patch is content-verified: its A/B’s greedy outputs are identical to the
byte across arms, the §2 content gates pass, and hardmode holds. Each has an
environment kill switch and can be dropped independently.

# Patch What it does
1 absorb-mma a prompt’s absorb_q/expand_v as tensor-core GEMMs (deep fills −6.8/−7.0/−6.9%)
2 fp8-pages fp8 KV caches on the paged-KV path
3 pagerows-fix the E4M3 tables’ page rows
4 selist-fix the prefill’s token lists stay logical (a loop bug)
5 packed-s2 two-stage packed-prompt matmuls (pp +3.4/+5.8/+6.7%)
6 exl3prompt the EXL3 prompt path in one call per pass (pp +24.5/+22.7/+23.3%)
7 attnfetch8 the latent attention’s FP8 key tiles load 8 bytes at a time, a tile ahead (pp +1.7-4.3%, tg +2.9-10.9%)
8 loaddirect each layer’s tensors read past the page cache while the previous layer packs (the load wall 103 s → 83 s)
9 moeside a decode window’s MoE shared expert on a second stream (solo +2.9%)
10 zmoe-fuse a decode window’s MoE glue fused into one block; the grouped experts without slot-row copies (c4 +4.2%)
11 zprompt the prompt experts’ main loop recompiled for 8-member column blocks, the next k-tile decoded among the current MMAs (pp +1.8-2.5%)
12 zs2 the packed prompt GEMMs’ loads fixed once a block + 8-bit codes to bf16 pairs in fewer steps (pp +1.6%)
13 zshfl the 4-bit grouped experts read every trellis word once (bit-safe; neutral on this shape — kept as the base for the next patch)

The scoreboard (same-window duels against the stock EXL3/Python recipe)

Both engines serve the same model, the same probes, the same window
(campaign-20261107-225124 unless noted):

Front Ours Stock recipe Ratio
Load wall (cold, both ranks) 83 s 93.7 s 112.9% — crossed
Solo decode (2,048-token, t/s) 68.0/68.1 58.5/58.6 116.2% — crossed
2-stream aggregate (t/s) 118.6 110.2 (its top-of-range; floor 86.4) 107.6% at its top, 137% at its floor
4-stream aggregate (t/s) 168.9 154.8 (its floor; range 155-241 with cache state) 109.1% at its floor
Streaming latency per token 14.7 ms 17.1 ms 116% — crossed
TTFT at depth, cold (d8192) 3,803 ms 17,129 ms 450% — crossed
Request overhead (TTFT, 1-token) 183 ms 185 ms 98.9%
Prefill (pp2048, t/s) 1,519 1,518 100.1% — crossed (campaign-20261107-214342)

The prefill chain across four days of adoption: 1,150 → 1,434 (the one-call EXL3
prompt path) → 1,458 (the attention prefetch) → 1,495 (the prompt experts’ loop
rework) → 1,519 (the packed-prompt loads) — the last uncrossed front fell.

Quality

  • hardmode: 95, thirteen consecutive runs (the ceiling-holding scenario
    battery; TC-51 and TC-92 pass in every run).
  • Vision: 4/4 on the raster suite (raster-only assets with agent-verified
    ground truth — no improvised fixtures).
  • The §2 content gates, every window: greedy determinism, drafted = plain,
    resumed = fresh, concurrent = solo (content-identical; the raw-byte
    differences are the engine’s documented nondeterminism).
  • The cost tables were dropped after an attribution duel showed they cost the
    2-stream aggregate ~16% and bought nothing measurable.

Benchmarks (tool-eval-bench)

A single full run on the adopted stack — parallel=4, hardmode on, perf on,
needle-in-a-haystack enabled (--seed 42 --perf --needle --hardmode --parallel 4)
— is in flight in the current window; this section’s numbers land with the next
digest. The standing hardmode score on this stack is 95.

Serving notes

  • Every tuning patch has an opt-out environment switch (TF_GLM_MOE_FUSE=0,
    TF_GLM_EXL3P=0, TF_GLM_MM_P2=0, TF_EXL3_SHFL=0, TF_GLM_SHARED_SIDE=0,
    TF_GLM_ABSORB_MMA=0, TF_LOAD_DIRECT=0), so a regression on different
    hardware is one variable away, not a rebuild.
  • The porting discipline: each upstream/fork patch is line-verified against its
    source (every added line must appear verbatim in the port), compiled per-arch,
    verified byte-identical from a fresh tree, and only then A/B-qualified on the
    real model.
  • The engine’s admission refusals print their own arithmetic — a refusal is a
    receipt, not a failure to retry blind.

What’s next

The fork’s decode-side series (the read-once trellis landed; the chain as
dependent launches is next), the PDL launch-chain set, and the
hyper-connection split/overlap set (+36% at 50k prompts on the fork’s
hardware) are scoped and queued.](GitHub - gilesco/GLM-5.3-Flash-EXL3-2x-GB10-TensorFold-ZIG-testing: TESTING: GLM-5.3-Flash EXL3 + DFlash2 on 2x GB10 (DGX Spark) via TensorFold's native engine, v1.2.0+ — unpatched upstream; successor to the NVFP4 v1 testing line (EXL3 pivot 2026-10-18) · GitHub)

So what I am planning:

Anything that was running on this:

Tomorrow will be pointed to this (the testing will be remvoed), and I will try to work out a release plan, to aoid new pulls from picking a bad release:

'm kind of new to this, so take it all with a pinch of salt.

So overall your new engine is just better in every way? I’m a bit confused because your previous post was written against a “stock recipe”, but I’m not sure whether the “stock recipe” is Mia’s or yours.

Did the context go down, though? I thought previous context was 1m tokens even at fp8 dense, but this one says 500k.

I have stuck with a 512k context, as anything beyond that has seemed to be mostly hallucinations. I am not seeing any benefit from that, and a compact in opencode doesn’t seem to results in a degradation for my projects.

We will have a proper TEB modelcard short;ly, I fully expect that the ongoing iterative process of improvement will now be based on the new model.

Working to that new workflow will be a challenge, expect it overcome easily.

I have noticed odd behavior in a chat Window that grew past 400k tokens in Hermes. The model just stopped outputting meaningful results. In a single prompt processing a large payload, it seemed okay growing to large mass. I guess it might be based on the number of turns in the chat, or there’s some hidden overhead in Hermes that the context counter isn’t seeing.

I am going to say now - and it is written in the repos too - everything is AI driven, there is little to no human checks to any changes. I think the model would respond to an Issue in the repo, or a PR. Think that would be appropriate - it has access to that stuff.

I use this model with hermes. I find things can start to go off the rails as the tokens grow and the number of turns grow. As the tokens/turns grow, I find myself being more specific with my instructions and that seems to help. If things get bad, I start a new session. In fact, I start to plan what I should complete in the current session, and what would be good for a new session. All that said, I am really happy with this setup.

To be clear, I don’t mind AI written posts necessarily. IMO the issue arises when the user doesn’t curate or even instruct the LLM on what goes in there. That’s 5 seconds of prompting. What we end up with is a HUGE preamble, leading to a huge, overformatted AI slop post that no one has the time to sit there and read. I think that’s what most people have an issue with when it comes to AI. It takes maybe 10-30 seconds of “let’s trim this down and make it friendly for humans to read” or similar, and it outputs something you can actually consume. I think that’s what I and maybe others like @0rand have an issue with. It makes the forum incredibly difficult to use.

Anyway I think I might have found an issue in the TF serving stack? At least how it interacts with Hermes. @giles8 Not sure if I have an older version of something, but I had my LLM try to make a summary of the issue by investigating the chat trace itself. Hopefully this isn’t too wordy, I told it to try to summarize:

Edit: Hiding this version, I had it do more investigation and this one seems to be a little off.

Summary

tensorfold: GLM text-channel XML tool calls are returned as plain content, not parsed

Summary

When serving GLM-5.3-Flash (EXL3), tensorfold parses the model’s native (special-token) tool-call
channel correctly, but when the model emits its tool call in the text-channel XML serialization
instead, the raw XML is returned to the client as ordinary content with finish_reason=stop and
an empty tool_calls array. The client (Hermes Agent) then discards the text as an unparsable
tool-call leak, sees an “empty response”, and retries into the same deterministic output — the turn
ends with no result. To the user this looks like repeated timeouts / empty replies from a healthy model.

The two GLM formats

  • Native channel — parsed fine; response arrives with a populated tool_calls array.

  • Text channel — not parsed. The model writes the call into the visible content:

    <invoke name="session_search">
      <arg key="limit">5</arg>
      <arg key="query">firewall pc project</arg>
    </invoke>
    

    This arrives as content verbatim, tool_calls empty.

Which format the model picks appears context-dependent (long agentic contexts with large tool
schema listings seem to bias it toward the XML form); once it picks XML for a given context it
keeps doing so across resamples, so client-side retries don’t recover.

Reproduction

Replaying a stored ~20k-token conversation (system prompt + full tool-schema list + prior
tool-call / tool-result messages) against POST /v1/chat/completions:

  • Full context, streaming and non-streaming: content contains the literal XML block above,
    finish_reason=stop, tool_calls absent. Reproduces deterministically across resamples.
  • A reduced version of the same context (~1.5k tokens, no large system prompt): the model uses the
    native channel and the call is parsed correctly.
  • Occasionally the same full context does parse — i.e. the model’s format choice flips, and the
    server only handles one of the two serializations.

Failure loop on the client side (for context)

  1. Model emits the XML tool call as content; server passes it through unparsed.
  2. Client strips known tool-call XML from the text (by design it does not execute calls that did
    not arrive on the structured channel) — content is now empty.
  3. Client classifies the turn as an empty response and retries with backoff; each retry regenerates
    the same XML, so the turn ends with no output once the retry budget is spent.

Expected behavior

Parse the text-channel XML form into structured tool_calls exactly like the native channel, so
either serialization yields a usable tool call. vLLM’s glm45 tool-call parser implements exactly
this GLM XML format and may be a useful reference.

Environment

  • Server: tensorfold (OpenAI-compatible /v1), model GLM-5.3-Flash-EXL3, speculative decoding
    (draft/MTP) enabled.
  • Client: Hermes Agent, chat-completions mode (streaming and non-streaming both affected).

GLM kit (python engine): tool calls to unoffered tools are returned as plain content, not tool_calls

(Revised after checking upstream issue trackers — the root cause is narrower than “XML not parsed”.)

Summary

When serving GLM-5.3-Flash-EXL3 with this kit (TensorFold engine, pinned python-0.6 build), a
tool call that names a tool not present in the request’s tools list is rejected by the
parser and its raw markup is returned to the client as ordinary content with
finish_reason=stop and an empty tool_calls array. Agent clients that strip tool-call markup
from content (as Hermes Agent does by design) then see an “empty response”, retry into the same
deterministic output, and the turn ends with no result.

This is exactly the mechanism already reported upstream:

  • ashhart/TensorFold #256 (closed Oct 2026) — “GLM tool parser leaks unoffered markup into
    assistant text content instead of stripping or handling it”. A call to an unoffered tool went
    back into the reply text. Fix landed only in the Zig engine (commit be8bccbec, from PR
    #415): a well-formed call to an unoffered tool is now returned as tool_calls under its own
    name, so the client can answer “unknown tool” and the model self-corrects. The Python engine
    is frozen (#286), so the fix will not land there.
  • MiaAI-Lab GLM kit #103 (closed) — same symptom from the agent’s perspective: “raw markup
    reaching the client looks like a normal completed answer, so the agent stops without running
    its intended tool”. Resolved as diagnostics only (patch 0115, TF_GLM_TOOL_DIAGNOSTICS=1
    logs rejections); strict offered-name validation was kept deliberately.
  • Sibling-kit evidence (MiaAI-Lab Qwen3.8-Flash-Next kit #40): “1.0.0 has the fix, TensorFold
    1.0.2 reverts it” — the behavior has flip-flopped across engine releases, so version matters.

Why it looks intermittent

Only calls to unoffered tools trigger it. Tools offered in the request parse fine in both of
GLM’s serializations (native channel and text-channel XML). Agent frameworks that load tools
on demand (a discovery tool describes a tool first, and the model then calls it without the
schema being re-offered on the wire) hit this constantly — and once the model has seen a call in
one form for a given context, it tends to repeat that form across resamples, so client-side
retries don’t recover.

Reproduction

Replaying a stored ~20k-token conversation (system prompt + full tool-schema list + prior
tool-call / tool-result messages) where the model calls a tool that was described to it
mid-conversation but is not in the request’s tools array:

  • Deterministically across resamples, streaming and non-streaming: content contains the raw
    call markup, finish_reason=stop, tool_calls absent:
    <invoke name="session_search">
      <arg key="limit">5</arg>
      <arg key="query">firewall pc project</arg>
    </invoke>
    
  • The same call with the tool present in the request’s tools list parses correctly.

Request for this kit

  1. Port the Zig-engine fix (be8bccbec / upstream PR #415) as a patch, so unoffered but
    well-formed calls reach the client as tool_calls under their own name.
  2. Failing that, port patch 0115 (TF_GLM_TOOL_DIAGNOSTICS=1) so rejected calls are visible
    server-side instead of silently degrading to content.

Environment

  • Server kit: GLM-5.3-Flash-EXL3 on 2x DGX Spark (TensorFold), python engine at the kit’s
    python-0.6 pin; speculative decoding (draft/MTP) enabled.
  • Client: Hermes Agent, chat-completions mode (streaming and non-streaming both affected).

Edit2: I think it’s looking at an older version of the repo it had downloaded so wrong version number vs what I’m serving but doesn’t look like it changes much for this bug anyway until you get to the Zig stack.

Edit3:
Can sort of be fixed via this, apparently?
In hermes’ config.yaml:

  ─ yaml           
  tools:                                                                     
    tool_search:                                                             
      enabled: off     # all tools eager — no bridge, no deferred names

Then if you just trim down your tool list to what you actually use, it still doesn’t actually increase overhead anyway.

Getting the agent to look at this now

This seems to be true for almost every model I’ve tested. Hallucinations and “bad decisions” starts somewhere around 500K-600k , even Claude’s Opus, etc.

The ZIG has been pointed to #415 and your post and made a change. It’s just running its test battery now.

I don’t use Hermes myself, and not noticed any issues with opencode as yet.

This really has opened a can of worms, there are issues with opencode’s parsing as well. I actually went to spark-vllm-docker to try to fix it, and it had the SAME problem.

This has some bigger implications, a model can send stuff to the harness in the same way that web forms can send SQL-injection to the database.

Bit scary, another lesson learned as to how it is important to trust both harness and model.

This manifestation is benign I believe, and hopefully my recent commits guard against it or at least improve it. Now continuing the rebase to v1.2.5 and cherry picking patches/prs.