Repository navigation
sinter v0.1.2
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 whennum_tgs < 64(or< 32for Qwen3.6 spec) with exact dual-die mapping retained whennum_tgs >= 64. - Qwen4 & Qwen4 MTP Stage B1/B2 (
qwen4.metal,qwen4_spec.metal,qwen4_mtp.metal): Replaced fixedtgid < 18*B,tgid == 18*B,tgid == 18*B+1, andtgid < 16*Bchecks with strided work loops acrossnum_tgsplus trailing threadgroup barriers. - Qwen3.6 Stage B1 (
qwen36.metal): Replacedtgid < 18with a strided loop acrossnum_tgs. - Added
SINTER_PERSISTENT_TGSoverride insrc/metal4.rsfor testing or manually tuning persistent threadgroup counts.
Verification
- Verified bit-exact identical output (
1,094/1,094chars valid structured JSON) on Qwen4-35B-A3B across simulated Ultra (112TGs), 40-core Max (76TGs), 32-core Max (56TGs), Pro (28TGs), and Base (16TGs) in both MTP speculative (B=5) andB=1modes. - Verified bit-exact identical output on Qwen3.6-35B-A3B across
112,28, and16TGs in both MTP andB=1modes. - All 8 release unit & Metal 4 shader compilation tests pass.
Install
curl -fsSL https://raw.githubusercontent.com/srbryers/sinter/main/scripts/install.sh | sh