DeepSeek-V4.1-Flash-1017 (oQ4e-mtp-uncensored) on Apple M5 Ultra 512 GB
108-cell real-code concurrency and context matrix (5K to 750K, B=1 to B=16), 1M cold prefill + 18/18 multi-depth NIAH, 36 n=3 variance anchors, and logged DSpark/R=1 ablations. Click any highlighted value to inspect the exact JSON record.
All 108/108 matrix cells (prose, thinking, tool calls x 5K, 50K, 150K, 250K, 500K, 750K x B=1, 2, 4, 8, 12, 16) completed on isolated port 18199 with 0 request errors and 0 repetition-loop failures (rep_bad) using two disjoint real Python/MLX/Transformers source-code corpora (123 files / 762,450 tokens for the matrix; 213 files / 1,009,411 tokens for 1M cold prefill, NIAH, and cold multi-user concurrency).
Native MXFP4/MXFP8 checkpoint + 4-line compatibility fix:niyazirsaliev/DeepSeek-V4.1-Flash-1017-oQ4e-mtp-uncensored (4.529 bpw, 432.03 GB / 402.36 GiB safetensors, 402.37 GiB total repo including metadata, 122.88 GB affine-4 Engram tables SSD-offloaded) transplants Heretic directional ablation onto 38 FP8 attn.wo_b tensors with zero linear requantization. Running B > 1 with DSpark required a 4-line fix in our local decode_moe.py fork so native mxfp4 routed experts enter stock MLX sorted mx.gather_qmm at NB > 16 (batched token rows B * verify_len > 16 under DSpark verification) instead of hitting Wave 43's custom fp8_mma16 kernel's NB <= 16 static assert.
Why dspark_off and base_no_opt track closely on oQ4e: Wave 43's custom affine tiled Metal kernels target affine-quantized checkpoints (such as V1 oQ2.5e). On native MXFP4/MXFP8 oQ4e, disabling those flags (base_no_opt) lands on the same stock MLX quantized_matmul / gather_qmm path (within ~1.3% on prose/thinking overlap and within ~3.7% on variable-length buffered tool decode-union). Speedups above 52.4 tok/s (B=1) and 182.4 tok/s (B=16) on oQ4e come from DSpark/MTP speculative decoding on the built-in 8.05 GB MTP head.
Honest quality scope: V2 verified 18/18 multi-depth NIAH retrieval (50K to 1M), 97.7% strict tool-call validation (252/258 slots passed validate_tool_calls(); all 258 finished with finish_reason: "tool_calls"), and 0/774 rep_bad loops. No formal perplexity, KL-divergence, or coding benchmark (SWE-bench / LiveCodeBench) ran here; the checkpoint author's README reports JailbreakBench refusal counts on M3 Ultra.
Thinking cap at 384 tokens: All 258 thinking-mode slots across the matrix hit finish_reason: "length" with 383 to 384 reasoning tokens (measuring chain-of-thought reasoning decode inside <think>).
Side-by-side comparison: oQ4e (V2) vs oQ2.5e (V1)
Direct comparison across overlapping settings. Keep methodological differences in mind: V2 oQ4e used real non-repetitive Python source code, max_tokens=384 (prose/thinking) and 640 (tool), 16 GB hot cache, a single-model isolated directory, continuous 250 ms memory polling, and unique per-slot nonces; V1 oQ2.5e used a synthetic repeating template, max_tokens=192, 64 GB hot cache, co-resident Qwen3.8-27B, and post-batch memory snapshots. Full V1 tables and caveats are on oq25e.html.
Metric
oQ4e-mtp-uncensored (V2, 4.529 bpw)
oQ2.5e (V1, 2.5-bit mixed)
Disk size / SSD-offloaded Engram / non-Engram on disk
Engram tables offloaded to SSD:122.88 GB (affine-4 gs=32), leaving 309.15 GB on disk (307.23 GB after runtime wo_a MXFP8 and lm_head Q8 conversion; includes 0.97 GB vision/aligner and 8.05 GB MTP head).
40-layer routed MoE (384 experts, top-6, native MXFP4):752.03 MB per unique active expert (250.68 MB each for w1, w3, w2), which is +44.9% heavier per unique active expert than oQ2.5e (519.05 MB).
Scope and provenance: This table is a short-context, weight-only (zero-KV-read) DRAM-bandwidth lower bound at an assumed 950 GB/s sustained ceiling (vs 1,024 GB/s theoretical peak), excluding KV-cache reads, indexer-K scans, activation traffic, Engram SSD lookups, and the 8.05 GB MTP head during drafting. Unlike V1, every R=1 no-draft measurement below is logged directly in v2_bulletproof_oq4e.json (ablations.dspark_off, 5K real-code prose strict overlap-window decode).
With zero drafting, native MLX MXFP4/MXFP8 hits 69.5% of weight-only 950 GB/s SOL at B=1 (52.37 tok/s vs 75.3 tok/s) and 68.4% skewed (86.9% uniform) at B=16 (182.42 tok/s). Turning DSpark ON pushes 5K tool B=1 to 83.21 tok/s, exceeding the 75.3 tok/s R=1 bandwidth ceiling by amortizing the 12.62 GB read across 4.13 tokens per speculative cycle.
Weight-only R=1 bandwidth ceiling at 950 GB/s (green bars: skewed E_unique; black ticks: uniform i.i.d. E_unique) vs logged dspark_off R=1 overlap decode (blue) and Wave 43 + DSpark ON 5K thinking overlap (orange) + 5K tool B=1 marker (red). Sources: roofline_oq4e.json, v2_bulletproof_oq4e.json.
Per-slot raw decode and concurrent decode aggregate
Top tables report median per-slot server generation_tokens_per_second (with n=3 standard deviation shown in parentheses on the 36 repeat variance anchors across 5K, 150K, 500K, and 750K at B=1, 8, and 16). Bottom tables report true concurrent decode throughput without invalid sum(raw_list) summation: strict full-concurrency overlap-window throughput [max(t_first), min(t_last)] for streaming prose and thinking (with decode-union throughput in parentheses), and decode-union throughput total_comp / (max(t_end) - min(t_start)) plus effective concurrency Beff and strict JSON schema validity for buffered tool calls.
Variance and Trial-1 drift disclosure: Repeat n=3 anchors reveal both upward and downward single-trial variance at T=1.0. On 750K_thinking_B1, matrix Trial 1 landed at the low end (47.64 tok/s vs n=3 median 61.66, range 47.64 to 63.69, sd 8.74). Conversely, on 150K_thinking_B1 Trial 1 was the high draw (72.35 vs n=3 median 62.12, min 56.37, sd 8.09), and on all 9/9 5K anchors matrix Trial 1 was the highest of the 3 trials (for example, 5K_prose_B161.34 vs median 58.40, 5K_tool_B183.21 vs median 79.27, and post-matrix repeats on 5K_prose_B16 and 5K_thinking_B8 dipped to 154.09 to 159.42 and 125.44 to 126.16 tok/s overlap, below dspark_off). Also note that 50K_prose_B8 dipped to 96.9 tok/s overlap (12.82/s per slot), matching 5K_prose_B8 where DSpark overhead trailed dspark_off.
Top row: median per-slot raw decode across B=1..16 and 5K..750K with vertical n=3 min/max whiskers on variance anchors. Bottom row: strict overlap-window aggregate (prose/thinking) and decode-union aggregate (tool). Evidence: v2_bulletproof_oq4e.json.
Per-slot raw decode (tok/s, median; n=3 sd in parentheses on anchors)
Wall-clock end-to-end throughput and warm shared-prefix TTFT
Every request in V2 carries a unique per-run, per-cell, per-slot nonce plus 32 distinct prompts per mode, keeping fresh uncached suffix tokens steady at 106 to 193 tokens per slot across B=2 to B=16 (zero cross-B exact-prompt leakage). Wall-clock aggregate output (total_comp_tokens / wall_s) reaches 167.9 tok/s in tool calls (5K B=16), 146.2 tok/s in prose (5K B=16), and 136.2 tok/s in thinking (5K B=16), holding 69.3 to 77.9 tok/s wall aggregate at 750K B=12.
Left: wall-clock end-to-end aggregate throughput on schema-validated tool calls (5K..750K x B=1..16). Right: warm shared-prefix median server TTFT for prose. Evidence: v2_bulletproof_oq4e.json.
Wall-clock E2E aggregate (tok/s; per-slot median in parentheses)
Multi-depth NIAH (50K to 1M), 1M sustained decode, and cold concurrent prefill
Before running the matrix, a fresh server executed 3-needle multi-depth Needle-in-a-Haystack checks (passkeys injected at 10%, 50%, and 90% depth inside disjoint real Python source code, temperature=0.0). Execution order matters for cache accounting: 1M cold NIAH ran first (0 cached), caching the leading ~100K tokens of Corpus B before its 10% needle; 50K ran next (0 cached because 10% depth ~5K sat below one 8,192-token KV block); then 150K..750K matched 5.5% to 9.8% of Corpus B's prefix up to their own 10%-depth needle (8,192 to 73,728 cached tokens). In all rows, srv_prompt_tps divides uncached tokens (prompt_tokens - cached_tokens) by srv_prefill_s. Across all six contexts, oQ4e-mtp-uncensored retrieved 18/18 needles (3/3 at every context length) with +0.0 MB new swap.
The full cold 1M prefill (999,708 tokens, 0 cached) completed in 387.51 s (6 min 28 s) at 2,579.83 tok/s server average (2,573.09 tok/s client TTFT) and 313.55 GiB peak wired RAM. Immediately reusing that cached 1M prefix, sustained 512-token prose decode held 44.30 tok/s at T=1.0 (client inter-SSE-chunk p50 128.5 ms across multi-token DSpark speculative bursts, ~22.6 ms/tok mean) and 46.64 tok/s at T=0.0, both with rep_bad: false and +0.0 MB new swap. The 1M NIAH answer itself (55 tokens) decoded at 25.72 tok/s because it was the first decode request on a fresh server (incurring lazy Metal decode/MTP shader JIT and calibration overhead on top of post-1M-prefill setup), whereas subsequent warmed decodes hit 63.95 tok/s on 28-token 750K NIAH and 44.30 to 46.64 tok/s on 512-token 1M decode.
Left: uncached server prefill speed and 3-needle multi-depth NIAH scores (18/18) from 50K to 1M tokens (x-ticks show exact cached prefix percentage). Right: cold multi-user concurrent prefill (cached=0, unique prefixes) at 5K and 50K for B=1, 4, 8. Evidence: v2_bulletproof_oq4e.json.
Cold multi-user concurrent prefill (cached=0, disjoint prefixes per user)
To measure cold multi-tenant traffic (distinct repositories with zero prefix sharing), 5K and 50K unique prefixes ran concurrently at B=1, 4, and 8. Aggregate cold prefill is computed as sum(prompt_tokens) / max(client_ttft_s) (so the denominator is the slowest slot's TTFT rather than median TTFT). At 50K, aggregate cold prefill holds steady at 3,349.2 to 3,302.1 tok/s across B=1..8 while median client TTFT scales linearly (14.90 s to 112.30 s). At 5K, all three batch sizes sat lower (1,268.8 / 821.2 / 1,437.6 tok/s) because of first-shape Metal shader JIT compilation on the fresh server (same effect seen in warm_5K_prose at 12.08 s) and lower short-prompt prefill utilization.
Engine ablations, DSpark acceptance (tau), and real vs synthetic corpus A/B
Three controlled ablations isolate each component on oQ4e:
base_no_opt vs dspark_off (R=1): Toggling off Wave 43's affine kernel flags stays within ~1.3% on prose/thinking overlap and within ~3.7% on variable-length buffered tool decode-union (within single-trial run jitter), confirming that oQ4e runs native MLX MXFP4/MXFP8 kernels without depending on affine-specific optimizations.
dspark_off vs Wave 43 + DSpark ON: Server-logged MTP telemetry across all 774 matrix requests (dspark_tau_oq4e.json, 18/18 warmup UID boundaries aligned 1:1; averaging post-activation MTP steps per measurement_note, with partial coverage on 750K_prose_B2/B4) shows mean accepted tokens per cycle of 2.32 in prose (67.0% draft acceptance), 2.79 in thinking (76.3%), and 3.25 in tool calls (85.5%). Compared with matrix Trial 1, that yields +17.1% (prose), +21.6% (thinking), and +58.9% (tool) at 5K B=1, and +10.3% (5K thinking), +16.9% (250K thinking), and +22.9% (5K tool) at B=16. On 5K_prose_B8, DSpark overhead lost -7.2% vs dspark_off (134.60 vs 145.09 tok/s), and post-matrix n=3 repeats on 5K_prose_B16 and 5K_thinking_B8 also dipped below dspark_off.
Real Python code vs synthetic repeating template: Re-running the V1 8-sentence synthetic template post-matrix on oQ4e inflated 250K tool decode by +16.1% (B=1) and +12.7% (B=16) while showing -22.6% on 5K prose B=16. Note two caveats on this A/B: synthetic runs compare against single-trial matrix anchors (against the post-matrix real n=3 median of 9.86 tok/s on 5K_prose_B16, the delta narrows to -10.8%), and ablation_real_vs_synth used a fixed target - 160 prefix reserve for all modes, making 5K_tool synthetic ~620 tokens longer than 5K_tool real.
Left: base_no_opt vs dspark_off (R=1) vs Wave 43 + DSpark ON across 5K and 250K. Right: synthetic repeating template vs real Python source code A/B delta and server-logged DSpark tau summary. Sources: v2_bulletproof_oq4e.json, dspark_tau_oq4e.json.
Continuous 250ms peak wired RAM and near-zero swap delta
Every cell ran inside a continuous 250 ms background vm_stat and sysctl vm.swapusage sampler with an isolated single-model directory, 16 GB hot KV cache, and Engram SSD offload (122.88 GB offloaded). Across all 108 matrix cells plus 1M cold prefill and 1M sustained 512-token decode, peak wired RAM ranged from 305.15 GiB (5K prose B=4) to 370.97 GiB (750K prose B=16).
Pre-existing host swap disclosure: Because the Mac Studio was not rebooted after earlier workloads (including V1), macOS started V2 with ~20.7 GiB of pre-existing OS swap (21,200.9 MB before 1M cold; 21,215.2 MB before the matrix; plus 36.1 to 76.8 GiB compressed memory across the matrix and 65.5 GiB during 1M cold). V2 itself induced +0.0 MB new swap during 1M cold prefill and 1M decode, +11.87 MB net drift across all 108 matrix cells (21,215.19 to 21,227.06 MB), and at most +11.19 MB (0.01 GiB) in any single cell, with pmset -g therm reporting zero thermal or performance warnings.
Left: true 250 ms-polled peak wired RAM across B=1..16 and 5K..750K (max across 3 modes). Right: per-cell macOS swap delta across all 108 matrix cells in run order atop a ~20.7 GiB pre-existing host swap baseline (max single-cell delta +11.19 MB; net drift +11.87 MB). Evidence: v2_bulletproof_oq4e.json.
Excluded B=24 and B=32 on oQ4e: Because oQ4e holds 307.23 GB of resident non-Engram weights (vs 217.9 GB runtime on oQ2.5e), concurrency was capped at B=16 so 750K context remained inside physical wired memory without new swapping (peaking at 370.97 GiB).
Private local fork + 4-line mxfp4 fix: All V2 runs used our private local oMLX 0.8.4 Wave 43 fork (base commit 6562345, not yet upstreamed) plus a 4-line fix in decode_moe.py routing mxfp4 routed experts to stock MLX mx.gather_qmm at NB > 16 (batched token rows B * verify_len > 16).
8,192-token prefix block alignment on B=1 warmups: Even with explicit per-mode warmup before B=1, 5K B=1 sat below one 8,192-token KV block (4,958 to 4,997 uncached tokens), and 50K..750K B=1 prefilled 180 (500K_prose_B1) to 8,381 (500K_tool_B1) uncached tail tokens before B=2..16 settled at 106 to 193 fresh suffix tokens per slot. That explains why B=1 server TTFT slightly exceeds B=2 on several tiers (e.g., 6.32 s vs 3.81 s).
First-shape Metal JIT warmup: Fresh-server startup compiles Metal shaders lazily on the first encounter of a new batch shape, inflating TTFT on warm_5K_prose (12.08 s) and cold_5K_prose_B1/B4/B8, as well as slowing the very first decode (cold_1m_niah at 25.72 tok/s over 55 tokens).
Six tool-call validation failures out of 258 slots: All 258 tool slots closed with finish_reason: "tool_calls" and 2 assembled tool calls each (516 total); 6/258 slots across 4 cells (5K_tool_B8/B12/B16 and 150K_tool_B16) failed validate_tool_calls() (JSON parse, tool name, required-field, and enum checks in bench_v2_bulletproof.py; per-slot failure reasons were not saved in the aggregated JSON), yielding a 97.7% pass rate.
Thinking cap at 384 tokens and no PPL/KL eval: Thinking cells hit max_tokens=384 inside <think>; quality verification in V2 covers 18/18 NIAH, 97.7% tool-call validation, and 0 rep_bad, not perplexity or coding benchmarks.
data/env_and_config_redacted.json: hardware identifiers, software versions, fork patch notes, launch flags, and redacted model settings for both V1 and V2.