One API that picks the fastest kernel. Every time.
Bud LayerZero picks the fastest GPU kernel for every operation — automatically, explainably, and in nanoseconds. FlashAttention, FlashInfer, xFormers, Liger, Torch: chosen for you. Open source under Apache 2.0, PyTorch native, zero required dependencies.
The layer beneath your model.
LayerZero is a production-grade kernel orchestration framework for LLM inference. It gives you a single API across every GPU-optimised kernel library — and decides which one runs, per operation, per shape, per device. Call lz.attention() and the right kernel executes. No integration branches, no hand-tuned dispatch tables, no guessing.
Framework design targets, backed by an MVCC sharded selection cache (256 shards, O(1) invalidation). Every selection is explainable via lz.explain().
Kernel fragmentation, solved once.
Kernel libraries multiply faster than anyone can integrate them, and every serving framework rebuilds the same selection logic — picking differently for identical inputs. LayerZero makes that decision once, makes it visible, and makes it cost effectively nothing: call lz.attention() and the fastest available kernel executes.
What a dispatch table can't give you.
Most frameworks pick a kernel and never tell you why. These six are why the selection layer is worth having — and why it never shows up in your latency budget.
One API across every backend
FlashAttention, FlashInfer, xFormers, Liger, Torch SDPA and more behind one interface — add a library through a standardised adapter and every caller benefits.
Hardware-aware, automatic
Selection accounts for the device, dtype, and shape in front of it — and degrades gracefully to torch SDPA, so it never fails closed.
Every decision explainable
lz.explain() returns the candidates, their scores, and what filtered them out; lz.which() shows what would run before it runs.
Policy without a redeploy
Lock, allow, deny, and boost rules in strict priority order — in code or YAML that hot-reloads, so you can A/B a kernel on a live fleet.
Orchestration that disappears
Static dispatch adds literally nothing, and a warm MVCC cache answers repeat selections in under 100 nanoseconds — flexibility with no latency tax.
Built for the fleet
Circuit breakers checked in under 50ns, CUDA-graph capture safety, readiness checks with JIT warmup, and Prometheus and OpenTelemetry built in.
The full story, in depth.
The six-step selection pipeline, the full backend and operation coverage, the policy system, and the performance targets with what backs them.
Product Brief
Bud LayerZero Product Brief
The deep-dive product reference
The selection pipeline step by step, every backend adapter, the four-tier policy system with worked YAML, dispatch modes, and the production hardening in full.
Read the product briefGitHub
LayerZero on GitHub
Apache 2.0 · PyTorch native
Bring your stack, keep your kernels, and let the selection layer disappear into the background. Zero required dependencies — every backend optional.
View the repositoryPut your data on it.
The fastest way to see what an integrated AI operating system does for your enterprise is a proof-of-concept on your infrastructure, with your data.