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
@@ -26,8 +26,10 @@ struct KVStreamSetup {
|
||||
int32_t group = -1; /* the group that streams; -1 when nothing does */
|
||||
std::string group_name; /* the group that would have: named by the report */
|
||||
int64_t asked_tokens = 0; /* --kv-resident as given; 0 is no streaming at all */
|
||||
int64_t raised_tokens = 0; /* what the flag became when the ring's ceiling raised
|
||||
* it; 0 when it was not raised */
|
||||
int64_t raised_tokens = 0; /* what the flag became when a floor raised it; 0 when it
|
||||
* was not raised */
|
||||
bool raised_by_union = false; /* the raise was the decode-step union, not the shipped
|
||||
* floor (kStreamFloorTokens): the report's wording */
|
||||
int64_t context_tokens = 0; /* --max-model-len x --max-num-seqs */
|
||||
int64_t ring_tokens = 0; /* the ring that is carved, in tokens: the raised flag,
|
||||
* rounded to whole blocks */
|
||||
|
||||
Reference in new issue
Block a user