Repository navigation
Expose Drama3 decode performance controls and default to F16 KV - #1068
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
fish_drama3.perf_mode=off|cuda_perf, defaulting tooff. The CUDA preset enables cached-decode MoE routing/SwiGLU fusion and 256-row attention-prefix buckets. Explicit session options override the preset.fish_drama3.fused_moe,fish_drama3.kv_cache_alignment, andfish_drama3.kv_cache_type. MoE fusion remains off and alignment remains 1 by default.kv_cache_type=f32restores F32 storage. Weight precision and GDN recurrent-state precision are unchanged.Performance
RTX 5090, Debug build, eight threads, the same Q4_K_S-expert/Q8_0-tower GGUF and reference voice. The inputs match #1067: 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.
Main default (
a7f18608) versus this PR (0e50d365) withfish_drama3.perf_mode=cuda_perf. Warm RTF uses summedsession.wall_msdivided by summed generated duration, excluding warmup; peak VRAM includes model load and warmup. Offload uses eight expert slots and pinned host weights; the codec stays on the GPU.RTF reductions are approximately 11.1%, 3.4%, and 5.3% for full CUDA, CUDA offload, and full Vulkan. Vulkan offload is effectively flat: 0.4% slower in this pair. Each configuration was measured once, so small differences are not claimed as repeatable wins or meaningful VRAM savings. Sampled durations differ except for Vulkan offload; these are matched-request, not matched-token measurements.
Validation And Limits
model_spec_system_testpassed. The backbone test covers F16 KV, MoE fusion, attention buckets, and their combination, including changing prompt lengths and bucket transitions.fused_moe=false,kv_cache_type=f32, andkv_cache_alignment=1override evencuda_perf; all four CUDA WAVs then matched the main control byte-for-byte.