Repository navigation
Conversation
…restore Port of Enntity/atlas 5573f4d + 43a5b9a + cfa5663 + d395321 (AGPL-3.0-only). GLM DFlash2 only; the Qwen/MTP path is untouched. ATLAS_DFLASH_WARM_CTX=legacy|exact|seed|restore (default legacy, byte-for-byte the old capture math): - exact: every prefill pass anchors at the prompt end (slot i = position window_start + i) — fixes the two chunk-boundary placement defects. - seed: a warm restore starts the window at ctx_floor instead of filling zero rows under the skip point. - restore: rows under the skip point come back from a content-addressed device slab (one slab of ATLAS_DFLASH_WARM_CTX_SLOTS windows on rank 0, SHA-256 keyed, LRU). Hooks: DflashProposerState warm_ctx/ctx_floor/ctx_run/ctx_store fields, impl_b3_dflash capture_plan, dflash_warm_begin after the prefix lookup, dflash_warm_save at the prompt leaf, WarmCtxStore reserved before KV sizing in build_model, store_slots_from_env checked on every rank when the restore arm is on. scripts/dflash_warm_ctx_check.py drives a served model for the pair check (warm == cold window oracle). GPU tests compiled, #[ignore].
|
Included in GB10 integration train #305 on main 8c2b672: ported onto main, because its stack base landed via #282 (see #305 for the resolution notes). The sparky gate (job 68b) builds #305's exact head and runs tests, three model controls, agentic-50, BFCL ST-995 and error counts. The results will be posted on #305 and here. This PR will be closed in favour of #305 once it lands. |
|
Not landing yet: #255's own GPU test fails when ported onto main.
|
|
Follow-up on the dependency hypothesis. It's now supported by history.
Suggested path:
sparky has no DFlash2 checkpoint, so the GPU tests are the only coverage available there. |
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Closing: this PR's content is on main. Its head My earlier comment about the CTX_CARRY dependency still applies, now to main: |
|
GPU test result on main (sparky GB10, clean main f506e92 build,
So the warm-context code on main works on the device. The failure is a test-isolation issue: the GLM store test assumes a CUDA context is current on its thread, which holds only when it runs first. Nothing here needs the CTX_CARRY impls I flagged earlier, so I'm withdrawing that hypothesis for these tests. The fix belongs in the test, which should bind or create its own context. |
…-Inf#256) Port of Atlas-Inf#256 (Enntity/atlas f3f3876 via 5497364, plus 8a8a959 from Atlas-Inf#295) onto main's Atlas-Inf#286 video path. Atlas-Inf#256's stack base already landed through Atlas-Inf#282, and the DFlash warm-ctx port from the same stack (Atlas-Inf#255) is not included. Every video file here is byte-identical to the version gated in train Atlas-Inf#305. - ensure_decoder is the single source for the ffmpeg enabled/available check, in video_decode_ffmpeg/probe.rs (pub(super)); decode_with_plan and frames.rs call it. - The moov/faststart decode tests use the enabled() policy; on a host with ffmpeg they fail on main under FfmpegPolicy::default(). - The GLM reference path pads a single sampled frame into a temporal pair. Qwen's generic path is unchanged. - The generic-path GLM single-frame refusal test is dropped, superseded by the reference pad test (the generic GLM branches are now unreachable behind the is_glm5_next early return; follow-up). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Replaces #244. GitHub closed #244 automatically during a restack: its branch briefly pointed at a commit its base already contained. It's the same branch (
stack/dflash-warm-ctx), now corrected; the history and receipts are on #244.Replaces #234. GitHub closed #234 automatically when a restack force-pushed its base branch, and once the head was force-pushed afterwards it couldn't be reopened. The branch is the same (
stack/dflash-warm-ctx); #234 has the history and receipts.Stack: … ← #232 ← #233 ← this.
Summary
5573f4d5,43a5b9a6,cfa56639,d3953211) with credit.ATLAS_DFLASH_WARM_CTX=legacy|exact|seed|restorecontrols how the DFlash2 draft head's context window is captured and restored across prompt-cache turns (WarmCtxStoreLRU slab, capture plan, seed/restore).legacy= the old capture math, byte for byte. GLM DFlash2 only; the Qwen MTP path is untouched.Test plan (vs parent #233)
warm_ctx15/15 (Enntity's oracle suite: legacy placement verbatim; warm == cold underrestore; store eviction/order),dflash201/201 (reiner). GPU tests compiled,#[ignore].scripts/dflash_warm_ctx_check.py(restore+ dump: no null rows; restored rows bit-equal to cold), after glm: native prefill and FP4-Local for dual DGX Spark (#199 by @Mango-kid, rebased onto main + #198) #223's GLM serving is greenTracking: #220.
Generated with Devin