glm5next: the plugin over its blocks, one a file, and rad_glm_tp.h for the shards and the split threshold -- the same graph, read in order

The plugin carried the draft head's buffers, weights and ops in its declare and its draft pass
in its step, with the three ops that join the head to its layer declared inside the layer
function; each GLM block carried its core in a header of its own (rad_block_mla_latent.h,
rad_block_kda_state.h, rad_block_dsa_cache.h), the split threshold sat in rad_tp_split.h beside
the router's column split, and 64 / world, 8192 / world, 2048 / world were spelled across the
plugin and the blocks. tests/arch_test.cpp held the recording builder, the run-phase fakes, the
step lint, the batch kits and the fingerprints beside every architecture's cases, 9.5k lines in
one translation unit, GLM-5.3's among them.

Now one block a file in arch/common: rad_block_glm_{mhc,kda,mla,indexer,router,mtp}.h, the
cores joined to their blocks, and GlmMtp the draft head in three parts (inputs, join, head),
declared and stepped around the plugin's layer 45. rad_glm_tp.h (GlmTp) holds the widths a
rank's shard divides, the one threshold kSplitRows and the replicated all_reduce declared once;
SplitF32Proj moves over unchanged. The plugin reads as the stream's buffers, then each block's,
the KV groups, the layers, the head and the draft head.

tests/arch_fakes.h holds the fakes and the helpers every architecture test needs, included by
one translation unit a binary (neither binary links rad_core, as before); GLM-5.3's cases are
tests/glm5next_test.cpp, which includes only its plugin, with two cases new: every op the plugin
issues carries the operand count its schema declares (the kernel libraries' schemas under
$RADIANCE_HOME/kernels, counted as core/runtime/issue.cpp counts), and every declared weight
reads an entry the served container holds, at the dtype its stored encoding calls for (the
container's names and encodings as rad-info -v lists them).

Every declared name, declaration order and issue order is as it was: the pinned graph and step
hashes at one and eight ranks are the values arch_test pinned before the move (world 1
0xed3fc26c486ea1b5 / 0x98ba2952bb37b075, world 8 0x8204e073efdeee0c / 0x1279aecfe4e32d9a), and
arch_test's pins of the other architectures are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
NunzeandClaude Fable 5.1 authored and StillDeadcode committed 2026-10-21 09:44:46 +02:00
1 parent d2a165d56d
commit fa4a7a75a4
17 files changed
+3768 -3105

No files matched your search

+13 -9
View File
@@ -10,11 +10,12 @@
# fast every test with none of slow, gpu, oot and perf, set at the end of this file: the
# inner loop (`ctest --preset fast`, or `ctest -L fast`)
#
# arch_test does not link rad_core: it supplies its own recording fake of the declare-phase C ABI,
# so plugins are tested without depending on core/build/'s builder. With the archive linked, a new
# ABI call missing from the fake would pull in rad_builder.cpp.o and collide on every rad_decl_*
# symbol; without it the error is a single undefined reference.
set(RAD_TESTS_NO_CORE arch_test)
# arch_test and glm5next_test do not link rad_core: they supply their own recording fake of the
# declare-phase C ABI (arch_fakes.h), so plugins are tested without depending on core/build/'s
# builder. With the archive linked, a new ABI call missing from the fake would pull in
# rad_builder.cpp.o and collide on every rad_decl_* symbol; without it the error is a single
# undefined reference.
set(RAD_TESTS_NO_CORE arch_test glm5next_test)
# fixture_test tests tools/kfixture.cpp and tools/opshapes.cpp (the seeded draw, the reduction and
# the on-disk recording) directly, kbench_test tools/kbench_core.cpp (rad-kbench's rules), and
@@ -273,10 +274,13 @@ if(TARGET abi_layout_test)
endif()
# arch_test reads libref's vocabulary from $RADIANCE_HOME/kernels to check that each architecture
# declares on it, so libref is built before it.
if(TARGET libref AND TARGET arch_test)
add_dependencies(arch_test libref)
endif()
# declares on it, and glm5next_test the loaded libraries' op schemas, so libref is built before
# them.
foreach(t arch_test glm5next_test)
if(TARGET libref AND TARGET ${t})
add_dependencies(${t} libref)
endif()
endforeach()
# kbench_mutant_test runs rad-kbench against the deliberately defective kernel libraries
# (core/plugin/testplugin/kbmutant.cc) on the host backend, so it needs the tool, libref and the
+1177
View File
File diff suppressed because it is too large. Load diff
+2 -2345
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff