Repository navigation
Precompute Drama3 Gemma scales and remove redundant CUDA decode views - #1067
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.
Changes
1 + weight) in F32 at model load, using the existing tensor-source and backend-weight-store APIs. Backbone graphs use the existing RMSNorm module with the prepared scales; the tower uses the same prepared-scale approach. Ordinary GDN normalization is unchanged.Performance
RTX 5090, Debug C++17, eight threads, the same Q4-expert/F16-tower GGUF and reference voice. Each session ran one warmup and three distinct 262–266-character clone requests, sequentially. Settings: seed 42, temperature 1, top-k 4097, top-p 0.9, context 4096, text chunk size 2000. All outputs stopped naturally.
Baseline includes the codec batching and asynchronous decoding merged in #1065. Warm RTF uses summed
session.wall_msdivided by summed generated duration, excluding warmup; peak VRAM includes model load and warmup.RTF reductions are approximately 1.2%, 3.4%, 2.8%, and 1.4%, respectively. These are modest gains; the small VRAM differences are not claimed as savings. Resident rows pool two sessions per side; offload rows use one session per side and have less repeatability evidence. The codec remains on the GPU in offload mode.
Validation And Limits