Archived
TP4 for Qwen3.8-Flash-Next: unfused chain, four refusals answered
World 4 refused at declare on two counts and at boot on a third the audit
found; the fourth is unchanged by design.
- rad_arch.h: a world above the KV head count replicates the heads in rank
pairs instead of dividing them. Geom gains kv_off; each rank declares
n_head_kv 1 and gqa 6. A world that is not a multiple of the head count
is still refused, by name.
- rad_block_attn_gated_fp8.h: k/v pass the row span LinearFP8 already
takes, gated on world > n_head_kv_all so an even shard is untouched and
TP2 declares byte-identically.
- qwen4exp_fp8.cpp: above two ranks the ranks own whole experts (5 blocks
of 128 do not cut four ways); the parity tables stay two-rank and the
router stays replicated.
- libr4d: attn_{prefill,decode}_h256_gqa6_bs4 rows and their TU -- the
gqa8 body at ratio 6, page 4. No fused form is instantiated at this
geometry; the unfused pair is what resolves.
- libr4d: r4d_ar_gather_Nrank.hip. The vocab-parallel sampler declares an
all_gather at any world > 1 and libr4d shipped only the 2-rank row, so a
TP4 boot was refused by the reference-kernel gate rather than served
wrong. The wide one-shot all-reduce with the reduction removed.
- rad_block_attn_gated.h / rad_block_attn_fp8.h: refuse a world above the
KV head count. They read n_head_kv and declare no span, so they would
have booted and read half a KV head -- fluent wrong text.
- tests/arch_test.cpp: the four-rank declare test, and the fake records
the shard span the real builder stores.
- README, ARCHITECTURES: TP4 in the present tense, with the costs named
and the rate against TP2 left unmeasured.
This commit is contained in:
1 parent
966bda899a
commit
7cf4c005e1
14 files changed
+926
-31
No files matched your search
@@ -63,6 +63,9 @@ set(R4D_UNITS
|
||||
# Twelve, head_dim 256 only: Qwen3.8-Flash-Next's QSA layers are 24 over 2. Four lines that
|
||||
# set the ratio and include the unit above, which is the parameterised body.
|
||||
"r4d_attn_paged_h256_gqa12|"
|
||||
# Six, head_dim 256 and the same 4-token page: the same QSA layers at four ranks, where each KV
|
||||
# head is replicated across a rank pair. Again four lines that set the ratio and include the body.
|
||||
"r4d_attn_paged_h256_gqa6_bs4|"
|
||||
"r4d_attn_vit_h72_bf16|"
|
||||
# The vision tower's own small ops: layer norm, the learned-grid position embedding, and the
|
||||
# biased GEMM with a linear layer's activation and residual in its store.
|
||||
@@ -87,6 +90,7 @@ set(R4D_UNITS
|
||||
# copy of it, which is the one thing it must not have.
|
||||
"r4d_ar_entry|"
|
||||
"r4d_ar_gather_2rank|"
|
||||
"r4d_ar_gather_Nrank|"
|
||||
"r4d_ar_oneshot_2rank_exact|"
|
||||
"r4d_ar_oneshot_2rank_wht6|"
|
||||
"r4d_ar_oneshot_Nrank_exact|"
|
||||
|
||||
Reference in new issue
Block a user