Skip to content

sinter v0.1.2

Choose a tag to compare

@srbryers srbryers released this 04 Dec 20:29
· 6 commits to main since this release

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

Full M1/M2/M3/M4 Base, Pro, Max & Ultra GPU Portability

Fixed hardcoded threadgroup-count assumptions across all five persistent Metal 4 kernels (qwen4.metal, qwen4_spec.metal, qwen4_mtp.metal, qwen36.metal, qwen36_spec.metal) so Macs with fewer than 64 or 92 persistent threadgroups (every Base, Pro, 30/32-core Max, and 40-core Max in speculative mode) run 100% bit-exact while preserving the zero-overhead dual-die fast path on Ultra:

  • Qwen4 DeltaNet & Qwen3.6 DeltaNet (qwen4.metal, qwen4_spec.metal, qwen36.metal, qwen36_spec.metal): Strided slot/head loops when num_tgs < 64 (or < 32 for Qwen3.6 spec) with exact dual-die mapping retained when num_tgs >= 64.
  • Qwen4 & Qwen4 MTP Stage B1/B2 (qwen4.metal, qwen4_spec.metal, qwen4_mtp.metal): Replaced fixed tgid < 18*B, tgid == 18*B, tgid == 18*B+1, and tgid < 16*B checks with strided work loops across num_tgs plus trailing threadgroup barriers.
  • Qwen3.6 Stage B1 (qwen36.metal): Replaced tgid < 18 with a strided loop across num_tgs.
  • Added SINTER_PERSISTENT_TGS override in src/metal4.rs for testing or manually tuning persistent threadgroup counts.

Verification

  • Verified bit-exact identical output (1,094/1,094 chars valid structured JSON) on Qwen4-35B-A3B across simulated Ultra (112 TGs), 40-core Max (76 TGs), 32-core Max (56 TGs), Pro (28 TGs), and Base (16 TGs) in both MTP speculative (B=5) and B=1 modes.
  • Verified bit-exact identical output on Qwen3.6-35B-A3B across 112, 28, and 16 TGs in both MTP and B=1 modes.
  • All 8 release unit & Metal 4 shader compilation tests pass.

Install

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