Repository navigation
Bound serving and integrate prepared NPU variants safely - #27
Draft
gspark-etri wants to merge 1 commit into
Draft
gspark-etri wants to merge 1 commit into
gspark-etri wants to merge 1 commit 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.
Background
Prepared NPU variants need bounded request/KV ownership and consistent checkpoint identity before the existing cluster worker can select them safely. This publishes the existing immutable safety implementation at da85c80 for review and reproducible native benchmark provenance; no prior provider session or checkout was resumed or modified.
Changes
Bound HTTP admission/body/transport memory and deadlines, stop canceled work between safe operations, reject stale/foreign KV, retain uncertain UCX owners, and protect bundle activation/release. Add opt-in prepared B/S selection to the existing cluster worker only between drained batches, with matching prefill/decode checkpoint identity. Keep chart relay source synchronized. No vendor/Optimus Prime changes or rollout.
Verification
The implementation's recorded regression-first CPU run reports 260 passed and 6 explicit platform/SDK skips; this draft also triggers fresh CI. The source tree passed the sensitive-data scan before publication. Current hardware work uses copies of the exact native benchmark modules from this commit on allocated devices; results will be linked here when complete. Those SDK-level generation/parity checks do not establish concurrent HTTP rollout or real vLLM scheduler integration.
Compatibility and limits
Numeric KV serialization requires coordinated peer upgrades; previous pickle payloads are rejected. Prepared static B/S selection does not migrate active KV across S, and device-input ATOM checkpoint updates remain explicit opt-in. Incomplete/uncertain DMA retains resources instead of reusing them. See docs/prepared-serving.md and the included design/verification record for limits.
Stacked on #22 to keep this review focused on the safety/integration changes. Do not merge before #22 and review of these contracts. Related to #17. Native experiment results are coordinated with ai-computing/npu-graph-swap#13.
AI-assisted implementation with Codex.