Repository navigation
cuda: skip noncontributing transpose-convolution taps - #801
Merged
0xShug0 merged 2 commits intoOct 8, 2026
Merged
Conversation
Owner
|
@mirek190 PR merged! Excellent optimization. The scope is narrower than I initially thought because many models already use a different fast path and don’t hit the modified kernel. All 100+ corresponding WAV pairs were byte-identical in A/B.
|
Contributor
Author
|
I know ;) We should look on more kernels optimizations in the future. |
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.
The CUDA
conv_transpose_1dkernel checks, divides and rejects every tap for every input channel, even though stride fixes which taps can contribute to an output. Compute the valid tap range once per output and visit only those taps. Keep the original channel order, ascending tap order and accumulation expression, tensor interfaces, launch configuration and supported operation constraints.This shared backend optimization was found during ACE-Step profiling, but is independent of #715, server slots and ACE-Step adapters. Other models using this existing F32 CUDA operator can benefit. CPU, Vulkan and model precision/settings are unchanged.
Validation on RTX 3090 / Windows:
The independent operator CTest passes in 0.52 s locally. It is registered with
ENGINE_BUILD_EXTENDED_TESTS=ONon CUDA builds and skips with code 77 when no CUDA device is available. Local development testing rebuilds the changed kernel object and the operator test while linking unchanged prebuilt ggml libraries; this is not a full clean CUDA rebuild. CI/full build results remain pending.That optimized the shared CUDA transpose-convolution kernel preserving its accumulation order increases performance ACE-Step family models from 3.5s to 1.3s on RTX 3090 in my test case.