Repository navigation
[None][feat] Prototype faster native startup with Snapshot - #20079
Closed
chienchunhung wants to merge 3 commits into
Closed
chienchunhung wants to merge 3 commits into
chienchunhung wants to merge 3 commits into
Conversation
Collaborator
Author
|
/bot run |
Collaborator
|
PR_Github #77080 [ run ] triggered by Bot. Commit: |
Signed-off-by: Chien-Chun Hung <[email protected]>
Collaborator
|
PR_Github #77080 [ run ] completed with state |
Signed-off-by: Chien-Chun Hung <[email protected]>
Signed-off-by: Chien-Chun Hung <[email protected]>
chienchunhung
force-pushed
the
dev/snapshot-startup-prototype
branch
from
October 10, 2026 07:04
53b42f1 to
e16981e
Compare
1 task done
1 task done
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
Prototype faster native
trtllm-servestartup by capturing a clean, warmed PyTorch worker tree and restoring it before serving validation. Snapshot restores execution state; TRTLLM must establish serving validity. No Dynamo, Kubernetes or GMS service is required.Scope
This draft has three sequential commits, following the v1 design:
The runbook provides cold → capture/source termination → restore → validated serving commands; ordinary startup remains unchanged unless explicitly enabled.
Delivery target: all required S1-S7 functionality in v1, across Phase 0/1/2. This head is only a partial implementation candidate, not the requested complete e2e prototype. Multi-node execution, both P/D replacement directions, all-request drain, communication reconstruction and orchestrator adapter tests remain required; unsupported-profile rejection does not complete those requirements. Partial-rank failover, survivor rejoin, scaling, GMS, live-request preservation, KV migration and interrupted-transfer resumption remain outside the design's baseline scope.
Capture requires a clean resident template, fixed namespaces/filesystem/GPU assignment and checkpoint privileges; operator-declared profile identity is not attestation. A partial CRIU failure before root-PID publication requires dedicated-container cleanup.
Design Acceptance Checklist
Unchecked items are required delivery work, not deferred features. Passing component tests alone does not complete an item.
No new fencing, membership, failover or elasticity authority is introduced. Required functionality may use a small approved model and a bounded exact-profile matrix; it must execute the real serving path. Missing functionality stays incomplete, not silently reclassified as out of scope.
Verification
Candidate:
e16981e3b74bcb5977a729f77de8fc40baefd09f; implementation base:553989e4a7406e5cbfeb5e6037ec13a22c1cfe25.Command:
python -m pytest -c /dev/null --confcutdir tests/unittest/scripts -o 'markers=cpu_only: CPU-only script tests' -p no:cacheprovider tests/unittest/scripts/test_snapshot_startup.py tests/unittest/scripts/test_snapshot_probe.py -q.These exercise the production protocol/driver and real HTTP subprocess probes. CUDA, CRIU and native engine boundaries are doubles in the orchestration tests, not evidence of GPU restore.
git diff --check: passed.tests/unittest/llmapi/test_serve_report_addr.pyandtests/unittest/_torch/executor/test_resource_manager.py -k snapshot; not yet run in a compatible built runtime.53b42f1passed; that was the earlier probe-only change and does not qualify this implementation. New-head CI is withheld until required targeted verification and self-review pass.Notes
Uses the raw tool contracts inspected at Snapshot
bc9d2161d2a7, not a pre-existing standalonesnapshotctlintegration. Actual executable hashes are recorded; the adapter contract revision does not attest supplied binary provenance.TRTLLM memory-control PR #19016 is related work, not a dependency: resident weights/graphs are captured without a memory-release cycle.
Current main
fcc4432bef2a729ae6de0d29fdd89b7d15c87794conflicts with the middleware insertion incommands/serve.py: upstream added a pool-provisioning context around server construction. Rebase approval is pending; no rebase has been executed. Main also changes native code, so a rebased head needs newly compatible build artifacts.Keep the PR draft; no tracking-issue approval or production qualification is claimed.