Repository navigation
webgpu : add COL2IM_1D support - #31708
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Please rebase on top of master since |
8d2df2a to
562b6a7
Compare
|
Need rebase |
adbf0eb to
792e9cf
Compare
Thanks for the review! I’ve rebased onto master and resolved the conflicts. Could you approve the CI runs? |
|
@LeON-Nie-code Sorry, could you rebase again since there were other CI failures? |
792e9cf to
7683cab
Compare
Rebased again. Could you approve the new CI runs? Thanks |
|
Ah, maybe this conflits with #32250. Could you rebase again? |
7683cab to
0e7287c
Compare
Rebased |
All NVIDIA WebGPU tests passed, but the process aborted on exit with a heap corruption error. couldn’t reproduce it on my L4. Could you rerun just the NVIDIA WebGPU job? Thanks! |
|
I used llvmpipe, and I think it also failed on 5090 with the same error. It fails where |
|
Thanks for catching this. I reproduced it on my L4. Looks like Vulkan accepts the 4-byte-offset view but trips over the alignment check when it runs COL2IM_1D |
|
I'll look into fixing it. |
Overview
Add WebGPU support for F32
COL2IM_1D, used by the Qwen3-TTS and PocketTTS waveform decoders. Each output gathers overlapping input columns without floating-point atomics.Includes correctness and performance tests, offset-view and 2D-dispatch coverage, and updated operation support documentation. Related to #14909.
Additional information
Tested on NVIDIA L4 with native WebGPU.
test-backend-ops test -b WebGPU -o COL2IM_1D test-backend-ops perf -b WebGPU -o COL2IM_1DFull TTS inference, 64 frames. Five runs per version, alternating execution order, with identical text, reference audio, seed and device settings. Times include reference-speaker encoding, prompt evaluation, generation and waveform decoding; model loading is excluded. Mean +/- SD.
Both versions produced byte-identical audio for each model. Traces confirm all
COL2IM_1Dexecutions moved from CPU to WebGPU: 32 for PocketTTS and 390 for Qwen3-TTS across each complete diagnostic run.Qwen3-TTS benefits substantially because its waveform decoder repeatedly uses
COL2IM_1D; keeping these operations on the GPU avoids CPU fallbacks and associated transfer and synchronization overhead.Requirements