Repository navigation
Conversation
This was referenced Dec 4, 2026
This branch has not been deployed
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.
Summary
PR (3/3) in the Qwen4-35B bring-up stack (stacked on #455 → #456), adding the NVIDIA GB10 (
sm_121) target for denseqwen4_exp(hidden_size = 5120,hc_dim = 20480,num_experts = 0):kernels/gb10/qwen4-35b/nvfp4/):qwen4_expkernels (hyper_connection.cu,ple.cu,qsa_*,mxfp8_*,qwen4exp_decode_fuse.cu,qwen4exp_hc_mma.cu,qwen4exp_gdn_prefill.cu,qwen4exp_fp8_gemm.cu,qwen4exp_rows32_tile.cu,qwen4exp_w4_*,qwen4exp_wide_rows.cu,gated_delta_rule*.cu,vision_encoder.cu) fromqwen3.8-flash-next/nvfp4/.nvfp4_mmq.cu,q4k_mmq.cu,q4k_quantize.cu,q4k_vendor,w4a16_gemm.cu,w4a16_gemm_v2.cu,w4a4_gemm.cu) fromqwen3.6-27b/nvfp4/.moe_persist_marker.cuand MoE-only Flash-Next kernels (atlas-kernelslib_testsenforces that onlyqwen3.8-flash-nextshipsmoe_persist_marker).kernels/gb10/qwen4-35b/MODEL.toml):(model_type = "qwen4_exp", hidden_size = 5120)withmatch_names = ["qwen4-35b", "qwen4-27b"].[expected_absent.moe_persist_marker]plus the combinedgb10/qwen3.8-27b+gb10/qwen3.8-flash-nextexemptions (including the Strix-onlyw4a16_gemv_dp4a/w8a16_gemm_n_m128/w4a16_gemm_t_m128_k16probes).crates/atlas-kernels/tests/qwen4_35b_resolution.rs): Extends the resolution andmoe_persist_markerpins togb10.Earlier Pre-Rebase Synthetic GB10 Baseline (
sparky)Measured on an earlier local prototype (
b4f2ec529) using a synthetic 64-layer random BF16 checkpoint (16 full attn + 48 GDN,H = 5120,I = 14336, no PLE) on one GB10 (sparky):tok_step = 4.92(engagement check only; acceptance on random weights is meaningless).Qwen3.8-Flash-NextFP4-Local was byte-identical tomain.What Still Needs to Be Done for NVIDIA (GB10 / SM121)
load_dense_ffn(andnvfp4_mmqprefill +w4a16_gemvdecode). If an unquantized BF16 checkpoint must be served on one GB10, wire quantize-at-load for the dense FFN path too.hc_pre_downdecode kernel forhc_dim = 20480:hc_pre_splitathc_dim = 20480(80 KB > 48 KB shared mem) tohc_pre_down_tiled(16 KB smem, 40 barrier rounds/token). That is bitwise exact and unblocks serving, but decode will pay tiled barrier overhead until a 4H-capable single-pass / split-Khc_pre_downdecode kernel (cf. PR22's 40-way K-split design) is added forsm_121.QHC_PS_DPT = 5u,hc_post_stage_vec, andqwen4exp_hc_mmaatH = 5120on SM121 silicon:hc_post_stage_bf16withQHC_PS_DPT = 5u(ATLAS_QWEN4EXP_PREFILL_HC=1) andhc_post_stage_vec(ATLAS_QWEN4EXP_DECODE_FUSE=1) atH = 5120, and verify Flash-Next (H = 2560) stays bit-identical and regression-free.kv_heads = 4(if QSA weights ship):qsa_prefill_attn_tc2/tc3requirenkv == 2(qsa_prefill_attn_tc2_ok). Atkv_heads = 4, dispatch safely falls back toqsa_prefill_attn(or opt-inATLAS_QSA_ATTN_TC=1->qsa_prefill_attn_tc, which supports arbitrarynkvwithgqa <= 32). Benchmarkqsa_prefill_attn_tcvs generalizingtc2/tc3togrid.x = nkv / 2once real weights arrive.config.json:model_typestring (and whetherdispatch.rsneeds a new alias).intermediate_size(14336 vs 17408).H = 5120).H = 5120.default_num_draftsvs--num-drafts 4+ATLAS_QWEN4EXP_MTP_DEPTH=4on the exact verify lane) + optionalgated_delta_rule_snap/gdn_verify_fused_conv_kn_f32symlinks fromqwen3.6-27b/nvfp4/if--exact-verifyis hot.sparky:ATLAS_MODELS=qwen4-35bonsparkywithnvcc(sm_121), run fullcargo test -p atlas-kernels -- --ignored(verifyingmoe_persist_markerby_presence == 1andexact_verify_snapinvariants on compiled PTX), verify zero undeclared boot-audit probes, and run a Flash-Next byte-identity control check.Stack
feat/qwen4-35b-dense-core→main)feat/qwen4-35b-strix-hip→feat/qwen4-35b-dense-core)feat/qwen4-35b-gb10→feat/qwen4-35b-strix-hip)Verification
ATLAS_SKIP_BUILD=1):kernels/gb10/qwen4-35b/nvfp4/verified livecargo fmt --check— passcargo test -p atlas-kernels— pass (incl.no_model_shadow_drops_a_common_kernel,qwen4_35b_resolution,target_resolution)cargo clippy -p atlas-kernels --tests -- -D warnings— passRUSTDOCFLAGS="-D warnings" cargo doc --no-deps -p atlas-kernels— passnvccor tested on real Qwen4-35B weights in this pass (opened as draft).