Explore the research collection
2 entries · Follow this search
- Post
Defeating Nondeterminism in LLM Inference
The "concurrency + floating point" story for LLM nondeterminism is incomplete: the forward pass contains no atomic adds and is run-to-run deterministic. The true culprit is lack of BATCH INVARIANCE — matmul/RMSNorm/attention kernels change reduction order/tiling with batch size (split-K matmuls, tensor-core tile choice, attention split on KV cache vs current tokens), and inference servers change batch composition via continuous batching, so "identical" requests from one user's perspective get different outputs. Fix: batch-invariant kernels for the three reduction ops (data-parallel RMSNorm; single compiled matmul config, ~20% cost vs cuBLAS; attention with pre-kernel KV-cache/page-table layout update and FIXED-SIZE split-KV — which required internal FlexAttention changes not included in the code release). Evidence: 1000 temperature-0 completions of 1000 tokens from Qwen3-235B-A22B-Instruct-2507 ("Tell me about Richard Feynman") → 80 unique completions, identical for first 102 tokens, first divergence at token 103 ("Queens, New York" 992 vs "New York City" 8); with batch-invariant kernels all 1000 identical. True on-policy RL: RLVR on BigMath with Qwen2.5-VL-Instruct-8B, bitwise-identical sampler/trainer → KL divergence flat at 0, trains smoothly without importance weighting; the naive run's reward collapses ~step 318 with a KL spike. Claim: train/inference numeric mismatch "implicitly turns our on-policy RL into off-policy RL." Fun detail: Triton FlashAttention backward differs algorithmically from the FA-2 paper — recomputes to avoid atomics at 40% more FLOPs. Repo: github.com/thinking-machines-lab/batch-invariant-ops (torch.Library substitution layer + vLLM FlexAttention deterministic-mode demo), MIT.
- Post
Inkling: Our Open-Weights Model
Thinking Machines Lab news post (2026-07-15) introducing Inkling: MoE transformer with 975B total / 41B active params, up to 1M context, pretrained on 45T multimodal tokens (text/image/audio/video). Native text+image+audio reasoning with controllable thinking effort; positioned as a broad generalist base for fine-tuning rather than the strongest overall model. Weights on Hugging Face (thinkingmachines/Inkling and NVFP4); fine-tuning via Tinker; hosted APIs on Together/Fireworks/Modal/Databricks/Baseten. Companion preview Inkling-Small (276B/12B active). Overlaps papers_local id 656 (model-card intake) but this Discord item points at the launch news URL.