Repository navigation
spark-model: stop issuing Strix-only kernel lookups on NVIDIA builds; unblock Nemotron/Qwen3.6 boots (#87) - #89
Merged
Conversation
) The shipped Lightning recipe no longer booted on GB10: five shared qwen3_attention lookups added after the port resolved to handle 0 for this target, and the gate refuses unresolved lookups (reiner job 297, main and merge train alike). - rms_norm_offset_warp_row: its only dispatch sites need a non-null per-head Q/K norm weight, and Nemotron-H has none (the loader passes a dummy). The lookup is now gated on that, so norm-less models never issue it; models with Q/K norms probe exactly as before. - w4a16_gemv_dp4a (3) and w8a16_gemm_n_m128: these modules exist only under kernels/strix-hip/common, and every dispatch is gated on the handle, with resolved fallbacks. They are declared expected_absent for this target, as qwen3.8-27b already does. The Lightning contract test pins the new set. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
4 tasks done
…87) Fleet version of the Nemotron fix. The shared qwen3_attention and qwen3_ssm constructors issued lookups for w4a16_gemv_dp4a (3 kernels) and w8a16_gemm_n_m128 on every model. Both modules exist only in kernels/strix-hip/common, so on GB10 they resolved to handle 0 and the boot kernel gate refused every target that did not declare them absent. Only qwen3.8-27b and qwen3.8-flash-next did, so Nemotron-3.5-Lightning and Qwen3.6-35B-A3B were unservable on main (reiner jobs 297/306). These lookups are now gated on cfg!(atlas_hip), the build that compiles strix-hip/common, so NVIDIA never issues them. The earlier per-target Nemotron declarations are reverted. Also: - rms_norm_offset_warp_row stays gated on real per-head Q/K norms. - The qwen3_ssm probe asked for module "dense_gemv_fp8w", but every common KERNEL.toml names the module gemv_fp8w (mtp_head and dflash_head already use the correct name). It never resolved on any target. It is now spelled correctly, which also makes the opt-in ATLAS_GDN_FP8_DECODE arm live as documented. Default behaviour is unchanged. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…87) The fleet fix missed two lookup sites. Reiner job 324 still refused Nemotron-3.5-Lightning and Qwen3.6-35B-A3B with 2 unresolved lookups at model/impl_a1.rs:128-129 (the DP4A LM-head pair). DenseFfnLayer also issues eight w4a16_gemv_dp4a lookups on dense-FFN models. All ten are now gated on cfg!(atlas_hip), like the layer sites, so no NVIDIA build issues them. No w4a16_gemv_dp4a or w8a16_gemm_n_m128 lookup is left ungated in spark-model/src; the microtest examples look them up on purpose. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This was referenced Sep 26, 2026
Contributor
Author
|
Merged as part of the GB10 merge train (main Gates on the combined tree:
Tree check: |
This was referenced Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #87, fleet-wide. On current main the GB10 boot kernel gate refuses every target that doesn't declare the Strix-only lookups absent. Only qwen3.8-27b and qwen3.8-flash-next did, so shipped recipes such as Nemotron-3.5-Lightning and Qwen3.6-35B-A3B didn't boot (reiner jobs 297 and 306, identical on main66).
Root cause and changes
qwen3_attention/qwen3_ssmconstructors issued lookups forw4a16_gemv_dp4a(×3) andw8a16_gemm_n_m128on every model. Both modules exist only inkernels/strix-hip/common/. The lookups are now gated oncfg!(atlas_hip), and the call sites return handle 0 without a lookup, likeinit_arch_gates::gated.atlas_hipisATLAS_TARGET_HW == "strix-hip", which is the build that compilesstrix-hip/common.atlas_scalewould be too wide: thestrixSCALE tree lacks these modules too.rms_norm_offset_warp_rowis gated on real per-head Q/K norms. Its only dispatch sites (prefill/cache_skip.rs) require a non-nullq_norm/k_norm. Nemotron-H has none, and its loader passes a dummy.qwen3_ssmprobe asked for moduledense_gemv_fp8w, but every commonKERNEL.tomlnames that modulegemv_fp8w;mtp_headanddflash_headalready look it up correctly. The probe never resolved on any target. It now does, which makes the opt-inATLAS_GDN_FP8_DECODEarm live as documented. Default behaviour is unchanged.The existing declarations for these lookups in qwen3.8-27b and flash-next are now unreachable but harmless. They're left as-is to keep the diff minimal.
Validation
check_kernel_shadows.pyOK,cargo test -p atlas-kernels38 pass (includinglightning_target_contract10/10).