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_callsarray. -
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
contentverbatim,tool_callsempty.
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:
contentcontains the literal XML block above,
finish_reason=stop,tool_callsabsent. 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)
- Model emits the XML tool call as content; server passes it through unparsed.
- 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. - 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), modelGLM-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 (commitbe8bccbec, from PR
#415): a well-formed call to an unoffered tool is now returned astool_callsunder 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:
contentcontains the raw
call markup,finish_reason=stop,tool_callsabsent:<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
toolslist parses correctly.
Request for this kit
- Port the Zig-engine fix (
be8bccbec/ upstream PR #415) as a patch, so unoffered but
well-formed calls reach the client astool_callsunder their own name. - 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.