Repository navigation
v26.11.4-botdev.4 — Bit-Exact JSON-Schema Spec Decode, GLM-5.3 Zero-Barrier vqmv & DSpark Overlap
LatestBit-exact greedy speculative decoding under JSON grammar (response_format: json_schema / json_object, including unbounded <think> → JSON reasoning spans), hybrid zero-barrier vqmv verify kernels for GLM-5.3, and async draft-ahead overlap / GPU-queued drafting for DeepSeek-V4.1 — all verified at 0 bit diffs against 1-row serial decode.
Verified Mac Studio M5 Ultra Results
| Model / Pack | Hardware | JSON-Schema Spec (0 diffs) |
Concurrent Batched Spec (N=2 / N=3 / N=4) |
Peak Wired |
|---|---|---|---|---|
| Full 744B GLM-5.3 (4-bit) | 512 GB M5 Ultra | 43.3 tok/s agg (1.43× serial; 45–46.4 strict, 55.2 json_object 1.81×) |
52.7 / 58.3 / 61.8 tok/s (0 diffs; solo ddalcu#2/+7%, ddalcu#3/+16%) |
407.9 GiB |
DeepSeek-V4.1-Flash twig Hybrid |
256 GB M5 Ultra | 105.5 tok/s agg (1.56× serial incl. <think>; 112–119 strict, 143.2 json_object 2.06×) |
123.3 / 162.7 / 167.7 tok/s (0 diffs; +5.9% at N=4 with overlap+queue) |
214.4 GiB |
| DeepSeek-V4.1-Flash Lossless | 512 GB M5 Ultra | Supported (dspark constrained greedy) |
102.6 / 146.2 / 153.6 tok/s (0 diffs) |
300.8 GiB |
What's New
- Bit-exact greedy JSON-schema &
<think>speculative decoding (src/engines/mlx/grammar/greedy.zig,src/engines/mlx/spec/dspark_constrained.zig): Admits clean greedy grammar-constrained requests on native draft stages across all HTTP API surfaces (chat_completions,responses,anthropic,ollama,cli,batch), truncating drafts against the JSON grammar automaton (and unbounded<think>reasoning boundaries) before verify, selecting exact constrained argmax via a GPU top-64 shortlist with full-mask fallback on misses, and rolling back on first mismatch (0diffs vs serial, including SSE streaming and<think>→ JSON hand-offs). - GLM-5.3 hybrid zero-barrier
vqmvverify kernels (src/plugins/glm_moe_dsa/): DispatchesK <= 4to zero-barrier streaming L1glm_dec_qmv2_l1_slice_h(cutting 78-layerqkv+overify from25.4 → 9.9 msatR=3and17.9 → 10.8 msatR=4) andK > 4to double-buffered direct-u4TG SRAM (NB <= 8,18.6 msatR=8), withR=2..16self-check coverage and GLM-5.3 absent/unknown effort defaulting tohigh(thinking-off tolow). - DeepSeek-V4.1 async draft-ahead overlap & GPU-queued drafting (
--dspark-overlap,--dspark-queue 0.65): Wires realdsparkPrefetchoverlap anddsparkRoundQueued(chaining speculative full-accept commit + next draft behindasyncEval(am32)with exact state save/restore on partial accept), cutting GPU wait by ~28% (8.29 → 5.98 ms) and liftingtwigN=4from158.4 → 167.7 tok/s(+5.9%) andN=1copy by +10.7%. scripts/serve-twig.sh: Enables--dspark-overlap --dspark-queue 0.65on the 256 GB profile by default.