openrknn: byte-exact l0_mlp — complete exNorm DMA routing - #89
Merged
Merged
Conversation
Achieve byte-exact DMA address match with vendor oracle for SmolVLM l0_mlp: 0 non-DMA diffs, 0 DMA-class diffs across 613 regcmd sections. Key fixes: - exNorm trailing REFORMAT SRC/DST: use scratch tensor (input[3]) for intermediate tasks, real output for final task - exNorm trailing REFORMAT BS/BN: remove gamma/beta for intermediate tasks, keep for final (detected via next-task op_idx lookahead) - Post-em0d CONV SRC/EW (block_idx>1): use scratch + CNA-derived tile offset; first CONV (block_idx=1) still reads from data tensor - Post-CONV REFORMAT SRC: use dst_tensor_off (CONV output) when preceding task was em=0x1d of the same op (unified_act mode only) DMA diff history: 72 → 52 → 48 → 3 → 1 → 0 CI: 9/9 pass, 5/5 CNN byte-exact pending verification. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Achieve byte-exact DMA address match with vendor oracle for SmolVLM l0_mlp: 0 non-DMA diffs, 0 DMA-class diffs across 613 unique regcmd sections. This is the first FP16 transformer model to reach byte-exact parity with the vendor runtime.
Changes (on top of PR #88)
DMA diff progression
Results
smolvlm_l0_mlp: BYTE-EXACT with vendor oraclesmolvlm_l0_attn_fused: still on allowlist (needs same fixes applied)Test plan
🤖 Generated with Claude Code