fix(kda): preserve gate alias contract during GLM decode - #824
voipmonitor wants to merge 1 commit into
Conversation
Signed-off-by: Martin Vit <martin@voipmonitor.org>
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe B12X KDA decode path now handles output buffers that overlap the read-only ChangesB12X KDA alias-safe decode
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
|
Superseded by #821, which now contains this PR’s history, gate/output alias correction, tests and immutable release fragment. The consolidation preserves the exact alias-safe implementation already qualified in beta and resolves its overlap with recovery-record binding. Merge #798, then #821; do not reapply this separate branch. Composed QSA/GDN/warmup/alias checks: 112 passed, nine declared skips. |
Behavior
When a B12X KDA decode output overlaps the live gate tensor, vLLM binds a disjoint caller-owned output, runs recurrence, then copies the result into the requested output. Disjoint outputs retain the existing allocation-free path. Other B12X binding failures still propagate.
Reason and compatibility
B12X correctly rejects a mutable output that overlaps its read-only
raw_ginput. A reported GLM-5.3-Flash TP2/DCP2/MTP3 service crashed under concurrent long-context traffic with exactly that error. This change preserves the B12X alias contract and existing output semantics; the exceptional alias case adds one temporary output and copy.Validation
Report: https://discord.com/channels/1466898002793857221/1471527895439638528/1551693471558017085
Summary by CodeRabbit