Repository navigation
Protect long Flash Next snapshots while admitting 2K prompts - #4
Draft
cwschroeder wants to merge 3 commits into
Draft
cwschroeder wants to merge 3 commits into
cwschroeder wants to merge 3 commits into
Conversation
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.
What this changes
Admit Flash Next RAM snapshots from 2048-token prompts while preventing new marks below position 4096 from evicting snapshots saved at 4096 or later. Other families keep the existing policy; admission accounts for the entire selected mark set and preserves entries when it refuses a short save.
This is a dependent draft against the current-upstream rebase of batching PR #606. The follow-up can target upstream after that prerequisite lands. Its runtime, tests and HTTP helpers match the hardware-qualified source byte for byte.
Receipt
The receipt contains all 800 completed HTTP responses, eight native logs, an independent auditor, corruption checks, source/binary pins and cleanup evidence.
Both protected traces retain 16377 and 8185 cached tokens on their long revisits. Unprotected 2K loses both prefixes and takes 53.358 s. The 0.12% difference against 4K is not a claimed improvement. Long snapshots can fill the budget and refuse new short snapshots; conservative pool accounting can also refuse a feasible admission.
e7c523ebfa16b8094cf9e35e3773a7d25befcc5b, qualified sourcec3abc209398a5db614610c731954e5ad85529087, dependent base7f0430e027616e8a99586a39049a94afd4c70ad5. CheckpointQwen3.8-Flash-Next-MLX-6bit-MTP, revision metadata45032a193a5d4126ba8534822cbaf8fb30b3e368; existing weights, fresh checkpoint gate, no new full weight rehash. Four slots, 24576-token context, 2 GiB RAM snapshots, MTP chaining and learned disk states off. Binary SHA256 and compiler/SDK pins are inbuild-pins.jsonandmanifest.json.bench_openai.pywas not run; this receipt measures complete dialogs and four-session groups, rather than isolated tokens/s.prefill_cold.pyand a previous-release comparison were not run, so last-release prefill performance remains unqualified.775522f50fad21071f2c326f3ff110716fe0b5a8. These checks do not qualify an additional GPU or a service promotion.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.