Value proposition report · NVIDIA/hyperflare-inference #581

Raw Markdown for agents: https://autobot.eidonix.com/p/12fd5767-67c8-4be3-8995-b24c3c36b6c9.md

Verdict: worth it with changes

The idea is right and the layer is right, but as submitted this PR flips a scheduling-relevant CUDA flag on for every exported serving graph in every recipe with no serving measurement, and two of its stated claims are false. Fix those and it is a small, welcome change; merge as-is and it is an unmeasured global behavior change.

Why the idea is right (and why it needed almost no code)

What must change before merge

  1. Evidence for the actual serving path (blocking). The PR itself lists "live CUDA export, nondefault kernel-priority instantiation across target drivers, and signed-core flare run replay" as open on this revision. A change that alters GPU scheduling for every exported core needs before/after flare run latency on a real served workload (charter "Bring real evidence" / #210; docs/design-review.md principle 12); pytest counts are not that. At minimum: one exported TP core served through flare run with and without 8, plus the reviewer's requested assertion that the Helios-instantiated executable reports cuGraphExecGetFlags == 9.
  2. Make the switch explicit, not a library default. instantiation_flags=CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY at ignition/preparation/runtime_core.py:213 silently changes behavior for every recipe. The charter says "Be explicit and pin everything. No magic defaults," and docs/prefix-cache-offload.md:855-862 explicitly forbids leaning on stream priority without measurement. Even if the answer is "always on," the decision belongs at the single call site (ignition/preparation/capture.py:193) or in run configuration, with the reason written down — not in a helper's default argument.
  3. Fix the error path, or fix the claim. record_export_graph runs retain_object(...) and instantiate_graph(...) before validating executable-derived flags (runtime_core.py:236-242). The PR description's "rejecting unsupported bits on either source before mutating graph state" is therefore false for prior_flags, and on that raise the graph keeps retained owners with no _flare_instantiation_flags set (capture.py:182-200 has no cleanup). Validate what you can (both flag sets, _flare_graph_metadata, live template handle) before retaining, per reviewer Major #2.
  4. Fix the other description claim. "Passing instantiation_flags=None keeps executable-derived flags for startup tuning graphs" is wrong: tuning graphs go through capture_graph + instantiate_graph (runtime_core.py:246-269, tests/preparation/test_recorded_export_graph_cuda.py:62-65) and never call record_export_graph. docs/design-review.md principle 16 requires accurate evidence statements.
  5. Nit. Reuse PERMITTED_CUDA_GRAPH_INSTANTIATE_FLAGS in _graphs() (runtime_core.py:284 hardcodes ~9) and cache the _Cuda() handle instead of reopening libcuda.so.1 per graph.

Who benefits, and the risk

Beneficiaries are users of TP/prefill cores whose recipes overlap small collective branches on the high-priority auxiliary stream — plausible latency wins when a small collective must preempt a main-stream GEMM; broad but likely small decode-only gains. Cost is low (one function, ~38 lines, no new contracts, backward compatible: existing cores still load, 9 is already within the accepted mask). The risk is that USE_NODE_PRIORITY is all-or-nothing per graph: every kernel captured on the auxiliary stream gets priority-based scheduling, including any recipe that puts heavy compute there, and nothing in the repo has measured whether that helps or hurts under contention. That risk is acceptable only once someone has actually run it, which is precisely what this PR does not do.

Bottom line: right problem, right layer, tiny footprint, no duplication of existing mechanisms — but it ships a global, unmeasured scheduling-policy change with a false evidence statement. Land it after (1)–(4), preferably as an explicit opt-in until a flare run measurement exists.