Repository navigation
scheduler: SparkQwen 0.4.0 width-change amortization, depth-window tests, opt-in copy drafts (ported from Enntity) - #287
Merged
Merged
Conversation
record/drafts take the window and the start through pure record_in / drafts_from, and min_drafted(window) names the quarter rule (MIN_DRAFTED of the default 48). Tests: window parsing bounds; a 16-verify window decides on the 16th verify and holds with fewer than 4 deepest observations; a start of 7 begins there (clamped to floor..=max) and demotes on a = 0. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 0aad517) Ported from Enntity/atlas 0aad517 (AGPL-3.0-only, data-angel)
…PY_DRAFTS) qwen4_exp drafts with its MTP head, one sequential head pass a draft (up to seven). Where the context's last 8 tokens occurred earlier, the tokens that followed them are free drafts. ATLAS_QWEN_COPY_DRAFTS=1 (default off; a SchedLevers lever) makes such a copy the next verify's drafts in place of the head's propose, reusing copy_drafts' index, proposal and knobs (ATLAS_DFLASH_COPY_MATCH/_MAX/_REPLY_MATCH/_MISS_MAX). copy_drafts::mtp: - lane: the lever, on a model whose every verify row, alone or batched, is serial decode's (Model::batch_verify_bit_exact: EXACT_VERIFY + BATCH_FAST). Inert on GLM and the inexact lanes. - propose: after a verify, at the K=2/3/4 verdicts and the batched verify's propose, a copy of up to --num-drafts drafts (within the slot's capacity) skips the head. Bootstraps and decode rows always run the head (the first propose builds the drafter's prompt context). No copies under a grammar. Drafts carry COPY_CONF / COPY_REPLY_CONF. - begin_verify / trim_proposer: the take of a copy marks the round; its verdict skips trim_proposer_state, since the head wrote no rows for it. - settle: copy rounds are booked for the COPY DRAFTS line and skipped by the head's depth controllers. - deep_cap: a LONE request's copy verifies up to the step's ceiling, past the head's own dynamic depth (a window the head's deep depth reaches, <= 8 rows); in a batch copies keep the ladder. Exactness: accept/rollback are the head's (k4_apply_verdict, K=2/3), so every emitted token is the target's pick at its row, and on this lane a row's pick does not depend on its window or batch, so greedy output with the lever on equals serial decode. Prefill is untouched. Long copies past 7 drafts are designed in the module doc (H-snapshot borrow window, GDN chain past GDN_VERIFY_KMAX, PLE snapshots, row bounds, a lone capacity from the model), not built: TODO(long-copy). Tests: copy_drafts::mtp (proposal, ceiling/knob caps, reply confidence, grammar, lane gating, settle, preemption), and step_mtp on the exact-lane stub (lone copy past the head's depth with no head propose and no trim, partial accept rollback, batched mix, decode rows, flag-off and inexact parity). Not built or run: no CUDA host. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 8f3d008) Ported from Enntity/atlas 8f3d008 (AGPL-3.0-only, data-angel)
…ngram::hash_tokens
4 of 6 tasks
AzeezIsh
marked this pull request as ready for review
October 31, 2026 23:04
This was referenced Nov 1, 2026
Contributor
Author
|
GB10 single-Spark confirmation (sparky, post-merge): this PR was gated as part of
|
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SparkQwen 0.4.0's scheduler commits. Ported from Enntity (AGPL-3.0, data-angel):
f1fdf272c: amortize width-change startup before MTP arbitration.0aad51753: tests for the dynamic depth's decision window and start ceiling.8f3d008ad: copy drafts in place of the MTP head's propose. Opt-in viaATLAS_QWEN_COPY_DRAFTS=1, off by default and off in every SparkQwen profile.Test plan
--tests) is clean.union_check15/16 (the stream-fence newline is fixed in the next PR),lp_api_probe13/13,api_parity26/26.Generated with Devin