Repository navigation
Model L (D3D12): exact-mode bit-exact levers (dec0 W2 tile, skip duplicate reads, c96 knobs) - #304
Draft
phantoslayer21 wants to merge 1 commit into
Draft
phantoslayer21 wants to merge 1 commit into
phantoslayer21 wants to merge 1 commit into
Conversation
…plicate history/encoder reads skipped, c96 knob set Four changes to the hybrid (l_mode=hybrid) route, each the same bytes by construction (GPU byte check and ABBA timing pending): - l_swin_block_c32_dec_coef12_hyb (SW_COEF_ROWS 1, swin_block.hlsl; fused_swin.hlsl regenerated): the coefficient epilogue reads channels 0..15 only, so the W2 chain runs one 16-row tile instead of two. Rows 8..15 of tile 0 (channels 16..23) are replaced by tile 1's rows 0..7 (channels 8..15) through a per-lane LDS fragment offset (24 slots for the A lanes t >= 8; no weight repack); the chain start RN16(b2 + z) of channels 8..15 moves to the hh = 1 lane and the epilogue takes them back from lane ^ 16. Every output element is the same chain of the same products. RGA gfx1201: 64 -> 56 WMMAs per block (W2 16 -> 8), 84 / 96 VGPRs, no spills; hyb_isa_scan 0 fused squares, 0 of 96 FP8 sources not FP16; its scan mutant still fails both rules. - l_post_core.hlsli (w64_lc12/l_post_tf_p12[_pf]): the second history candidate at the first one's motion bits reads the same position; its values are copied instead of a second 12-tap history read. RGA 89 -> 93 and 86 -> 90 VGPRs (bound 96, LDS-capped at 2 workgroups per CU either way), no spills. - encoder.hlsl, q20 forms only (lev/input_encoder_q20[_pf], _direct_q20): near / far at center's position bits reuse center's history values; the reads run only when a lane of the wave needs them. RGA: 104 -> 82 VGPRs (q20), 106 -> 85 (q20_pf). Model M's encoders unchanged. - swin_block_c96_hyb / swin_block_c96_add_ex_hyb: the knob set their scan mutants and q7c twins already run (SW_MLP_PAIRS 1, SW_COMMIT_EARLY 1, SW_NORM2_EARLY 1; scheduling only). RGA 190 -> 191 and 158 -> 158 VGPRs; hyb_isa_scan 0 / 0.
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.
Bit-exact Model L (\l_mode=hybrid) levers stacked on #298 (\8c07199):
f=0).