Repository navigation
[Kernel][SM70] Optimize DeepSeek V4 PP2 TP4 decode hot paths - #308
Conversation
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
|
Superseded by merged PR #314. The four hot paths were rebuilt on latest main, source-audited independently, repaired to align Python/C++ default semantics and token bounds, defaulted with explicit rollbacks, and passed focused tests plus whole-repository pre-commit. The optimization stack is merged as 1b1c9fa rather than rejected. |
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
|
Post-endpoint quality update: the first direct-order run reached 69.949 token/s but produced incoherent text and is rejected. Root cause is cross-shape state reuse: M2-M8 active-expert compaction overwrites compact_expert_offsets before B1 graph capture, while the direct-order branch assumed fixed one-row offsets. Commit 052312c switches B1 direct-order to immutable slot_expert_offsets and adds a poisoned-workspace regression; the focused CPU tests pass (2 passed). Full-model and GSM8K-64 revalidation remain pending, so this PR stays Draft. |
|
Superseded in full by current-main repairs: #314 merged the four audited/defaulted hot paths, and #326 now merged the post-endpoint direct-order offset isolation as |
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
…-20260828-0310 [CI][SM70] Sync #308 to audited latest main
|
审计结论:原始实验路径已由后续安全实现吸收;该分支已通过修复 PR #369 同步到最新 main,最新完整 pre-commit 通过,且锁定提交的源码树与 main 完全一致。按零差异历史归档合并,不改变主线源码。 |
Purpose
Stack the exact PP2 x TP4 DeepSeek V4 Flash decode candidates after the QPN8 audit branch:
All new runtime behavior remains opt-in while matched endpoint and aggregate-quality gates are pending.
Test Plan
Test Result
ruff checkpassed for changed Python files;3cbf943f2a417c8632368d0890c80bf5e5c446a31a9f0f18c12b9555b49f6fad, SM70 cubins only;test_sm70_single_token_weighted_reduce_matches_moe_unpermute: 1 passed (including new top-k=6, H=4096 case);/data/models/v100-dsv4-0731-pp2tp4-mxfp4-direct-order-screen-20260826-r1/results/full_pipeline.json.Endpoint and dataset results are intentionally pending.