machiabeli

Results comments of machiabeli

## End-to-end DSpark B2 rejection sampling: findings + bottleneck identification I wired B2 rejection sampling (Chen/Leviathan 2023) into the DSpark decode loop on top of PR #480's plumbing. Results on...

**Follow-up: block_size=2 is the optimal configuration for current architecture** Testing `--mtp-draft 2` (verify 2 tokens instead of 5): | Config | tok/s (short ctx) | tok/s (long ctx) | Correctness...

**Update: +8.5% speedup achieved on structured output (token-identical, lossless)** Testing across prompt types reveals DSpark speedup is workload-dependent: | Prompt | Baseline | DSpark | Speedup | Correctness | |---|---|---|---|---|...

**Full workload acceptance matrix — 11 prompts tested (M5 Max 128GB, Q2 base + Q4K DSpark)** | Prompt Type | Baseline | DSpark | Ratio | Notes | |---|---|---|---|---| |...

**Peak speedup: +36.4% on repetitive structured output (token-identical, lossless)** | Prompt | Baseline | DSpark | Speedup | |---|---|---|---| | **Repetitive JSON (30x same structure)** | 38.72 | **52.81** |...

Evidence grid for the shared clip math (perplexity deltas + depth × length NIAH, zero-shot on Qwen3.6-35B-A3B): https://github.com/ml-explore/mlx-lm/pull/1387#issuecomment-4667807832 — the `inv_freq` produced there is bit-identical to this implementation.

> @machiabeli Are there are models that use this in their config today? Or is this just speculative? I used it successfully with Qwen 3.6 35b A3b. I extended the...

Two data points from the other side of the hardware table, since #4282 and #4218 were closed and this is the only thread left. **The QP ceiling is not 10...

**Update — retracting the sinks-specific diagnosis after further verification.** I was not able to reproduce the S=1 vs S=N divergence with synthetic data using `mx.fast.scaled_dot_product_attention` with `sinks` in isolation (both...

Closing — the sinks-specific diagnosis didn't reproduce with synthetic data. The underlying cache-vs-recompute divergence is real but the root cause is elsewhere (likely in how the full V4 attention pipeline...