Skip to content

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

Open
JohannesGaessler wants to merge 1 commit into
ggml-org:masterfrom
JohannesGaessler:tp-phi3
Open

TP: fix Phi3, Bert, Plamo2/3, ChatGLM#25536
JohannesGaessler wants to merge 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

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.

1 participant