Skip to content

v26.11.4-botdev.5 — Argmax-First JSON/<think> Spec, 4→2 Group Syncs & Per-State Prefetch

Choose a tag to compare

@jeberly jeberly released this 29 Nov 22:10
· 1 commit to main since this release

Unified v26.11.4 M5 Ultra fork — bit-exact (0 diffs vs serial) DeepSeek-V4.1 & GLM-5.3 speedups + hardened constrained spec parity:

Highlights (v26.11.4-botdev.5)

  • Argmax-first constrained verify (prepareArgmax): replaces 16-op topK(64) + dual Metal argsorts with a 2-op suppression-aware argmax + scalar gather across DeepSeek-V4.1, GLM-5.3, and serial JSON. Skips topK on 95–99.9% of legal <think> and JSON verify rows, routes rare NaN-free misses to single-row topK, and routes NaN/-inf directly to full-mask argmax (guaranteeing full-vocab NaN parity).
  • DeepSeek-V4.1 4→2 exact group verify syncs & per-State prefetch: fuses batched verify + argmax into one eval with async group finish, moves draft-ahead prefetch onto per-slot State (0 multi-slot prefetch misses), enables --dspark-overlap on constrained rounds, and mirrors reasoning-phase truncation in copy rounds (<think> copy hits).
  • Hardened constrained reasoning parity & error-path safety: preserves atomic </think> closers that overlap EOS IDs (skip_eos_check), aligns reasoning repetition-loop recovery to the exact serial token index, and hardens DeepSeek commitMain / dsparkRoundQueued / dspark_group rollback error paths.

Verified M5 Ultra Results (0 Bit Diffs)

Setup Solo (drafted / plain) Concurrent batched spec (N=2/3/4) JSON-schema + <think> spec (0 diffs) Peak Wired
DeepSeek-V4.1-Flash Lossless (512 GB) 136–167 / 61 109.9 / 148.9 / 157.7 tok/s 97.1 agg / 136.6 peak (2.28×) 301.3 GiB
DeepSeek-V4.1-Flash twig (256 GB) 149–187 / 70 127.1 / 160.0–168.4 / 166.3–170.0 tok/s 107.1 agg / 129.9 router / 143.6 peak (2.06×) 216.0 GiB
Full 744B GLM-5.3 4-bit (512 GB) 48–58 / 27 52.7 / 58.3 / 61.8–62.2 tok/s 41.5–43.3 agg / 55.2 peak (1.81×) 407.9 GiB

Full build guide & launch recipes: BOTDEV.md