2026-11-27 16:21 UTC

Kairo reports workload-specific CUDA Graph gains on one RTX 5090

state: expiredheat: mediumuncertainty: mediumrelevance: mediumlocal-inference inference-economics cuda-graphs inference-routingpeter941221

What is this?

Kairo is an open-source research workbench whose maintainer reports CUDA Graph versus eager-serving measurements for specified NVFP4 workloads on one RTX 5090. Its published results range from 1.30× to 2.62× throughput, and its runtime policy selects only exact measured workload profiles, falling back to manual handling when a request is not covered. These are maintainer-reported, hardware- and workload-specific results; Kairo says it is not a general-purpose inference engine.

Why it matters

Kairo offers a useful, open-source example of how to make local inference optimization evidence-driven: its maintainer reports CUDA Graph throughput gains on several specified RTX 5090 NVFP4 workloads, while also documenting a smaller gain and routing only exact measured profiles. This could help 5090 owners reproduce workload-specific improvements and avoid assuming a benchmark applies universally. The results are from one GPU and pinned software/model conditions, and the supplied evidence does not independently validate them or establish broader performance gains.

Current assessment

Kairo’s GitHub release describes a research workbench, not a general-purpose inference engine or vLLM replacement. Its maintainer reports Phase 1 measurements on one RTX 5090 32GB for pinned NVFP4 workloads: CUDA Graph replay delivers 1.30×–2.62× the eager throughput across the listed Qwen configurations. The project says it gates results on correctness and promotes only exact measured workload buckets into runtime routing, falling back to manual when a request is uncovered. This is a practical approach to reproducible, workload-specific optimization and a useful lead for local-inference enthusiasts. The measurements remain maintainer-reported and hardware-, model-, and software-specific; the supplied sources do not provide independent replication. Avoid extrapolating the gains to other GPUs, workloads, or serving stacks.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

09-14 03:26 (minted)⭐ origin echo-reconstructedKairo publishes pinned RTX 5090 Graph-versus-eager measurements, correctness gates, and a runtime policy that selects exact measured workloa
peter941221 on github (echo) · attributed from hn.story.49691112 · published time unknown
—
09-14 02:21first on hacker news · published · lag ?Show HN: Kairo – Fail-closed LLM inference routing from RTX 5090 measurements
peter941221
—
09-14 02:21amplified on hacker news 👑hn.story.49691112
peter941221
peak 5 · 0 comments · 99% of case engagement
09-14 03:20our radar first saw it · lag ?discovery anchor: hn.story.49691112—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Kairo – Fail-closed LLM inference routing from RTX 5090 measurements
Retrieved article excerpt

Open article · Retrieved 2026-09-14T03:21:29.453098+00:00

# Kairo

> Evidence-driven Blackwell inference research: measure a workload, prove a
> result, and route only what was measured.

[Phase 1 write-up](https://peter941221.github.io/Kairo/001-when-cuda-graphs-actually-help.html) ·
[Phase 1 results](https://github.com/peter941221/Kairo/blob/main/docs/PHASE_1_RESULTS.md) ·
[Experiment protocol](https://github.com/peter941221/Kairo/blob/main/docs/EXPERIMENT_PROTOCOL.md) ·
[Reproduce Phase 1](https://github.com/peter941221/Kairo/blob/main/docs/REPRODUCE_PHASE1.md) ·
[Blog](https://peter941221.github.io/Kairo/) ·
[Contributing](https://github.com/peter941221/Kairo/blob/main/CONTRIBUTING.md) ·
[Apache-2.0](https://github.com/peter941221/Kairo/blob/main/LICENSE)

## Why Kairo

On a single RTX 5090, CUDA Graph replay can improve NVFP4 serving throughput by
more than 2x for some workloads—and by far less for another valid workload.
The useful conclusion is not “always enable Graphs.” Kairo captures the
conditions behind a result, passes a correctness gate, and promotes only exact
measured workload buckets into a fail-closed runtime policy.

Kairo is a research workbench and the beginning of a path toward native
Blackwell inference components. It is not yet a general-purpose inference
engine or a replacement for vLLM, CUTLASS, or cuBLAS.

## Phase 1 at a glance

Local measurements on one RTX 5090 32GB, using pinned model and software
revisions. Read the linked protocols before comparing values.

| Measured workload | Graph | Eager | Result |
| --- | --- | --- | --- |
| Qwen3.8-27B-NVFP4, c32, prompt 512, context 1K | 645.08 tok/s | 308.51 tok/s | 2.09x |
| Qwen3.8-27B-NVFP4, c8, prompt 2048, context 4K | 322.78 tok/s | 123.22 tok/s | 2.62x |
| Qwen3.8-27B-NVFP4, c16, prompt 2048, context 4K | 260.07 tok/s | 199.52 tok/s | 1.30x |
| Qwen3-8B-NVFP4, c16, prompt 512, context 1K | 2177.49 tok/s | 1073.63 tok/s | 2.03x |

The 1.30x result is intentional context: CUDA Graphs are not promoted as a
global default. [Phase 1 results](https://github.com/peter941221/Kairo/blob/main/docs/PHASE_1_RESULTS.md) includes the scope,
evidence links, and claims Kairo does not make.

## What Kairo does

- Defines versioned workload and experiment protocols.
- Verifies declarative kernel blueprints before a build or launch.
- Records cache, correctness, artifact, and launch timing separately.
- Selects serving profiles only for exact measured workload buckets.
- Fails closed to `manual` when no measured route covers a request.
- Probes native SM120 data movement and matrix-compute paths, including
  correctness-aware negative results.

## Quick start

Clone the repository:

```
git clone https://github.com/peter941221/Kairo.git
cd Kairo
```

The portable contracts do not require a GPU:

```
$env:PYTHONPATH = "src"
python -m unittest discover -s tests -q
```

Validate the sample kernel blueprint:

```
wsl.exe -d Ubuntu-24.04 -- bash -lc 'cd /mnt/c/Projects/Kairo && bash scripts/wsl/run_lab.sh validate-blueprint --file experiments/blueprints/fp16-tma-wmma.yaml'
```

Ask the runtime policy about a measured route:

```
wsl.exe -d Ubuntu-24.04 -- bash -lc 'cd /mnt/c/Projects/Kairo && bash scripts/wsl/run_lab.sh recommend-runtime --model qwen38 --concurrency 32 --prompt-tokens 512 --context-tokens 1024 --generation-tokens 128'
```

GPU-serving paths require a compatible RTX 5090 environment, local model
weights, and the pinned runtime described in [the environment contract](https://github.com/peter941221/Kairo/blob/main/docs/ENVIRONMENT.md).
Set model and environment paths through the documented `KAIRO_*` variables;
do not commit local paths or credentials.

For the full evidence-to-serving-route procedure, including the expected route
and the exact c32/1K reproduction command, see [Reproduce Phase 1](https://github.com/peter941221/Kairo/blob/main/docs/REPRODUCE_PHASE1.md).

## Evidence and reproducibility

Every public result should answer: under which model, quantization, workload,
hardware, software revision, and correctness tolerance did it win?

- [Phase 1 results](https://github.com/peter941221/Kairo/blob/main/docs/PHASE_1_RESULTS.md) is the concise public result index.
- [Experiment protocol](https://github.com/peter941221/Kairo/blob/main/docs/EXPERIMENT_PROTOCOL.md) defines controls and the
  promotion gate.
- [Baseline status](https://github.com/peter941221/Kairo/blob/main/docs/BASELINE_STATUS.md) is the detailed chronological lab
  record and includes both promoted and rejected experiments.
- [`experiments/protocols/`](https://github.com/peter941221/Kairo/blob/main/experiments/protocols) contains machine-readable
  result and method records.
- [`evidence/`](https://github.com/peter941221/Kairo/blob/main/evidence) contains reviewed, redacted per-repeat public records;
  `python scripts/render_phase1_results.py` regenerates the published table and
  SVG chart in [`docs/generated/`](https://github.com/peter941221/Kairo/blob/main/docs/generated).
- [Public release checklist](https://github.com/peter941221/Kairo/blob/main/docs/PUBLIC_RELEASE.md) lists the artifact,
  review, and repository gates before public visibility changes.

## Repository map

```
blog/                 publication drafts and article sources
docs/                 result index, protocol, environment, and release guides
experiments/          versioned workloads, protocols, and kernel blueprints
scripts/wsl/          local RTX 5090 probes, runners, and analyzers
src/kairo_lab/        dependency-light validation, cache, dispatch, and policy
tests/                portable contract tests
.kairo-local/         ignored local credentials, logs, and machine facts
```

## Roadmap

**Phase 1 — complete research baseline.** Controlled protocols, correctness
gates, measured Graph/eager routes, route selection, and native capability
probes.

**Phase 2 — native components.** Use Phase 1 evidence to choose narrowly
scoped data movement, layout, subgraph, or execution-path work. A candidate is
not promoted without correctness, boundary coverage, repeatability, and a fair
end-to-end comparison.

## Contributing

See [CONTRIBUTING.md](https://github.com/peter941221/Kairo/blob/main/CONTRIBUTING.md). In brief: do not extrapolate measured
wins, do not commit credentials or private artifacts, and retain negative
results that establish a meaningful boundary.

## License

Copyright 2026 Kairo contributors. Licensed under the
[Apache License 2.0](https://github.com/peter941221/Kairo/blob/main/LICENSE). The license grants broad reuse rights, including
an express patent grant for contributed work; it does not grant trademark rights.
peter94122150
🟧 echo.github ⭐Kairo publishes pinned RTX 5090 Graph-versus-eager measurements, correctness gates, and a runtime policy that selects exact measured workloapeter941221——

Interpretation history

Decision trace