prefill: fail closed when live split geometry is unknown

Head-256 split-prefill launchers now declare that their grid depends on
live KV. Without an architecture geometry key, those passes stay live
instead of replaying a stale tape. Qwen keys only a proven one-sequence
prefill. Plugin ABI 34.
This commit is contained in:
Constantin authored and StillDeadcode committed 2026-11-03 19:05:30 +01:00
1 parent ded64c0bd3
commit aa14eea76c
10 files changed
+148 -30

No files matched your search

+8 -3
View File
@@ -19,7 +19,7 @@ extern "C" {
* version is refused at load with both versions printed. Each also exports the layout's fingerprint
* (rad_abi_layout.h), so two layouts given one number are refused as well. A new optional export
* (e.g. rad_plugin_reference) is not a change of shape: a plugin without it gets the default. */
#define RAD_ABI_VERSION 33u
#define RAD_ABI_VERSION 34u
/* ================================================================== plugin identity */
/* One value per plugin, not flags (QUANT is 3). RAD_PLUGIN_QUANT is a quantiser plugin:
@@ -465,15 +465,20 @@ typedef struct RadKernelInfo {
* against: a named skip, not a failure. */
RadUnrelayoutFn unrelayout;
/* The chain of conventional ops this kernel computes in one launch, or null if it is not a
* fusion. Non-null also counts in rad-kbench's fusion-claim column.
* fusion. Non-null also counts in rad-kbench's fusion-claim column. */
RadFuseFn replaces;
/* Flags describing runtime behavior relevant to core safety decisions. Zero means none.
*
* Keep this field last. Kernel tables are positional aggregate initialisers
* (`{..., nullptr, nullptr, r4d_rad_embed_lookup, nullptr, ...}`), so a field inserted
* anywhere else shifts every later initialiser, and since `nullptr` converts to any function
* pointer type, part of that shift would still compile. Append new fields after this one. */
RadFuseFn replaces;
uint64_t capabilities;
} RadKernelInfo;
/* This row's launch grid can depend on live seqused during prefill. */
#define RAD_KERNEL_CAP_DYNAMIC_PREFILL_SPLIT (1ull << 0)
/* ================================================================== kernel plugin exports */
/* Every kernel plugin exports the whole set. The first plugin in hierarchy order to declare an op
* fixes its schema; a later plugin declaring the same op name with a different schema is refused
+2
View File
@@ -95,6 +95,7 @@ ABI_FIELD(RadBatch, plugin_cu)
ABI_FIELD(RadBatch, plugin_words_h)
ABI_FIELD(RadBatch, plugin_cu_h)
ABI_FIELD(RadBatch, sgen_b)
ABI_FIELD(RadBatch, kv_used_max_h)
ABI_STRUCT(RadBufDecl)
ABI_FIELD(RadBufDecl, dtype)
ABI_FIELD(RadBufDecl, rank)
@@ -543,6 +544,7 @@ ABI_FIELD(RadKernelInfo, relayout)
ABI_FIELD(RadKernelInfo, opd_shape)
ABI_FIELD(RadKernelInfo, unrelayout)
ABI_FIELD(RadKernelInfo, replaces)
ABI_FIELD(RadKernelInfo, capabilities)
ABI_STRUCT(RadLayout)
ABI_FIELD(RadLayout, tag)
ABI_FIELD(RadLayout, dtype)