Fix PCIe graph lifecycle and preserve safe MoE overlap#58
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughPCIe pools now support phased IPC teardown, channel checkpoint/rollback, and capture-specific channel ownership. Fused MoE adds auxiliary-stream overlap capability detection, updates NVFP4 split-decode gating, exports the capability API, and adds coverage for plan decisions and CUDA Graph replay. ChangesPCIe channel lifecycle
MoE auxiliary-stream overlap
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant MoEPlan
participant FusedMoEAPI
participant NVFP4Kernel
participant AuxStream
MoEPlan->>FusedMoEAPI: query plan_supports_aux_stream_overlap
FusedMoEAPI->>NVFP4Kernel: evaluate split-decode eligibility
NVFP4Kernel->>AuxStream: permit auxiliary-stream overlap
AuxStream->>NVFP4Kernel: execute concurrent GPU work
NVFP4Kernel->>MoEPlan: produce replayed output
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Paired vLLM integration: local-inference-lab/vllm#149. Both replacement PRs are based directly on their canonical branches; neither is stacked on a temporary fix branch. |
|
This broad PR has been split by ownership boundary:
Both replacements target |
Summary
sparkinferAPIsRoot cause
The previous stack mixed two separate concerns. Recycled graph resources needed strict ownership and coordinated teardown, while the first safety response disabled W4A16 auxiliary-stream use entirely. That blanket disable prevented resident-grid deadlocks but also removed useful overlap from the common DCP1 A16 decode path.
The corrected contract is narrower: shared-expert work may overlap gate/router work, but the consumer stream must join the auxiliary stream before submitting a resident routed-MoE grid. A positive plan capability therefore does not authorize concurrent resident-grid execution.
Validation
This supersedes #47 with a clean branch directly based on
master. The separate cuBLAS head-major safety work remains in #54.Summary by CodeRabbit
New Features
Bug Fixes
Tests