diff --git a/abi/rad_abi.h b/abi/rad_abi.h index 7353a917..6e0179cb 100644 --- a/abi/rad_abi.h +++ b/abi/rad_abi.h @@ -17,7 +17,7 @@ extern "C" { * kind of plugin reports it, and a plugin that does not report exactly this version is refused at * load with both versions printed. 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 25u +#define RAD_ABI_VERSION 26u /* ================================================================== plugin identity */ /* One value per plugin, not flags (QUANT is 3). RAD_PLUGIN_QUANT is a quantiser plugin: diff --git a/abi/rad_builder.h b/abi/rad_builder.h index 0327d58b..948d9f7f 100644 --- a/abi/rad_builder.h +++ b/abi/rad_builder.h @@ -174,6 +174,7 @@ typedef struct RadBuildCtx { * Trailing and zero-defaulted, so a plugin built against the older struct is unchanged. */ int kv_quant; + /* ---- appended in ABI 26 (control vectors) */ /* A control vector loaded from a GGUF `controlvector` file found for this model, or null. * * The engine loads and validates it once, at bringup, and the plugin only reads it: the diff --git a/tests/abi_layout_table.h b/tests/abi_layout_table.h index 70fa21a3..dc5940cc 100644 --- a/tests/abi_layout_table.h +++ b/tests/abi_layout_table.h @@ -1,4 +1,4 @@ -/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 25 and +/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 26 and * RAD_FORMAT_VER 2, as { type, field, offset, size } rows ("" is the struct itself). A snapshot * of the headers on x86-64 Linux, which abi_layout_test.cpp holds the layout to; regenerate it * from the test's printout only together with a version bump. */ diff --git a/tests/abi_layout_test.cpp b/tests/abi_layout_test.cpp index 76e49048..611d3c8a 100644 --- a/tests/abi_layout_test.cpp +++ b/tests/abi_layout_test.cpp @@ -8,7 +8,7 @@ * * Checked: a C translation unit (abi_c_test.c, strict C11) lays every struct out as C++ does; every * struct's listed fields account for its size, so the list in abi_layout_rows.h is complete; and - * the layout agrees with the table below, taken at RAD_ABI_VERSION 25 and RAD_FORMAT_VER 2. Under + * the layout agrees with the table below, taken at RAD_ABI_VERSION 26 and RAD_FORMAT_VER 2. Under * those versions a listed field may not move or change size, an ABI struct may only grow by fields * past its old end, and an on-disk struct may not change at all. The table is a snapshot of the * headers: nothing else states the layout. When it disagrees the test prints the live table. @@ -57,8 +57,8 @@ std::vector cpp_rows() { }; } -/* The layout at RAD_ABI_VERSION 25 / RAD_FORMAT_VER 2 (see the file header). */ -constexpr uint32_t kTableAbi = 25, kTableFormat = 2; +/* The layout at RAD_ABI_VERSION 26 / RAD_FORMAT_VER 2 (see the file header). */ +constexpr uint32_t kTableAbi = 26, kTableFormat = 2; const AbiRow kTable[] = { #include "abi_layout_table.h" };