Archived
sched: a bound on the preempted-prefill gate's wait
This commit is contained in:
1 parent
0792d86375
commit
33108e488b
16 files changed
+1522
-150
No files matched your search
@@ -104,6 +104,12 @@ struct SchedMetrics {
|
||||
/* Prefix hits ended early for a windowed block drafter, and the tokens they gave back. */
|
||||
int64_t draft_refills = 0;
|
||||
int64_t draft_refill_tokens = 0;
|
||||
/* Prompt lookup's verify gate, lookup the only drafter (sched/lookup.h): proposals made,
|
||||
* held back and their drafts, and of the held ones scored, the drafts that came true. */
|
||||
int64_t lookup_proposals = 0;
|
||||
int64_t lookup_held = 0;
|
||||
int64_t lookup_held_drafts = 0;
|
||||
int64_t lookup_held_hits = 0;
|
||||
/* Per-position draft acceptance. The pooled `draft_acceptance` cannot tell a drafter that
|
||||
* decays with depth from one whose later rounds are broken. Per position j: verifies that
|
||||
* reached j (every earlier position accepted) and how many of those took j. */
|
||||
@@ -117,6 +123,7 @@ struct SchedMetrics {
|
||||
double draft_depth_adaptive = 0.0;
|
||||
int64_t draft_verify_depth[MAX_DRAFT_POS + 1] = {};
|
||||
int64_t preemptions = 0;
|
||||
int64_t preempt_forced = 0; /* --preempt-wait-ms fallback victims */
|
||||
int64_t total_requests = 0;
|
||||
/* Engine steps: one forward pass plus any draft rounds after it. With speculation a step
|
||||
* emits more than one token, so step time cannot be derived from tokens per second. */
|
||||
|
||||
Reference in new issue
Block a user