Skip to content

sinter v0.1.1

Choose a tag to compare

@srbryers srbryers released this 04 Dec 20:17
· 8 commits to main since this release

sinter v0.1.1 (Apple Silicon, macOS 26 / Metal 4)

Qwen4-35B-A3B Correctness & TTFT Improvements

  • Fixed threadgroup WAR races on s_aux[0..1] across all three Qwen4 PLE kernels (shaders/qwen4.metal decode/prefill and shaders/qwen4_spec.metal verify) where SIMDgroup 0 overwrote shared scalar slots while SIMDgroups 1–7 still read inv_k, inv_q, and gate_val. Eliminates occasional duplicated punctuation/tokens and makes B=1 and MTP speculative decoding 100% bit-exact (15/15 deterministic repeats, 8/8 valid structured JSON with exact B=1 == spec parity).
  • Fixed grid_barrier device fence & p_spec_commit_ple barrier in shaders/qwen4.metal and src/qwen4.rs.
  • Parallelized 12 GB PLE page-cache warm-up across 4 sorted sequential NVMe reader threads (~1.8s background warm-up instead of ~8.5s, zero idle GPU power, zero extra wired RAM).
  • Parallelized PLE n-gram prefill lookups across 8 CPU threads for prompts with 8+ tokens.
  • Trimmed reset_state() KV/QSA zeroing to only the previously written prefix (0..prev_pos) instead of all 8,192 slots (~175 MB saved per fresh request).

Verified Qwen4-35B-A3B Benchmarks (M3 Ultra, 4-bit MLX)

  • Cold first TTFT (sinter serve, 114 tokens): 355 ms (down from 685 ms)
  • Warm uncached TTFT (sinter serve, 114 tokens): 235 ms
  • Prefix-cached TTFT (sinter serve): 10.4–11.0 ms
  • Single-token decode (B=1): 104.4 tok/s
  • 4-workload MTP speculative decode: 120.4 tok/s (135–138 tok/s on live HTTP JSON)

Install

curl -fsSL https://raw.githubusercontent.com/srbryers/sinter/main/scripts/install.sh | sh