# V1 oQ2.5e audit notes and known limitations

Pre-publication review of `full_matrix_18199.json` and `bench_full_matrix_18199.py` identified the methodological caveats listed below. Read these before extrapolating the V1 numbers to other workloads. A V2 benchmark run on `niyazirsaliev/DeepSeek-V4.1-Flash-1017-oQ4e-mtp-uncensored` (real non-repetitive source-code corpus, concurrency B=1..16) is currently running to address these items and will be added to this repository once complete.

## 1. Summed per-slot raw decode rates are excluded

In `full_matrix_18199.json`, each cell includes a field named `raw_agg_tps` computed as `sum(raw_list)` across all B slots. Across `B >= 16`, `raw_agg_tps` exceeds `with_prefill_wall_agg_tps` by 22% to 151% (50% to 151% at 150K to 750K), combining two effects: non-overlapping staggered decode under serial KV-cache reconstruction, and KV-restore/prefill amortization over 192 output tokens.

This site omits `raw_agg_tps` from all charts and tables. It reports per-slot median raw decode (`raw_med_per_slot`) alongside wall-clock end-to-end aggregate throughput (`with_prefill_wall_agg_tps = total_comp_tokens / wall_s`).

## 2. Output truncation at `max_tokens=192` (tool and thinking modes)

All 144 matrix cells ran with `max_tokens=192`:
- **Tool mode:** 47 of 48 tool cells truncated mid-tag before closing their tool calls (`tool_calls_total: 0`; only `5K_tool_B32` closed 2 tool calls across 32 slots). V1 tool numbers measure raw structured-token decode speed during tool-call generation, not schema-validated tool-call completion rate. In addition, `5K_tool_B32` is the only cell of 144 where `total_comp_tokens` (`4,898`) fell below `192 * B` (`6,144`) because some slots stopped early without emitting closed tool tags while stragglers ran to 192, which pulls `5K_tool_B32` wall-clock aggregate (`331.2 tok/s`) below `5K_tool_B16` (`397.6 tok/s`) and `50K_tool_B32` (`339.9 tok/s`).
- **Thinking mode:** Across all 48 thinking cells, `reasoning_tokens_med` was 191 to 192 out of 192 tokens (0 final-answer content tokens). V1 thinking numbers measure chain-of-thought reasoning decode speed inside `<think>`.

## 3. Prefix-cache block alignment (8,192 tokens) and cross-B suffix reuse

oMLX aligns KV-cache prefix blocks on 8,192-token boundaries (`49,152`, `147,456`, `245,760`, `499,712`, `745,472`), and `bench_full_matrix_18199.py` only pre-warmed `prose` and `thinking` (not `tool`) while restarting slot index `idx = 0..B-1` for every batch size (`len(PROMPTS) == 8` with `[slot={idx:02d} ...]`). Four concrete artifacts result in the raw JSON:
- `warm_50K_prose` (`49,868` tokens) had `cached_tokens = 0` because `warm_5K_prose` (`4,868` tokens) sat below one 8,192-token block; incremental prefix reuse begins at `50K -> 150K`.
- All three `5K B=1` cells (`prose`, `thinking`, `tool`) had `cached_tokens_med = 0` (`4,910`, `4,936`, `5,664` uncached tokens), and across `50K..750K`, `B=1` prefilled 198 to 5,193 uncached tail tokens after warmup. That uncached tail makes `B=1` TTFT higher than `B=2` in all 12/12 prose and thinking tiers (up to 3.4x higher: `1.50 s` vs `0.44 s` at 5K, `5.65 s` vs `3.01 s` at 750K) and lowers `B=1` end-to-end throughput.
- Because `tool` was never pre-warmed at any tier (`5K..750K`), `tool B=1` prefilled 953 to 5,664 uncached tokens and `tool B=2` prefilled 473 to 2,828 median uncached tokens across all six tiers. Tool schema overhead also placed `5K_tool` around 5,650 prompt tokens.
- Because `idx` restarted at `0` for every batch size, slots `0..B_prev-1` repeated verbatim from the prior batch size. Median uncached tokens dropped to 3 to 10 by `B=12` (8 of 12 slots hit) and to ~2 across `B=16..32` (compared with 25 to 33 median uncached tokens at `B=2..8` in prose and thinking).

Treat the matrix as a warm shared-prefix serving benchmark, not a cold multi-user prefill test.

## 4. Post-batch memory snapshots, +18.70 GiB swap jump, and 750K carryover

V1 recorded `vm_stat` and `sysctl vm.swapusage` immediately after each batch completed rather than polling continuously during decode, so transient mid-batch peaks can exceed the recorded post-batch numbers. Two V1 configuration choices also added memory pressure: `hot_cache_max_size` was `64GB`, and `Qwen3.8-27B` (~27.4 GB) was present in the shared model directory.

macOS swap stayed near baseline (`2,020.19 MiB = 1.97 GiB`, ticking up `+6 MiB` total across `250K` B=24-32 to `1.98 GiB`) through cell #126 (`750K_prose_B16`). During `750K_prose_B24` and `750K_prose_B32`, swap climbed to `15.62 GiB`, and by `750K_tool_B32` it reached `21,170.12 MiB` (`20.67 GiB`), a net rise of `19,149.93 MiB` (`+18.70 GiB`).

Because the server was not restarted between modes at 750K or before the 1M run:
- `750K_thinking` B=1..24 (`15.63` to `16.35 GiB` swap) and `750K_tool` B=1..24 (`16.35 GiB` swap) ran with pre-existing swap inherited from `750K_prose_B32`. That carryover is a confounder on why `750K_thinking_B1` (86.7% of 5K) and `750K_tool_B1` (70.6% of 5K) dropped more than pre-swap `750K_prose_B1` (96.2% of 5K).
- The `1M` cold prefill (`cold_1m.mem.swap_mb: 21,170.12 MB`) inherited that swap state rather than allocating new swap during the 1M run.

## 5. Synthetic repeating corpus

V1 generated prefixes from an 8-sentence repeating synthetic template. Repetitive context can raise speculative draft acceptance relative to high-entropy source code or natural prose. V2 replaces this with two disjoint real Python/MLX/Transformers source-code corpora (1.76M total tokens) plus a real-vs-synthetic A/B check.

## 6. No quality, KL/perplexity, or NIAH evaluation in V1

`apetersson/DeepSeek-V4.1-Flash-1017-Abliterated-MLX` is an aggressive 2-bit/3-bit mixed-precision (`oQ2.5e`) abliterated checkpoint, and oMLX Wave 43 further converts `wo_a` (BF16 -> MXFP8) and `lm_head` (BF16 -> Q8) at load time. V1 measured speed and HTTP stability (0 errors) only; no perplexity, KL-divergence, benchmark accuracy, or output-coherence checks were run.

In the `1M` cold prefill (`temperature=0.0`, `max_tokens=16`), the model achieved `39.86 tok/s` raw decode (`37.36 tok/s` client SSE) over 16 tokens (`0.40 s`) under `20.67 GiB` inherited swap and stopped at `"Receipt confirmed for archive cold1m_unique_1796221261. Final"` (`finish_reason: "length"`) before printing the chapter number. V2 adds 3-needle multi-depth NIAH (10%, 50%, 90% depth) from 50K to 1M plus sustained 512-token decode at 1M (`T=1.0` and `T=0.0`) on `oQ4e-mtp-uncensored`.

## 7. Private Wave 43 fork, DSpark/MTP speculative decoding, and `n=1` variance

All V1 measurements ran on a private local `oMLX` 0.8.4 development fork (Wave 43, local commit `6562345`, not yet upstreamed) with custom Metal dense/MoE kernels and DSpark/PCTree speculative decoding running on the checkpoint's built-in 8.05 GB MTP head (`mtp_enabled: true`, `dflash_enabled: false`; the `dflash_draft_model` path in `model_settings.json` is an unused default). Verification checks drafts against the target model to preserve the exact target sampling distribution.

Matrix cells ran once (`n=1`) at `temperature=1.0` over 192 tokens, so single-sample DSpark acceptance variance produces small non-monotonic inversions such as `50K_thinking_B1` (`94.65 tok/s`) exceeding `5K_thinking_B1` (`88.47 tok/s`) and `750K_prose_B1` (`66.79 tok/s`) exceeding `150K_prose_B1` (`61.52 tok/s`). The `R=1` (no-draft) reference numbers in `roofline_oq25e.json` come from separate internal Wave 23/43 profiling rather than `full_matrix_18199.json`; logged `dspark_off` and `base_no_opt` ablations plus `n=3` repeat variance anchors arrive in V2.
