Archived
spec: --draft-depth adaptive stops the MTP chain inside the step
A coupled serial chain stops as soon as the product of the head's own probabilities along it falls under --draft-depth-stop (default 0.85; top or path statistic, at most --draft-depth-max rounds, at least --draft-depth-min), and the next verify carries exactly the drafts made. The decision trails the chain by --draft-depth-lag rounds (default 1), so the host's readback of one state row and its issue of the next round hide behind the running round. The rule reads the draft's laws and the tokens drawn before the one a decision admits, never the target and never the admitted token, so the row-wise and the traversal verify stay exact; mtp_rrs_test checks it by chi-square with two rules that must fail (one reads the admitted draft's own mass, one the target). It excludes --draft-window adaptive, which picks the next step's window from earlier acceptance and step cost and so is a second controller on the same chain. The recorded-pass cache holds 48 passes instead of 24: every row count is its own pass shape and the adaptive chain makes more of them than 24 hold. On Flash-Next IQR-V4 (TP2) on our branch, against chain 3 with coupling and traversal: +3.0% tok/s [+1.0, +5.0] over 117 paired requests; the 48-entry cache is +1.7% [+1.1, +2.3] of that for this mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d0fd4aa1bb
commit
e78d484e60
13 files changed
+1054
-4
No files matched your search
@@ -1047,6 +1047,21 @@ struct Config {
|
||||
* tokens than token-wise, and it needs --draft-coupling on. */
|
||||
bool draft_verify_block = false;
|
||||
bool draft_verify_traversal = false;
|
||||
/* --draft-depth fixed|adaptive (core/sched/draft_depth.h): adaptive stops a coupled serial
|
||||
* chain within the step as soon as the head's own laws make the next draft unlikely, so a step
|
||||
* drafts 1 .. draft_depth_max tokens (0: num-speculative-tokens) and its verify carries that
|
||||
* many rows. The chain goes on while the product of the rounds' statistic (stat 0: the largest
|
||||
* mass of each round's law, 1: the mass of the token it drew) stays >= draft_depth_stop; the
|
||||
* decision trails the chain by draft_depth_lag rounds (0 or 1; 1 hides the host's readback
|
||||
* behind a running round), draft_depth_min rounds always run. Needs --draft-coupling on, a
|
||||
* serial head's chain and --draft-window fixed. Lossless: the rule reads draft-side quantities
|
||||
* only. Off by default, which is the fixed chain bit for bit. */
|
||||
bool draft_depth_adaptive = false;
|
||||
int draft_depth_max = 0;
|
||||
int draft_depth_min = 1;
|
||||
int draft_depth_lag = 1;
|
||||
int draft_depth_stat = 0;
|
||||
double draft_depth_stop = 0.85;
|
||||
|
||||
/* ---------------- KL DIVERGENCE AGAINST A REFERENCE (core/kld.h) ----------------
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user