Archived
abi: the control vector's field is ABI 26, not the 25 main released
Merging main brought 1.10.0's own 24 -> 25 bump, byte for byte the same two lines this branch carried (abi/rad_abi.h's RAD_ABI_VERSION and the layout test's snapshot constants), so the merge made those files identical to main and the PR's diff fell from 49 files to 47. What is left is a version number that names two different layouts. main's 25 grew RadGeneratorDecl (aux_max_tokens, sigma_grid, min_tokens, aux_tokens), RadStep's conditioning tensors and the tokenizer's RAD_PRE_* constants; this branch's grew RadBuildCtx by the trailing cvec pointer, which is that struct's offset 112 of 120. Both trees said 25, and core/plugin/loader.cpp compares nothing but that number, so the one direction that matters -- an engine from this branch loading a plugin home built from 1.10.0 -- was accepted: qwen4exp reads ctx->cvec at declare (qwen4exp_fp8.cpp:951) out of an eight-byte-shorter struct, past its end, and treats whatever follows as a direction table. The PR's own note, that an engine from here refuses an older home and names the stale .so, was no longer true for the release it now merges. 26 it is, with the layout table and the snapshot constants saying so. ABI 25 keeps meaning what shipped.
This commit is contained in:
1 parent
4141988217
commit
7e1f73c2a0
4 files changed
+6
-5
No files matched your search
@@ -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<Row> 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"
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user