Skip to content

TP: fix Phi3, Bert, Plamo2/3, ChatGLM - #25536

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
JohannesGaessler:tp-phi3
Jul 16, 2026
Merged

TP: fix Phi3, Bert, Plamo2/3, ChatGLM#25536
ggerganov merged 1 commit into
ggml-org:masterfrom
JohannesGaessler:tp-phi3

Conversation

@JohannesGaessler

Copy link
Copy Markdown
Contributor

Alternative to #24936 .

Some models like Phi 3 have "ffn_up" tensors that are actually a fused up and gate tensor. This in principle causes a failure in test-llama-archs but only if executed on 2+ GPUs because the segmenting happens to be accidentally correct for 1 GPU; for this reason we did not detect the failure in our CI. Since there are multiple models that have this issue and it's easy to forget the in my opinion correct way to fix this is to check the "ffn_up" tensor shape and infer whether or not it is a fused up + gate from that.

The change to test-llama-arch.cpp is simply so that I can more easily inspect the seeds being used with a debugger.

Requirements

@JohannesGaessler
JohannesGaessler requested a review from CISC as a code owner July 10, 2026 18:50
@github-actions github-actions Bot added the testing Everything test related label Jul 10, 2026
@ggerganov
ggerganov requested a review from a team July 15, 2026 10:55
@ggerganov

Copy link
Copy Markdown
Member

@JohannesGaessler Good to merge?

@JohannesGaessler

Copy link
Copy Markdown
Contributor Author

From my end yes, I just wanted to rebase on top of the new virtual GPU support.

@ggerganov
ggerganov merged commit 2e1fd76 into ggml-org:master Jul 16, 2026
24 of 25 checks passed
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants