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
@@ -80,7 +80,11 @@ struct KVStreamRing {
|
||||
* already asked for that much: the ring is not the operator's
|
||||
* number when this is set */
|
||||
int64_t floor_blocks = 0; /* the shipped floor (kStreamFloorTokens) in blocks, or 0 when the
|
||||
* context is smaller than it: which of the two bound the raise */
|
||||
* context is smaller than it */
|
||||
/* Which floor bound the raise: true when it was the decode-step union rather than the shipped
|
||||
* floor. Both are applied in kvstream_ring_shape/kvstream_ring; this only tells the two
|
||||
* startup lines which sentence to print. */
|
||||
bool by_union = false;
|
||||
int64_t ctx_blocks = 0; /* max_seqs x ceil(ctx / block_size): the group's whole context */
|
||||
/* A ring that covers the context is not a streamed group. The pool then holds every block
|
||||
* with its own id, so the group keeps the base engine's path exactly: no mirror, no residency
|
||||
|
||||
Reference in new issue
Block a user