Archived
kvstream: the raise names the floor that bound it
With only the union raise, "raised to N tokens" always meant "one decode step's selection". Now that the shipped floor can bind instead, both startup lines said the wrong thing: --kv-resident 1 reported "a decode step can name 1026 blocks" while carving 8192. KVStreamRing::by_union carries which bound won, and KVStreamSetup::raised_by_union hands it to the report. Verified on 2x16 GB: --kv-resident 1 now prints "a ring under 32768 tokens (8192 blocks of 4) misses more than it saves, so the shipped floor is what the carve takes", the report line says the same, kv_resident_blocks reads 8192 and the engine serves.
This commit is contained in:
1 parent
613bbaacfd
commit
8af24965cc
4 files changed
+19
-7
No files matched your search
@@ -189,6 +189,8 @@ void kvstream_ring(const Config& cfg, int64_t ctx, int64_t block_size, int64_t s
|
||||
if (out->ring_blocks < ceiling) {
|
||||
out->ring_blocks = ceiling < out->ctx_blocks ? ceiling : out->ctx_blocks;
|
||||
out->raised_blocks = out->ring_blocks;
|
||||
/* The union above the floor, or above the flag: either way it is the union that bound. */
|
||||
out->by_union = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user