Ross ROSS = Recommend OSS · open-source software intelligence for agents

thinking-machines-lab/batch_invariant_ops

None observed · 2026-08-28

github.com/thinking-machines-lab/batch_invariant_ops · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

40/100

  • Activity 50
  • Release rhythm 35
  • Longevity 25

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 358
  • days_rel: n/a
  • days_push: 302
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1067 stars · 84 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library that replaces standard PyTorch CUDA kernels with batch-invariant versions, ensuring identical results regardless of batch size. It accompanies Thinking Machines' blog on defeating nondeterminism in LLM inference and includes a proof-of-concept for deterministic vLLM inference.

Use cases

  • make llm inference deterministic regardless of batch size
  • get reproducible pytorch gpu results
  • eliminate nondeterminism in vllm serving
  • ensure matrix multiplication gives same output for different batch sizes
  • debug floating point nondeterminism in cuda kernels

When to choose

  • you need bit-exact reproducible GPU inference results
  • you run vLLM and want deterministic completions
  • you're debugging batch-size-dependent numerical differences in PyTorch

When to avoid

  • you need maximum inference throughput and can tolerate nondeterminism
  • you rely on operations not covered (only mm, addmm, log_softmax, mean are supported)
  • you're not using CUDA GPUs

Facets

library · maturity experimental

machine-learning llm-inference gpu-computing deep-learning large-language-models performance python determinism pytorch kernels vllm reproducibility gpu linux

1 source

Member repositories

RepositoryRoleHealth v2
thinking-machines-lab/batch_invariant_opsmain40

For agents

markdown · JSON · MCP: product_card(name="thinking-machines-lab/batch_invariant_ops")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem