Repository navigation
Conversation
whx-sjtu
left a comment
There was a problem hiding this comment.
No blocking integration findings at 1533280d59bceb6ad062840e25a49fb9f955b1ae. Scoped source/CPU COMMENT; Draft and hold-landing remain for the unexplained original 0/1319 accuracy failure.
Independent integration review and evidence
ATOM PR #3587 — necessary parent integration
Integrates the corrected residual-bank parent while preserving the row-tail feature and routing Mono fallback through the real decoder forward.
Review: ✅ LGTM for the source-integration delta from 92c31ae98b95623b18281fcee39db09722ef7114 to 1533280d59bceb6ad062840e25a49fb9f955b1ae, with new parent cb34b1093ff6077a869df1e03bdcfd71c61cf7eb; the independent non-author blind read returned SURVIVED. Tree: 56fe0d9b99d442fd7025b4e9484eac2ce4728442.
Coverage: 7 files / 117 added lines -- within one review pass
Validation (advisory): Independent read-only AST/blob checks confirm the intended whole-model composition and class/method placement. The author's 31 ownership checks, 59 parent bank/dispatch passes and 2 updated adapter passes retain their Windows CPU scope; recorded production hashes match this head. Existing maintained CPU run 44809566492 checked out 1533280d and passed 15,086 tests, with 1,486 skips and 3 xfails; Black/Ruff/catalog passed. Its JUnit includes 36 row-tail, 42 bank, 17 dispatch and 26 projection passes, plus 34 Qwen passes with 6 GPU skips. No test, GPU/SSH, model or CI rerun was performed by this reviewer.
The sole textual conflict selects the new parent's layer.forward(...) fallback. That actual decoder retains the row feature's _post_attention call; the row path still takes its active bank window before sharding and returns real zero addends. Mono still writes its auxiliary tap once. Parent compact PP prefixes, writable receive capacity, view-relative bank writes, precomputed counts and all real/fake op variants remain intact.
The two existing row-test adapters now accept num_blocks and invoke the actual decoder forward. Their original assertions remain. The recorded before failures are interface-mismatch TypeError/AttributeError results, followed by adapter passes; they are not product numerical regression/recovery evidence.
Scope: old child to integrated head is 15 files, 579 additions / 123 deletions, mostly inherited parent work. Against the new parent, the row feature is 995 raw lines, weighted 240 code / 628 tests. The Coverage counter excludes test files. No new scope exception is inferred.
Draft and agent-team/hold-landing remain required. The original 0/1319 accuracy failure is still unexplained; source integration does not establish its cause or recovery. All earlier GPU, passing evaluation, driver-rejection and timing evidence keeps its original source/runtime attribution. Current integrated model accuracy, applicable formal qualification and final landing-tree checks remain open.
whx-sjtu
left a comment
There was a problem hiding this comment.
No blocking source/CPU parent-integration findings at b6099cd740e1c084183033bd426738756b66e78d. Draft and agent-team/hold-landing remain.
Checked: reviewed parent patch, unchanged row feature, actual call paths and exact-head CPU evidence.
Accepted with reservation: original 0/1319 remains unexplained; runtime/model, performance, formal/dependency and final-tree qualification remain.
Watch next: integrated-head accuracy and required hardware evidence.
Scoped integration review card and evidence
ATOM PR #3587 — Reviewed parent projection integration
Brings the reviewed cached Linear projection views into the row-tail stack without changing its row reduction, residual-bank or Mono behavior.
Review: ✅ LGTM for the source/CPU integration at b6099cd740e1c084183033bd426738756b66e78d, tree a1f1a73ae4eb0d4fbd58d08e67b20e6223949923. The independent non-author blind read returned SURVIVED with no missed source blocker. This is not whole-PR, model, readiness or landing approval.
Coverage: 1 files / 17 added lines -- within one review pass
Validation (advisory): Maintained CPU run 44822987193 passed 15,088 tests, with 1,486 skipped and 3 xfailed, on Linux Python 3.12.16 / Torch 2.15.0+cpu. Checkout logs name this exact head. JUnit confirms all 28 projection and 36 row-tail cases passed without failures, errors or skips. The reviewer verified the saved log and JUnit identities and dispatched no tests or CI rerun; no deterministic validator report is claimed.
The merge has parents 1533280d59bceb6ad062840e25a49fb9f955b1ae and 8f098dbb9ebdaa2b596b244f789fef4d98af49c1, with no manual resolution hunks. Its delta changes only the Kimi model and existing projection test: 81 additions and 24 deletions, weighted 19 code / 68 tests. The Coverage counter excludes test additions.
Checked: the integration delta's stable patch ID b81c4417b66c049d2882c2d81f748fb263633d58 equals the reviewed parent correction. The child's patch ID against its parent remains 6706c99b844f654b41f64399d7bc6c019d729570; its 995 raw lines and weighted 240 code / 628 tests are unchanged. Patch identity was corroborated by full module composition, not used alone: the head equals the prior row model with only the parent's KDA class/import change. Row decoder, MoE and LinearModel classes remain unchanged, the KDA class matches the parent, and the projection test is identical to the parent's file. No live reference to the removed tgemm import remains.
Checked: the current Mono fallback still invokes actual decoder forward, which reaches _post_attention. The row path takes its active bank window before sharding, preserves scatter/gather and returns real zero addends; Mono writes its auxiliary tap once. Parent counted reads, view-relative slot writes and compact PP prefixes retain their prior contracts. The imported KDA class keeps normal Linear forwarding, cached shared-storage views outside loader traversal, and the same native-class, final-quantization, shape, BF16, actual-token, scale and layout guards.
The parent correction review and its CPU run apply to 8f098dbb9; the prior child integration review applies to 1533280d59. Neither is relabeled as current child hardware or model evidence. This pass adds the merge-composition and call-path checks plus actual current-head CPU evidence. The separate Windows production-body adapter records 28 projection and two row/Mono passes with matching source hashes, while omitting engine/GPU imports and trace decorators. Those interface checks are not numerical recovery controls.
Draft and agent-team/hold-landing remain required. The original 0/1319 accuracy failure remains unexplained. This integration does not establish its cause or recovery. Current runtime/tracing, crossover, split-path GSM8K, row-tail/model/PP qualification, performance, formal/dependency and final-tree gates remain open. Earlier GPU/evaluation/timing evidence keeps its original source/runtime attribution.
The blind reader defended the frozen source-integration card and its qualification limits; the primary reviewer separately verified the subsequently supplied current CPU records. Neither reviewer edited source, reran tests, used GPU/SSH, installed packages, compiled kernels or dispatched CI.
whx-sjtu
left a comment
There was a problem hiding this comment.
ATOM PR #3587 — Cleared-parent propagation
Brings the cleared projection parent into the row-tail branch while preserving its existing production feature.
Review: ✅ LGTM — final scoped source review at 0277eff3c43a5922d28e7ba66cd49960905cff0f; independently refuted by the sole assigned reader /root/aiter_8254_owner; the scoped conclusion survived. No concrete integration blocker found. Draft and all existing formal, runtime/performance and landing holds remain.
Coverage: 6 files / 271 added lines -- within one review pass
Validation (advisory): Frozen current-source body harnesses record 28 projection and 2 active-bank/Mono cases passed, with no failures; Black checked seven child Python files, and Ruff/whitespace checks passed. Source/log/harness identities were checked without rerunning tests. These Windows CPU body adapters omit full engine/native imports and trace decorators; they do not qualify maintained collection, native lowering, model accuracy or performance.
The scope is merge composition and inherited interface compatibility, reusing the accepted original feature and completed parent reviews. The coverage line describes the unchanged eight-path child feature used for rule applicability. The 212-path inherited parent/main range is not being re-audited here, and there are no manual merge-resolution hunks.
The exact merge has parents public b6099cd740e1c084183033bd426738756b66e78d and public parent 46361d575a1e1a8575e205af40a98a3e35e09e8c. Local merge-tree reproduces final tree c54c74dd71352b3b9758b5bef4152be6fef4d4c1; the remerge diff is empty. The child's stable patch ID remains 6706c99b844f654b41f64399d7bc6c019d729570 with the same eight paths. Author freeze: da8d33a94588011a950221a5d6bf0d85e0ad446da98adbf33bb3a54f5421b4d0.
Whole-file comparisons corroborate patch identity: Kimi and Qwen models, row helper, dispatch module and both row tests equal b609. Mono equals both b609 and parent463. The row-floor environment definition is unchanged; only unrelated parent context changed in the shared environment file and documentation. Every non-child file equals parent463.
The projection fixture and Linear implementation exactly inherit the cleared parent. The fixture supplies runs_bf16=False, matching ordinary BF16 production construction and preserving the original unquantized route. The Kimi projection selector, active-bank window, row collectives, real zero addends and actual Mono-to-decoder handoff are unchanged. No new helper, source fix, relaxed test assertion or optimization selector enters this merge.
G1c accuracy, observed divisible-row collectives and cleanup remain attributed to exact 7e5 and its runtime, not this broader c54c tree. Existing maintained CI retains its original head attribution. Source clearance grants no push, CI dispatch, Ready conversion, landing or GPU/model run: publication still requires the parent's actual maintained CPU outcome, final independent review, root authorization and fresh remote checks. The separately held native helper #721 is excluded from this production maintenance.
The parent CPU prerequisite has since been accepted by root: #3582 maintained CPU record, run 44960798149 at exact head 46361d5 / tree 3111ac6d, reports 15,263 passed / 1,562 skipped / 3 xfailed and 0 failures/errors. This remains parent-only evidence. No additional parent experiment is required; leaf publication still needs root authorization and fresh remote checks.
No blocking source findings; Draft and hold-landing remain. The later maintained CPU record for this exact head is separate from the frozen source review above.
|
Part of your default-environment request: Against main Source and measurement limitsResults belong to Serving TPOT includes scheduling/prefill interference. Exact output token IDs were not retained; text differences remain unexplained. The original Retained evidence SHA256: accuracy archive |
Port of ROCm#3587 at 35fa940, squashed: the diff against its merge base with the ROCm#3582 branch (3e8527a), applied with `git apply --3way` on top of the ROCm#3582 port without conflicts. Every touched file is byte-identical to the PR head. Upstream commits (non-merge): - 92c31ae Split Kimi attention residual and latent MoE tail by rows Upstream status at port time: OPEN, agent-team/hold-landing, no formal review decision. The 0/1319 GSM8K result recorded at 92c31ae is unexplained upstream; 0277eff (same feature) passed 1282/1319. Original old-line commits: e12f9a9 (ROCm#3281), 0fa86f4 (ROCm#3287), 2c45b83 (ROCm#3288). Co-authored-by: Cursor <cursoragent@cursor.com>
The token-graph hunks of ROCm#3636's integration commit 80ae966 ("Integrate Kimi prefill graphs and explicit residual storage contracts"), verbatim: - `_KimiMLAGDNCommon.supports_token_graph` also accepts a target MLA layer that is sparse and carries a bound unscaled BF16 query layout (`TokenGraphQueryLayout`), so Kimi-K3.1 at DP1/PCP1 records its prefill buckets. Quantized or unknown query layouts keep eager execution. - The layout check moves from `_attention` into `_attention_region`, so a plain eager call never enters the token-graph helper. - docs: ATOM_TOKEN_GRAPH_SIZES names the K3.1 regions. - tests: the gate's accept/refuse cases and the plain-call bypass. Left out, because this head has none of the code they integrate with: the row tail's in-graph guard and the KDA in_proj split on buckets (ROCm#3587), ColumnTail materialization at tensor-only boundaries (ROCm#3637/ROCm#3638), and the native eager residual's absent addends (the ROCm#3317 part, which exists only on a row-sharded step). Whoever merges those stacks with this one needs those hunks of 80ae966 too. Co-authored-by: Cursor <cursoragent@cursor.com>
…proj takes PT3's large-row split From 80ae966's integration of ROCm#3636 with ROCm#3587: takes_row_tail refuses in_hipgraph steps (the warmup forward of a recorded bucket must take the same path as the capture), and _project_in uses the cached row views at >=8192 rows like _forward_impl. Co-authored-by: Cursor <cursoragent@cursor.com>
…ROCm#3637 ROCm#3638) k31-opt2/PT4@2c68a46f Conflicts resolved as ROCm#3636 does for PT3 (ROCm#3577/ROCm#3582/ROCm#3587) + PT4: - kimi_k3/attention_residual.py: PT4's kernel with PT3's num_blocks bound; PT3's int64 bank offsets (71a6aba) moved into PT4's _mix_tile and kernel. - model.py: column tail first (decode, 1-64 tokens), then PT3's dispatch op; row tail (>= ATOM_KIMI_K3_MOE_ROW_SHARD_MIN_TOKENS) before PT4's one-AR split; aggregate materializes column pendings; per-phase token_graph.
valar-cop
left a comment
There was a problem hiding this comment.
some changes needed..
main-relative gsm8k for this head? only the pr arm is posted, and the bf16 double-rounding needs a same-recipe baseline.
ci green.
| return ( | ||
| self.tp_size > 1 | ||
| and num_tokens > envs.ATOM_DUAL_STREAM_MOE_TOKEN_THRESHOLD | ||
| and num_tokens >= envs.ATOM_KIMI_K3_MOE_ROW_SHARD_MIN_TOKENS |
There was a problem hiding this comment.
env read + os.getenv on every decode step? cache both in init like _dual_stream_token_threshold..
|
Fixes the cached-read request in 6aba7329ae. @valar-cop, both thresholds are read during construction; the row gate uses the cached values. Seven focused Windows CPU adapter checks passed; the two new regression cases fail on the old code. Black and Ruff passed. These checks omit full engine/native imports and compiled execution. The matched-main GSM8K comparison remains outstanding; this source fix does not settle that request. |
|
@whx-sjtu both thresholds cached in so the only open item is still the main-relative gsm8k, agreed that this fix doesn't touch it. |
Part of #3312. Under review at
16364236; the matched-main GSM8K request andagent-team/hold-landingremain open.Shard eligible Kimi post-attention residual and latent MoE work across TP rows, preserving active-bank windows, real zero addends and replicated fallbacks. This revision follows #3582 at
c638070c; #3577 has merged.Dev record
Named result
16364236: maintained Kimi row-tail, projection and prefill/checkpoint CPU tests, 136 passed and one GPU-dependent skip. The separate Kimi/Qwen production-body adapter passed 73 cases with six GPU skips; these counts overlap. Black/Ruff and whitespace checks pass.The stream threshold is cached from the existing generic setting; the row floor is fixed at 8192. No model-specific environment switch is added.
Gates
The same-recipe main-relative GSM8K request remains unfulfilled. Source/CPU integration review does not replace that model check. Parent #3582's delivery, formal review and the landing hold remain.
Integration and retained evidence
The append preserves the earlier private integration
a9263eaeand merges the current projection parent. Kimi MoE/decoder class ASTs equal that integration; KDA equals the current parent. Current Qwen production, attention-residual and ReplaySSM implementations are preserved byte-for-byte. Environment documentation retains both the parent's generic graph-side-stream policy and Kimi's row-dispatch exception. Both newly introduced files have the required headers.The real shared-expert capability refusal remains in dual-stream admission. Active bank windows are selected before row sharding; TP partials reduce before nonlinear normalization; replicated projections operate on local rows; gathers restore token order. Outputs use real zero tensors. Capture, TBO, TP1 and subfloor paths retain replicated behavior, and Mono fallback invokes the actual decoder once.
The Windows CPU checks use maintained tests with their GPU boundaries substituted; the body adapter additionally omits the Linux/native import graph and custom-op registration. They do not claim native GPU or compiled-model qualification. Independent reviews and cross-refutation cover the integrated source; existing numerical evidence retains its original revision and configuration.
35fa94056maintained CPU CI passed 15,333 tests, with 1,567 skips and three expected failures; all 36 row-tail and 28 projection cases passed. At0277eff3, full GSM8K scored 1282/1319 under plain TP8/DCP8/PP1, Mono, BF16 KV and FP8 index. Neither is a new result on this revision.The earlier serving pair, main
cccc96a0versus0277, used default settings, 16,384 input/128 output tokens, concurrency four and 12 measured requests per arm. It observed TTFT -5.86% and TPOT -4.76%, with 8/12 text differences. This is a short sequential combined-stack observation with synthetic random-token prompts and no answer oracle; exact generated token IDs were not retained. It proves neither output equivalence nor an isolated row-tail gain.The historical 0/1319 event remains unexplained. Its same-source rerun and rejected reference-driver attempt retain their original limits; current passes do not establish its cause. It creates no additional permanent current-leaf gate. Earlier main/candidate scores obtained with different model revisions and AITER builds cannot satisfy the outstanding controlled comparison. The pending pair retains all 1319 questions, three shots and the existing 0.96 floor, without a new numerical-delta threshold.