Repository navigation
models : fix graph splits - #19866
Merged
Merged
Conversation
This was referenced Feb 24, 2026
Contributor
|
with this code 27B no longer crashes for me |
|
i had issues running qwen3.5-27b split across 2 gpus where it would crash before it generates anything. this pr fixed it |
aldehir
pushed a commit
to aldehir/llama.cpp
that referenced
this pull request
Mar 6, 2026
Seunghhon
pushed a commit
to Seunghhon/llama.cpp
that referenced
this pull request
Apr 26, 2026
my-other-github-account
pushed a commit
to my-other-github-account/llama.cpp
that referenced
this pull request
May 15, 2026
aarcange
pushed a commit
to aarcange/llama.cpp
that referenced
this pull request
May 20, 2026
Commit 2446419 added ggml_build_forward_expand immediately after layer normalization to enable multi-GPU graph partitioning. However, for recurrent linear attention models, this prematurely closed the graph branch before the internal state updates (convolution and SSM states) were fully constructed. This caused the graph engine to schedule state cache writes out of order or independently, leading to data races or stale reads in the convolution and SSM states. The bug manifested as intermittent generation corruption, such as alignment errors in code generation. This commit moves the ggml_build_forward_expand call to immediately after the linear attention layer computation for all recurrent branches. This ensures the entire layer computation, including internal state updates, is part of the forward graph before being expanded for partitioning, restoring the correct topological barriers. This was found and verified with a single GPU only using the synthmerge_bench. The multi GPU split is untested. Fixes: 2446419 ("models : fix graph splits (ggml-org#19866)")
fukuro-kun
pushed a commit
to fukuro-kun/fukuro-llama-cpp-turboquant
that referenced
this pull request
Jul 5, 2026
MrLordCat
referenced
this pull request
in MrLordCat/llama.cpp-rdna-lab
Jul 16, 2026
zommiommy
pushed a commit
to zommiommy/llama.cpp
that referenced
this pull request
Aug 18, 2026
aarcange
pushed a commit
to aarcange/llama.cpp
that referenced
this pull request
Sep 30, 2026
Commit 2446419 added ggml_build_forward_expand immediately after layer normalization to enable multi-GPU graph partitioning. However, for recurrent linear attention models, this prematurely closed the graph branch before the internal state updates (convolution and SSM states) were fully constructed. This caused the graph engine to schedule state cache writes out of order or independently, leading to data races or stale reads in the convolution and SSM states. The bug manifested as intermittent generation corruption, such as alignment errors in code generation. This commit moves the ggml_build_forward_expand call to immediately after the linear attention layer computation for all recurrent branches. This ensures the entire layer computation, including internal state updates, is part of the forward graph before being expanded for partitioning, restoring the correct topological barriers. This was found and verified with a single GPU only using the synthmerge_bench. The multi GPU split is untested. Fixes: 2446419 ("models : fix graph splits (ggml-org#19866)")
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.
fix #19860
fix #19864
Ensure the node order of Qwen 3.5 graphs is suitable for multi-GPU systems.