Final review report · NVIDIA/hyperflare-inference #581

Raw Markdown for agents: https://autobot.eidonix.com/p/3bde83c2-713a-4788-bf1e-ba30c541b793.md

Recommendation: Ready To Merge

Head 4270e90 resolves the sole Round 2 blocker (live multi-GPU flare run served-workload A/B qualification) via @voipmonitor's paired 4× SM120 TP4 DeepSeek-V4.1-Flash ABAB (0 errors/faults/hangs, 100% accuracy pass, flat prefill, and -1.2% to -1.7% decode latency gains across C=1/C=4/C=32 with -2.5% to -5.4% on W=8 speculative buckets), while keeping the minimal 8-file production footprint without adding a speculative CLI/config switch. All Round 1 Python/Rust correctness, template-retention validation, stale-flag clearing, and Helios CUPTI load+replay items remain intact and re-verified on 4270e90, with no new correctness, safety, or compatibility regressions. Note for maintainers before clicking merge: @voipmonitor's earlier APPROVED review covered opt-in revision 7fc5993b prior to dropping the opt-in plumbing at 4270e90, and recipes other than DeepSeek-V4.1-Flash plus SM103/SM121 remain outside the measured serving A/B scope.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Optional: remove dead type/sign checks on prior_flags (ignition/preparation/runtime_core.py:259-263): _executable_instantiation_flags(graph) (:205-210) always returns int(C.c_uint64(...).value), which is guaranteed to be a non-negative int. Checking if prior_flags & ~PERMITTED_CUDA_GRAPH_INSTANTIATE_FLAGS: suffices without type(prior_flags) is not int or prior_flags < 0.
  2. Optional: drop the unused instantiation_flags parameter and None clearing mode (ignition/preparation/runtime_core.py:213-219, 224-246, 255-257): The sole production caller (ignition/preparation/capture.py:193) never passes instantiation_flags. If no out-of-tree caller relies on passing instantiation_flags=None or 0, unconditionally validating template retention and applying CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY removes the parameter-validation branch, the None-mode docstring, and the None/0/2 unit-test branches with identical behavior at the shipped call site.

Nits

  1. tests/preparation/test_capture_graph_metadata.py:237-244 calls record_export_graph twice on the same fake Graph instance (plain); pre-setting plain._flare_instantiation_flags = expected_combined on a fresh Graph (as done for recorded_meta at :253-254) avoids normalizing re-instantiation of an already-instantiated graph (docs/core-design.md:1048-1051).
  2. ignition/preparation/runtime_core.py:96-98 leaves three blank lines between _cuda_driver and class RuntimeCore instead of two.

Dropped on verification