Repository navigation
webgpu: fix SSM_SCAN binding aliasing - #29750
Merged
Merged
Conversation
yomaytk
force-pushed
the
fix-ssm-scan
branch
from
September 30, 2026 14:52
638a305 to
cc6682f
Compare
CISC
approved these changes
Sep 30, 2026
|
|
||
| uint8_t xbc_overlap = 0; | ||
| if (ggml_webgpu_tensor_binding_overlap(ctx->global_ctx, src1, src4)) { | ||
| xbc_overlap |= 0b110; // x/B |
Member
Author
There was a problem hiding this comment.
Haha, nothing wrong at all!
ggerganov
approved these changes
Sep 30, 2026
Member
|
@yomaytk There is a new failure with the glm5-next model: https://github.com/ggml-org/llama.cpp/actions/runs/36983330468/job/110762637185#step:8:12265 |
Member
Author
@ggerganov OK, I'll address it by tomorrow. |
1 task
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 7, 2026
(cherry picked from commit 0c1e570)
gagallo7
added a commit
to gagallo7/qvac-fabric-llm.cpp
that referenced
this pull request
Oct 16, 2026
Fix overlapping WebGPU storage bindings during Falcon-H1 rollback warmup. Write through the merged input binding and test both aliasing variants. b11514 rebase: WebGPU host side subsumed by upstream 0c1e570 (ggml-org#29750, x/B/C-only binding merge): WebGPU files are upstream; the SSM_SCAN dst/ids-in-gap test cases are kept as regression coverage. Assisted-by: Codex (cherry picked from commit 2066738) Assisted-by: Claude Opus 5.5 Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
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.
Overview
This PR fixes the CI error: https://github.com/ggml-org/llama.cpp/actions/runs/36430015039/job/108953479413#step:7:1042
The existing
xbc_overlapcondition includes 4 tensorsx,dt,B,C, andxbc_merged_rangeis calculated from all 4 tensors.But in the Falcon-H1 model
dstis placed betweendtandx/B/C, so the merged binding overlappeddstand caused the aliasing error.This change handles only the overlapping patterns
x/B,B/Candx/B/C, which appear in the currently supported models using ssm_scan.Requirements