Skip to content

feat(targets): add strix-hip and gb10 qwen4-35b-a3b targets (+ DFlash2) - #459

Draft
AzeezIsh wants to merge 2 commits into
feat/qwen4-35b-a3b-corefrom
feat/qwen4-35b-a3b-targets
Draft

AzeezIsh wants to merge 2 commits into
feat/qwen4-35b-a3b-corefrom
feat/qwen4-35b-a3b-targets

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Open for early testing & contributions — do not merge yet.
Live AMD Strix Halo testing against RadixArk/Qwen4-35B-A3B-NVFP4 (+ RadixArk/Qwen4-35B-A3B-Dflash2) is running on DevLab (47257869285).

Summary

PR (2/2) in the Qwen/Qwen4-35B-A3B bring-up stack (stacked on #458).

Adds the qwen4-35b-a3b target manifests for AMD Strix Halo (strix-hip) and NVIDIA GB10 (gb10):

  • kernels/strix-hip/qwen4-35b-a3b/MODEL.toml and kernels/gb10/qwen4-35b-a3b/MODEL.toml:
    • Bind unique (model_type = "qwen4_exp", hidden_size = 2048) using kernel_source = "qwen3.8-flash-next" (no duplicated .cu shadows).
    • Wire [dflash] to RadixArk/Qwen4-35B-A3B-Dflash2 (gamma = 8, window_size = 2048, mask_token_id = 248077, target_layer_ids = [19, 23, 27, 31, 35]).
    • Set default_kv_dtype = "bf16", tool_call_parser = "qwen3_coder", and reference-parity [behavior] (verbatim_prompt = true, tool_call_steering = false, max_inter_tool_prose = 0, ban_tool_call_without_tools = true; omits default_reasoning_effort = "medium" since Qwen4's template accepts ('xhigh', 'high', 'low', 'off')).
    • Carry the full expected_absent audit tables (including w4a16::fp8_gemm_t_row_scaled{,_m16} on strix-hip for DFlash2 BF16 drafter fallback).
  • crates/atlas-kernels/src/lib_tests.rs: Updates moe_persist_marker by_presence from 1 to 2 (qwen3.8-flash-next + qwen4-35b-a3b share gb10/qwen3.8-flash-next/nvfp4).
  • crates/atlas-kernels/tests/qwen4_35b_a3b_resolution.rs: Pins (qwen4_exp, 2048) → qwen4-35b-a3b on both strix-hip and gb10 without colliding with qwen3.8-flash-next (2560).

Notes for NVIDIA (GB10 / SM121)

  • RadixArk/Qwen4-35B-A3B-NVFP4 is 43.7 GB on disk (~20 GB FP8 PLE demand-paged off NVMe + ~23 GB resident weights), so it fits comfortably on one GB10 alongside RadixArk/Qwen4-35B-A3B-Dflash2 (754 MB).
  • qwen4exp_decode_fuse (GDN_REPEAT = 3) cleanly skips when nv / nk == 2 (32 / 16), so plain GDN decode serves safely; adding a repeat = 2 arm is an optional future decode optimization for both Strix and GB10.
  • hc_dim = 4 × 2048 = 8192 (32 KB smem) fits single-pass hc_pre_down, and 16Q / 2KV, hd = 256 hits qsa_prefill_attn_tc2 natively on both backends.
  • Still needs a GB10 nvcc build + cargo test -p atlas-kernels -- --ignored + real-weight boot-audit check (confirming zero undeclared unresolved probes).

Verification

  • Local (macOS, ATLAS_SKIP_BUILD=1) + GitHub CI workspace checks (fmt, clippy, ≤500 LoC, kernel shadow structure, SPDX) — pass.
  • Live AMD Strix Halo runner test (47257869285) in flight against RadixArk/Qwen4-35B-A3B-NVFP4 + RadixArk/Qwen4-35B-A3B-Dflash2.

@AzeezIsh
AzeezIsh force-pushed the feat/qwen4-35b-a3b-targets branch from f5c8c5b to 4f1be0b Compare December 4, 2026 19:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant