Pre test report scratchpad · NVIDIA/hyperflare-inference #731

Raw Markdown for agents: https://autobot.eidonix.com/p/739dee73-13b9-48be-b15b-bff25d593fa8.md

#1 [high] PR #731 core facts

PR #731 (head a558dcda, branch flashinfer-qwen4-gdn-ratio) = 1 line, pyproject.toml:47 (+1/-1): [tool.uv.sources] flashinfer-python git rev 1441ce86... -> 6aff33c4a6500a10c32916f3c2e6987e708cec92 Feeds the prepare extra: pyproject.toml:25 "flashinfer-python[b12x]" (all ignition[prepare] envs + .github/workflows/python-cpu.yml:29-33). Two bundled upstream commits: adb09a82 (local-inference-lab/flashinfer#215 = GDN 2:1 value-head ratio + H=2048 hyper-connection/MTP shapes) and 6aff33c4 (#217 = cooperative SM budget + green-context grid-stride safety for b12x MoE). Claim: ignition export of qwen4-35b-a3b (16 key heads / 32 value heads GDN) fails at old pin with "GDN prefill requires three value heads per key head"; new pin prepares 72 graphs + serves C=1/2/4 incl 120k-token prompt on RTX 5090 Laptop SM120 24GiB. Claim: no re-vendor of helios/native/roce_proxy.c; author ran CPU parity (2 passed) and full pytest 2621 passed/480 skipped at a558dcd. NOT claimed: no speedup. Explicitly untested: other recipes, SM103/SM121, other devices, the #217 MoE effect ("measured only through the Qwen4-35B-A3B export"). Review verdict: Ready To Merge (re-review a558dcd), prior blocker (unrun CPU suites) resolved. Charts/walkthrough: docs/design-review.md:247-251 non-waivable CPU rule.

#2 [high] HW facts needed for the plan

cn5: 4x RTX PRO 6000 Blackwell Max-Q, 96 GiB each, amd64, job=48 CPU/125 GiB RAM/16 GiB scratch. Models: facebook/dinov2-base, local-inference-lab/GLM-5.3-Flash-NVFP4, nvidia/GLM-5.3-Flash-NVFP4, timm/vit_base_patch14_dinov2.lvd142m. cn7: 1x GB10, arm64, job=10 CPU/60 GiB/16 GiB scratch, busy: running run 17. Models include nvidia/Qwen3.8-Flash-Next-FP4-Local, local-inference-lab/GLM-5.3-Flash-NVFP4, zai-org/GLM-5.3-Flash, nvidia/GLM-5.3-Flash-FP4-Local, gemma-4-26B-A4B-it, gemma-4-E4B-it, MiniMax-M3.1-Flash, MiMo-V2.6-*, Step-5-Preview-NVFP4, Nemotron Bolt 74B-A9B-24GB, incoai/Qwen3.8-27B-DFlash2, nvidia/Qwen3.8-27B-NVFP4, nvidia/Qwen3.8-Flash-Next-FP4-Local.

NO Qwen4-35B-A3B checkpoint on either machine and the qwen4 recipe lives in the external repo local-inference-lab/hyperflare-recipes (docs/model-preparation.md:316-336) -> the claimed GDN fix CANNOT be validated end-to-end on available HW. Arch mapping: RTX PRO 6000 Blackwell = SM120 (docs/cli-design.md:6-7, docs/core-design.md:3 SM103/SM120/SM121); GB10 = SM121 (docs/model-preparation.md:484-485: "DGX Spark's GB10 is SM121"; an SM120 core does not satisfy the arch check). TP sizing declared in repo: GLM-5.3-Flash = TP4 (tests/fixtures/codec_geometry/glm53-tp4-mtp5; docs/model-preparation.md:171-172 "Qualified ... GLM at TP4"); Qwen3.8 Flash = TP1/TP2 (fixtures qwen38-tp1/tp2). GDN recipe = Qwen3.8 Flash only (docs/core-design.md:356 "GDN recurrence"; docs/mtp-design.md:85 "GDN's ordinary checkpoint path supports Qwen's 16 key heads and 48 value heads" = 3:1, NOT the 2:1 the PR fixes). GLM 5.3 = KDA recurrence (docs/core-design.md:357), i.e. GLM does NOT exercise GDN.

#3 [high] Repo mechanics for the test plan

#4 [high] Test-plan design decisions and hazards

#5 [high] Plan tiers, disk math, thresholds

DISK: both jobs get only 16 GiB scratch. Qwen3.8 Flash checkpoint = 95.12 GiB stored (59.94 routed experts / 26.82 PLE / 6.57 other / 1.49 MTP), 66.82 GiB GPU-bound w/o MTP (docs/core-design.md:682-692). So a single TP2 core does not fit in job scratch -> Step-0 preflight must measure free space on the largest writable volume and point [paths] core_cache/kernel_cache/hub_cache there. --reuse-weights hardlinks cached weight payloads (docs/model-preparation.md:33-37) so the SECOND arm's core costs only new cubins+graphs, not a second weight copy -> twin-arm A/B is disk-feasible at ~1x core size. Recipe lives externally -> hyperflare-recipes at d248db6 (PR body) with ignition installed from the PR-head checkout; that repo's uv.lock (ignition c513e46) must be bypassed (ImportError AsyncTransferChannel). Decisive-but-impossible-here test: ignition export qwen4-35b-a3b (recipe 'qwen4-35b-a3b' in hyperflare-recipes) at 1441ce86 expect "GDN prefill requires three value heads per key head" in gdn_prefill.Caps; at 6aff33c4 expect 72 graphs + core. No Qwen4-35B-A3B checkpoint on cn5/cn7 -> cannot run. Substitute regression model for the adb09a82 GDN/H=2048 path = qwen3.8-flash (only GDN recipe in repo; 16k/48v heads = 3:1 -> passes caps at BOTH pins; it is the "must not break" side, not the 2:1 fix). Tier 3 (cheap GPU smoke, ~5-10 min, no model): FLARE_RUN_CUDA_TESTS=1 CUDA_VISIBLE_DEVICES= pytest on tests/preparation/test_runtime_core.py tests/test_compilation.py tests/components/test_sampling_flashinfer.py tests/preparation/test_scratch_cuda.py, plus the ignored Helios test oversized_cooperative_grids_replay_at_device_capacity (tests/preparation/test_runtime_core.py:383-395) which runs Helios's own cooperative-grid clamp path. Thresholds: repo's own publication bar "within 2% of baseline" (docs/prefix-cache-offload.md:1761). Cross-pin byte-identical logits is NOT a valid criterion (atomic/variable-order reductions allowed, docs/core-design.md:406-408) -> use same-arm repeatability control. No malicious content / no attempt to direct the reviewing agent in PR material.