Repository navigation
Conversation
…sume Export committed Attention/Mamba state and request progress, then import into a new native request with strict same-version and all-rank integrity checks. Assisted-by: Codex Assisted-by: GLM-5.3
|
This PR is too large. |
5 tasks
This branch has not been deployed
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.
Motivation
An active hybrid-model request contains more than a reusable prefix: it also owns Mamba recurrent state, generated tokens/logprobs, and native decoding progress. This draft adds an opt-in, default-disabled snapshot path to continue that request in a fresh SGLang process after the source exits, without recomputing its committed history.
The supported contract is deliberately bounded: identical model weights/version, source build, TP size, dtype, page/layer geometry, and the same device pair, using trusted shared local storage. Local pool capacity may differ when the actual request allocations fit. Exact sampling-RNG trajectory equivalence, cross-host/weight recovery, crash-atomicity, HA, Trainer integration, and performance are outside this draft's demonstrated scope.
Modifications
CustomTestCase; handle empty CPU-onlyCUDA_VISIBLE_DEVICESin the test runner's port default without changing nonempty-device behavior.Relationship to existing work
Accuracy Tests
GPU qualification on the original tested base
ed0b8f433f887995b1ce361b15aaf9f6ca93483f, before refreshing this draft onto127808733667e7b5b9be38f9dbb72acc6464bab4:CPU and rejection evidence:
The GPU prompt is not distributed. The reproduction guide supplies a public input and parameterized commands; that input is not claimed as the previously measured replay. The public clients never start or stop engines.
Speed Tests and Profiling
Not run. This is a correctness feature; no latency, throughput, GPU-hour savings, or cross-weight equivalence is claimed. Normal serving behavior remains default-disabled, but enabled-path overhead still needs measurement before any performance claim.
Checklist
AI assistance (Codex and GLM-5.3) was used for implementation, tests, and documentation. Human submitter line-by-line review remains pending while this PR is a draft; no human review or test attestation is implied.
CI States
Latest PR Test (Base): ❌ Run #39576461085
Latest PR Test (Extra): ❌ Run #39576460849
Latest PR Test (AMD ROCm 10): ❌ Run #39576460860