Repository navigation
Add explicit SheetSage2 encoder attention tiling - #999
Merged
Merged
Conversation
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
Fixes #996 by adding explicit, backend-independent query tiling to SheetSage2 encoder attention.
0preserves the existing full-attention path.Uses the existing framework Slice, SDPA, and Concat modules in the existing session-owned cached graph. No shared framework/ggml changes or decoder math changes. Adds the normalized session option to the model spec, documents usage, and extends the existing parity probe with encoder coverage.
Tiling is opt-in and can trade throughput for smaller intermediates. No automatic backend selection or CPU fallback is introduced.
Validation
Built using the existing
build/debugcache (Debug,-O3 -g, CUDA/Vulkan enabled, parallel build 8) in condaqwen3-tts. Model/probe runs were sequential, with--logand successfulsession.wall_msoutput.GGML_VK_FORCE_MAX_BUFFER_SIZE=2147483648.sheetsage2.attention_tile_rows=1024under the 2 GiB cap: completes on a non-silent 30-second music sample, with text, ABC score, and event JSON byte-identical to the unrestricted baseline. Uses default complete decoding, without a token-limit override.git diff --checkpasses. Rebased onto main1dfbd503; range-diff confirms the patch is unchanged.Hardware was a Linux RTX 5090 with a controlled Vulkan buffer cap, not the reporter's Windows Radeon 880M. The reporter's exact native limit remains unverified. CPU and Metal execution were not tested.
Local binaries, hashes, patches, logs and comparison results are retained under
logs/issue-996/explicit-control/, with original baseline provenance underlogs/issue-996/fix-aef84a63/(ignored local artifacts, not part of this PR).