From a558dcda5ff07520d844ed6268fc5f6e62327ea3 Mon Sep 17 00:00:00 2001 From: Avi Fenesh Date: Fri, 4 Dec 2026 20:49:01 +0200 Subject: [PATCH] build: pin flashinfer-python to 6aff33c4 for Qwen4-35B-A3B GDN geometry Why: `ignition export` of the Qwen4-35B-A3B recipe (`qwen4-35b-a3b` in local-inference-lab/hyperflare-recipes) cannot complete on SM120 with the flashinfer-python revision this repository pins. Qwen4-35B-A3B has two Gated DeltaNet value heads per key head (16 key heads, 32 value heads). At the pinned revision 1441ce86 the b12x GDN prefill capability check accepts only three, so decoder preparation raises "GDN prefill requires three value heads per key head" before any graph is captured. FlashInfer added the 2:1 ratio and the H=2048 hyper-connection and MTP feedback shapes this model needs in adb09a82 (local-inference-lab/flashinfer#215). `ignition[prepare]` resolves flashinfer-python from this pin, so recipe environments inherit the older revision even when they track FlashInfer main. What changed: `pyproject.toml` pins flashinfer-python at local-inference-lab/flashinfer 6aff33c4a6500a10c32916f3c2e6987e708cec92 instead of 1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e. The new revision is two commits ahead: adb09a82 (local-inference-lab/flashinfer#215, Qwen4-35B-A3B shapes) and 6aff33c4 (local-inference-lab/flashinfer#217, cooperative SM budget and green-context grid-stride safety for b12x MoE). Both are on FlashInfer main. Neither changes `flashinfer/experimental/b12x/comm/roce/_roce_proxy.c`, the source vendored in `helios/native/roce_proxy.c`, so no re-vendoring is needed. Result: with the new pin, a Qwen4-35B-A3B export on an RTX 5090 Laptop GPU (GB203, SM120) completes and the exported core serves requests. This is an observed result for that one model and device; behavior of the other recipes at the new revision is expected to be unchanged for shapes they already used but was not measured. Evidence: on an RTX 5090 Laptop GPU (GB203, SM120, 24 GiB), with ignition and flare-heliopause built from f705086 and hyperflare-recipes at d248db6, I ran `ignition export CHECKPOINT --gpus 0 --tiered-moe-offload --offload-predictor direct --offload-extents-dir DIR --max-concurrency 4 --prefill-chunk-size 2048 --speculative-method mtp --mtp-draft-tokens 5 --speculative-token-capacity 128 --image-concurrency 4 --autotune-effort off --compile-workers 1`, where CHECKPOINT is a local Qwen4-35B-A3B directory in the recipe's NVFP4 layout (trunk experts W4A4, MTP experts W4A16) that the recipe resolves to `qwen4-35b-a3b`. With flashinfer-python 1441ce86 it fails in `gdn_prefill.Caps` with the error quoted above. With 6aff33c4 it prepares 72 graphs and exports the native core, and `flare run` on that core answers chat completions at concurrency 1, 2 and 4, including a 120,000-token prompt. CPU checks at this commit, following `.github/workflows/python-cpu.yml` on an x86-64 Linux host without a GPU: after `BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1 uv sync --extra prepare --extra test` the installed flashinfer-python is 6aff33c4; `tests/preparation/test_roce_proxy_parity.py` passes (2 passed), so the vendored proxy is byte-identical to the pinned FlashInfer source; and `CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q` gives 2621 passed, 480 skipped. `cargo test --locked --release --manifest-path heliopause/Cargo.toml --lib` gives 233 passed, 1 failed, 6 ignored. The failing test is `export::blob::tests::verified_inode_mutation_is_rejected_before_link`. Run alone three times per revision on the same host, it fails 3 of 3 times on main at 22d2ac97 (pin 1441ce86) and 1 of 3 times at this commit. The two trees differ only in this pin and the test does not use FlashInfer, so the failure is intermittent on that host and does not depend on the pin. Not run: the other Rust crate suites, the simulator, TLA+ and Kani checks (this commit changes no Rust source or protocol), any GPU test (the 480 skipped tests), any other recipe, SM103 and SM121 devices, and the export with commits after f705086 (those change flare-winui, packaging and CI files only). 6aff33c4 also brings the b12x MoE change of local-inference-lab/flashinfer#217 to every recipe; its effect was measured only through the Qwen4-35B-A3B export above. Pinning adb09a82 instead would limit this change to the Qwen4-35B-A3B shapes. Design-Signed-Off-By: Claude Code (Claude Fable 5.2); design-review=2e5b Signed-off-by: Avi Fenesh --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 351625b34..8c49c48a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ explicit = true torch = { index = "pytorch-cu132" } torchvision = { index = "pytorch-cu132" } flare-heliopause = { path = "heliopause" } -flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e" } +flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "6aff33c4a6500a10c32916f3c2e6987e708cec92" } [tool.setuptools.packages.find] include = ["ignition*"]