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
Base PR (1/3) in the Qwen4-35B dense
qwen4_exp(H = 5120,hc_dim = 20480,num_experts = 0) bring-up stack.This PR adds the shared engine / weight-loader / hyper-connection plumbing needed for dense
qwen4_expcheckpoints while keeping MoEqwen3.8-flash-next(H = 2560) bit-identical:qwen4_exp/{mod,ffn,mtp}.rs): Dispatchesnum_experts == 0in both trunk layers (ffn::build_ffn) and the MTP layer (mtp.rs) to the shared dense SwiGLU loader (load_dense_ffn/DenseFfnLayer) atintermediate_size, respectingsuper::mode::weight_quantizer()?.qwen4_exp/{probe,probe_tests}.rs): Audits densemlp.gate_projtensors whennum_experts == 0instead of requiring MoE expert weights, with unit tests covering valid dense layouts and missing-FFN diagnostics.H = 5120/hc_dim = 20480hyper-connections (hyper_connection_lowrank_split.rs,qwen4exp_prefill_hc.rs,hyper_connection.cu):hc_pre_splitto the 16 KB-tiledhc_pre_down_tiledkernel (bitwise identical) wheneverhc_smem = hc_dim * 4 > 48 KB(hc_dim = 20480→ 80 KB), unblocking both Strix Halo (strix-hip) and GB10 (sm_121) decode/prefill.QHC_PS_DPTfrom4uto5uingb10/qwen3.8-flash-next/nvfp4/hyper_connection.cuand syncs the host guard inqwen4exp_prefill_hc.rs(hidden <= 5120); iterations pastHare dead soH <= 4096is bit-identical.gpu_impl.rs): Includes the kernel name infault_probe::note_failureon launch error.Stack
feat/qwen4-35b-dense-core→main): shared denseqwen4_exploader +H = 5120mHC supportfeat/qwen4-35b-strix-hip→feat/qwen4-35b-dense-core): Strix Halo (strix-hip/ gfx1151) target + densew4a16_gemmshadow + boot-audit exemptionsfeat/qwen4-35b-gb10→feat/qwen4-35b-strix-hip): NVIDIA GB10 (sm_121) target + remaining NVIDIA work itemsVerification
ATLAS_SKIP_BUILD=1):cargo fmt --check— passcargo clippy -p spark-model -p spark-runtime -p atlas-kernels --tests -- -D warnings— passRUSTDOCFLAGS="-D warnings" cargo doc --no-deps -p spark-model -p spark-runtime -p atlas-kernels— passcargo test -p atlas-kernels— pass (all non-nvcc tests green).rsfiles checked against the 500-LoC cap (gpu_impl.rsnet -3 lines).H=5120, I=14336checkpoint booted and served onsparky(GB10) with byte-identical Flash-Next FP4-Local control.