Skip to content

Bound serving and integrate prepared NPU variants safely - #27

Draft
gspark-etri wants to merge 1 commit into
feat/17-delta-swap-codexfrom
validation/prepared-serving-20261023
Draft

gspark-etri wants to merge 1 commit into
feat/17-delta-swap-codexfrom
validation/prepared-serving-20261023

Conversation

@gspark-etri

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant